public class SolverVariableValues extends java.lang.Object implements ArrayRow.ArrayRowVariables
| Modifier and Type | Method and Description |
|---|---|
void |
add(SolverVariable v,
float value,
boolean removeFromDefinition) |
void |
clear() |
boolean |
contains(SolverVariable variable) |
void |
display() |
void |
divideByAmount(float amount) |
float |
get(SolverVariable variable) |
int |
getCurrentSize() |
SolverVariable |
getVariable(int index) |
float |
getVariableValue(int index) |
int |
indexOf(SolverVariable variable) |
void |
invert() |
void |
put(SolverVariable variable,
float value) |
float |
remove(SolverVariable v,
boolean removeFromDefinition) |
int |
sizeInBytes() |
java.lang.String |
toString() |
float |
use(ArrayRow def,
boolean removeFromDefinition) |
protected final Cache mCache
public int getCurrentSize()
getCurrentSize in interface ArrayRow.ArrayRowVariablespublic SolverVariable getVariable(int index)
getVariable in interface ArrayRow.ArrayRowVariablespublic float getVariableValue(int index)
getVariableValue in interface ArrayRow.ArrayRowVariablespublic boolean contains(SolverVariable variable)
contains in interface ArrayRow.ArrayRowVariablespublic int indexOf(SolverVariable variable)
indexOf in interface ArrayRow.ArrayRowVariablespublic float get(SolverVariable variable)
get in interface ArrayRow.ArrayRowVariablespublic void display()
display in interface ArrayRow.ArrayRowVariablespublic java.lang.String toString()
toString in class java.lang.Objectpublic void clear()
clear in interface ArrayRow.ArrayRowVariablespublic void put(SolverVariable variable, float value)
put in interface ArrayRow.ArrayRowVariablespublic int sizeInBytes()
sizeInBytes in interface ArrayRow.ArrayRowVariablespublic float remove(SolverVariable v, boolean removeFromDefinition)
remove in interface ArrayRow.ArrayRowVariablespublic void add(SolverVariable v, float value, boolean removeFromDefinition)
add in interface ArrayRow.ArrayRowVariablespublic float use(ArrayRow def, boolean removeFromDefinition)
use in interface ArrayRow.ArrayRowVariablespublic void invert()
invert in interface ArrayRow.ArrayRowVariablespublic void divideByAmount(float amount)
divideByAmount in interface ArrayRow.ArrayRowVariables