|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvolatileprototypes.fvlib.Solver
volatileprototypes.fvlib.Behavior
volatileprototypes.fvlib.BehaviorChargePair
public final class BehaviorChargePair
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 | |
---|---|
BehaviorChargePair()
Constructor, generates a new class instance. |
|
BehaviorChargePair(java.util.ArrayList<? extends Point> pointsin0,
java.util.ArrayList<? extends Point> pointsin1)
Constructor. |
|
BehaviorChargePair(Point[] pointsin0,
Point[] pointsin1)
Constructor. |
Method Summary | |
---|---|
float |
getBias()
Get the bias value. |
float |
getFMult()
Get the current force multiplier value. |
protected int |
getNumCPUs()
|
Point[] |
getP2()
Get the current 2nd point array. |
BehaviorChargePair |
setBias(float biasin)
Sets the bias. |
BehaviorChargePair |
setFMult(float fmultin)
Sets the force multiplier. |
BehaviorChargePair |
setInv(boolean invin)
Sets whether force should be inverted. |
BehaviorChargePair |
setP(java.util.ArrayList<? extends Point> pointsin0,
java.util.ArrayList<? extends Point> pointsin1)
Sets the object's Point arrays using copies of the supplied ArrayLists. |
BehaviorChargePair |
setP(Point[] pointsin0,
Point[] pointsin1)
Sets the object's Point arrays using the supplied arrays. |
BehaviorChargePair |
setP2(java.util.ArrayList<? extends Point> pointsin)
Sets the object's 2nd Point array using a copy of the supplied ArrayList. |
BehaviorChargePair |
setP2(Point[] pointsin)
Sets the object's 2nd Point array using the supplied array. |
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, step |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BehaviorChargePair()
public BehaviorChargePair(java.util.ArrayList<? extends Point> pointsin0, java.util.ArrayList<? extends Point> pointsin1)
pointsin0
- An ArrayList containing Point objects with which the object's 1st list will be initialized.pointsin1
- An ArrayList containing Point objects with which the object's 2nd list will be initialized.public BehaviorChargePair(Point[] pointsin0, Point[] pointsin1)
pointsin0
- An array containing Point objects with which the object's 1st list will be initialized.pointsin1
- An array containing Point objects with which the object's 2nd list will be initialized.Method Detail |
---|
protected int getNumCPUs()
getNumCPUs
in class Solver
public BehaviorChargePair setP(java.util.ArrayList<? extends Point> pointsin0, java.util.ArrayList<? extends Point> pointsin1)
pointsin0
- The 1st ArrayList containing Point objects.pointsin1
- The 2nd ArrayList containing Point objects.
public BehaviorChargePair setP(Point[] pointsin0, Point[] pointsin1)
pointsin0
- The 1st array containing Point objects.pointsin1
- The 2nd array containing Point objects.
public BehaviorChargePair setP2(Point[] pointsin)
pointsin
- The array containing Point objects.
public BehaviorChargePair setP2(java.util.ArrayList<? extends Point> pointsin)
pointsin
- The ArrayList containing Point objects.
public BehaviorChargePair setBias(float biasin)
biasin
- A float representing the new bias value.
public BehaviorChargePair setInv(boolean invin)
invin
- A bool representing the new invert value.
public BehaviorChargePair setFMult(float fmultin)
fmultin
- A float representing the new force multiplier.
public Point[] getP2()
public float getBias()
public float getFMult()
protected final void stepFunction(int step, int offset)
stepFunction
in class Solver
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |