org.jscience.physics.kinematics
Class Field

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

public abstract class Field
extends java.lang.Object

The Field class provides an object for encapsulating fields forces. This is to define the dynamics of particles in a space where particles are not only affected by their mutual influence but also by a much bigger force that drives them depending on their position and is not affected by their presence.


Constructor Summary
Field(AbstractClassicalParticle p)
          Constructs the field.
 
Method Summary
abstract  Force createForce()
          Creates the force acting on a particle in this field.
 AbstractClassicalParticle getParticle()
          DOCUMENT ME!
 void setParticle(AbstractClassicalParticle p)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Field

public Field(AbstractClassicalParticle p)
Constructs the field.

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

getParticle

public AbstractClassicalParticle getParticle()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setParticle

public void setParticle(AbstractClassicalParticle p)
DOCUMENT ME!

Parameters:
p - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

createForce

public abstract Force createForce()
Creates the force acting on a particle in this field.

Returns:
DOCUMENT ME!