volatileprototypes.fvlib
Class IntegratorVerlet

java.lang.Object
  extended by volatileprototypes.fvlib.Solver
      extended by volatileprototypes.fvlib.Behavior
          extended by volatileprototypes.fvlib.IntegratorVerlet

public final class IntegratorVerlet
extends Behavior

Since:
0.2.0

Nested Class Summary
 
Nested classes/interfaces inherited from class volatileprototypes.fvlib.Solver
Solver.Caller
 
Field Summary
 
Fields inherited from class volatileprototypes.fvlib.Behavior
points
 
Fields inherited from class volatileprototypes.fvlib.Solver
xs
 
Constructor Summary
IntegratorVerlet()
          Constructor, generates a new class instance.
IntegratorVerlet(java.util.ArrayList<? extends Point> pointsin)
          Constructor, generates a new class instance using a copy of the supplied Point ArrayList.
IntegratorVerlet(Point[] pointsin)
          Constructor.
 
Method Summary
 float getF()
          Returns the friction value.
 IntegratorVerlet setF(float fin)
          Sets the friction value.
protected  void stepFunction(int step, int offset)
           
 
Methods inherited from class volatileprototypes.fvlib.Behavior
getP, setP, setP
 
Methods inherited from class volatileprototypes.fvlib.Solver
finalizeFunction, getNumCPUs, step
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegratorVerlet

public IntegratorVerlet()
Constructor, generates a new class instance.


IntegratorVerlet

public IntegratorVerlet(java.util.ArrayList<? extends Point> pointsin)
Constructor, generates a new class instance using a copy of the supplied Point ArrayList.

Parameters:
pointsin - An ArrayList containing Point objects with which the object's list will be initialized.

IntegratorVerlet

public IntegratorVerlet(Point[] pointsin)
Constructor. Constructor, generates a new class instance using the supplied array.

Parameters:
pointsin - An array containing Point objects with which the object's list will be initialized.
Method Detail

setF

public final IntegratorVerlet setF(float fin)
Sets the friction value. 0 = max friction, 1 = no friction.

Parameters:
fin - The friction value.

getF

public final float getF()
Returns the friction value. 0 = max friction, 1 = no friction.

Returns:
The friction value.

stepFunction

protected final void stepFunction(int step,
                                  int offset)
Overrides:
stepFunction in class Solver