volatileprototypes.fvlib
Class Behavior

java.lang.Object
  extended by volatileprototypes.fvlib.Solver
      extended by volatileprototypes.fvlib.Behavior
Direct Known Subclasses:
BehaviorCameraOverlap, BehaviorCharge, BehaviorChargePair, BehaviorConstantDistance, BehaviorConstantForce, IntegratorVerlet

public class Behavior
extends Solver

Since:
0.5.9

Nested Class Summary
 
Nested classes/interfaces inherited from class volatileprototypes.fvlib.Solver
Solver.Caller
 
Field Summary
protected  Point[] points
           
 
Fields inherited from class volatileprototypes.fvlib.Solver
xs
 
Constructor Summary
Behavior()
          Constructor, generates a new class instance with empty point array.
Behavior(java.util.ArrayList<? extends Point> pointsin)
          Constructor, generates a new class instance using a copy of the supplied Point ArrayList.
Behavior(Point[] pointsin)
          Constructor.
 
Method Summary
 Point[] getP()
          Get the current point array.
 void setP(java.util.ArrayList<? extends Point> pointsin)
          Sets the object's Point array using a copy of the supplied ArrayList.
 void setP(Point[] pointsin)
          Sets the object's Point array using the supplied array.
 
Methods inherited from class volatileprototypes.fvlib.Solver
finalizeFunction, getNumCPUs, step, stepFunction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

points

protected Point[] points
Constructor Detail

Behavior

public Behavior()
Constructor, generates a new class instance with empty point array.


Behavior

public Behavior(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.

Behavior

public Behavior(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

setP

public void setP(java.util.ArrayList<? extends Point> pointsin)
Sets the object's Point array using a copy of the supplied ArrayList.

Parameters:
pointsin - The ArrayList containing Point objects.

setP

public void setP(Point[] pointsin)
Sets the object's Point array using the supplied array.

Parameters:
pointsin - The array containing Point objects.

getP

public Point[] getP()
Get the current point array.

Returns:
The current point array.