org.jscience.physics.kinematics
Class ConstantField

java.lang.Object
  extended by org.jscience.physics.kinematics.Field
      extended by org.jscience.physics.kinematics.ConstantField
Direct Known Subclasses:
ConstantElectrostaticField, ConstantGravityField, ConstantMagneticField3D

public abstract class ConstantField
extends Field

The Field class provides an object for encapsulating fields forces. Fields are constant vectors of space and time.


Constructor Summary
ConstantField(AbstractClassicalParticle p, AbstractDoubleVector doubleVector)
          Constructs the ConstantField.
 
Method Summary
 AbstractDoubleVector getVector()
          DOCUMENT ME!
 void setVector(AbstractDoubleVector doubleVector)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.physics.kinematics.Field
createForce, getParticle, setParticle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantField

public ConstantField(AbstractClassicalParticle p,
                     AbstractDoubleVector doubleVector)
Constructs the ConstantField.

Parameters:
p - DOCUMENT ME!
doubleVector - DOCUMENT ME!
Throws:
IllegalDimensionException - DOCUMENT ME!
java.lang.IllegalArgumentException - DOCUMENT ME!
Method Detail

getVector

public AbstractDoubleVector getVector()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setVector

public void setVector(AbstractDoubleVector doubleVector)
DOCUMENT ME!

Parameters:
doubleVector - DOCUMENT ME!
Throws:
IllegalDimensionException - DOCUMENT ME!
java.lang.IllegalArgumentException - DOCUMENT ME!