volatileprototypes.fvlib
Class BehaviorConstantForce

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

public final class BehaviorConstantForce
extends Behavior

Since:
0.4

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
BehaviorConstantForce()
          Constructor, generates a new class instance.
BehaviorConstantForce(java.util.ArrayList<? extends Point> pointsin, processing.core.PVector fin)
          Constructor, generates a new class instance using a copy of the supplied Point ArrayList.
BehaviorConstantForce(Point[] pointsin, processing.core.PVector fin)
          Constructor, generates a new class instance using the supplied Point array.
 
Method Summary
 processing.core.PVector getF()
          Returns the current force vector.
 BehaviorConstantForce setF(processing.core.PVector fin)
          Sets the force vector.
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

BehaviorConstantForce

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


BehaviorConstantForce

public BehaviorConstantForce(java.util.ArrayList<? extends Point> pointsin,
                             processing.core.PVector fin)
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.
fin - A PVector object representing the force to be applied to the Point objects.

BehaviorConstantForce

public BehaviorConstantForce(Point[] pointsin,
                             processing.core.PVector fin)
Constructor, generates a new class instance using the supplied Point array.

Parameters:
pointsin - An array containing Point objects with which the object's array will be initialized.
fin - A PVector object representing the force to be applied to the Point objects.
Method Detail

setF

public BehaviorConstantForce setF(processing.core.PVector fin)
Sets the force vector.

Parameters:
fin - The force vector.

getF

public processing.core.PVector getF()
Returns the current force vector.

Returns:
The range value.

stepFunction

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