org.jscience.physics.kinematics
Class AbstractClassicalParticle

java.lang.Object
  extended by org.jscience.physics.Particle
      extended by org.jscience.physics.kinematics.AbstractClassicalParticle
All Implemented Interfaces:
java.io.Serializable, Positioned
Direct Known Subclasses:
ClassicalParticle2D, ClassicalParticle3D, ClassicalParticleND

public abstract class AbstractClassicalParticle
extends Particle
implements Positioned

A class representing various properties of particles.

See Also:
Serialized Form

Constructor Summary
AbstractClassicalParticle()
          Creates a new AbstractClassicalParticle object.
 
Method Summary
 void addForce(Force f)
          DOCUMENT ME!
abstract  AbstractClassicalParticle applyForce(Force F, double t, double dt)
          DOCUMENT ME!
 double energy()
          DOCUMENT ME!
abstract  double getCharge()
          DOCUMENT ME!
abstract  int getDimension()
          DOCUMENT ME!
 java.util.Set getForces()
          DOCUMENT ME!
abstract  double getMass()
          DOCUMENT ME!
 AbstractDoubleVector getMomentum()
          DOCUMENT ME!
abstract  AbstractDoubleVector getPosition()
          DOCUMENT ME!
abstract  AbstractDoubleVector getVelocity()
          DOCUMENT ME!
abstract  AbstractClassicalParticle move(double dt)
          DOCUMENT ME!
 void removeAllForces()
          DOCUMENT ME!
 void removeForce(Force f)
          DOCUMENT ME!
 void setForces(java.util.Set set)
          DOCUMENT ME!
 double speed()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractClassicalParticle

public AbstractClassicalParticle()
Creates a new AbstractClassicalParticle object.

Method Detail

getDimension

public abstract int getDimension()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getMass

public abstract double getMass()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getCharge

public abstract double getCharge()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getPosition

public abstract AbstractDoubleVector getPosition()
DOCUMENT ME!

Specified by:
getPosition in interface Positioned
Returns:
DOCUMENT ME!

getVelocity

public abstract AbstractDoubleVector getVelocity()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getMomentum

public AbstractDoubleVector getMomentum()
DOCUMENT ME!

Returns:
DOCUMENT ME!

speed

public double speed()
DOCUMENT ME!

Returns:
DOCUMENT ME!

energy

public double energy()
DOCUMENT ME!

Returns:
DOCUMENT ME!

move

public abstract AbstractClassicalParticle move(double dt)
DOCUMENT ME!

Parameters:
dt - DOCUMENT ME!
Returns:
DOCUMENT ME!

applyForce

public abstract AbstractClassicalParticle applyForce(Force F,
                                                     double t,
                                                     double dt)
DOCUMENT ME!

Parameters:
F - DOCUMENT ME!
t - DOCUMENT ME!
dt - DOCUMENT ME!
Returns:
DOCUMENT ME!

getForces

public final java.util.Set getForces()
DOCUMENT ME!

Returns:
DOCUMENT ME!

addForce

public final void addForce(Force f)
                    throws IllegalDimensionException
DOCUMENT ME!

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

removeForce

public final void removeForce(Force f)
DOCUMENT ME!

Parameters:
f - DOCUMENT ME!

removeAllForces

public final void removeAllForces()
DOCUMENT ME!


setForces

public final void setForces(java.util.Set set)
                     throws IllegalDimensionException,
                            java.lang.IllegalArgumentException
DOCUMENT ME!

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