org.jscience.physics.kinematics
Class Interaction

java.lang.Object
  extended by org.jscience.physics.kinematics.Interaction
Direct Known Subclasses:
Electrostatic, Gravity

public abstract class Interaction
extends java.lang.Object

The Interaction class provides an object for encapsulating dynamics related to mutual influence.


Constructor Summary
Interaction(AbstractClassicalParticle p1, AbstractClassicalParticle p2)
          Constructs the Interaction.
 
Method Summary
abstract  Force createForce()
          Creates the force acting on a particle in this field.
 AbstractClassicalParticle getParticle1()
          DOCUMENT ME!
 AbstractClassicalParticle getParticle2()
          DOCUMENT ME!
abstract  double potentialEnergy()
          Returns the potential energy of a particle in this field.
 void setParticle1(AbstractClassicalParticle p)
          DOCUMENT ME!
 void setParticle2(AbstractClassicalParticle p)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Interaction

public Interaction(AbstractClassicalParticle p1,
                   AbstractClassicalParticle p2)
Constructs the Interaction.

Parameters:
p1 - DOCUMENT ME!
p2 - DOCUMENT ME!
Throws:
IllegalDimensionException - DOCUMENT ME!
java.lang.IllegalArgumentException - DOCUMENT ME!
Method Detail

getParticle1

public AbstractClassicalParticle getParticle1()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setParticle1

public void setParticle1(AbstractClassicalParticle p)
DOCUMENT ME!

Parameters:
p - DOCUMENT ME!

getParticle2

public AbstractClassicalParticle getParticle2()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setParticle2

public void setParticle2(AbstractClassicalParticle p)
DOCUMENT ME!

Parameters:
p - DOCUMENT ME!

potentialEnergy

public abstract double potentialEnergy()
Returns the potential energy of a particle in this field.

Returns:
DOCUMENT ME!

createForce

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

Returns:
DOCUMENT ME!