public class EvaluableVariableAssignment extends Object
EvaluableVariables
to values.EvaluableVariable
Constructor and Description |
---|
EvaluableVariableAssignment() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
double |
getValueFor(EvaluableVariable variable)
Gets the assigned value for the
EvaluableVariable variable . |
int |
hashCode() |
boolean |
isValueAssignedFor(EvaluableVariable variable)
Checks whether the
EvaluableVariable variable has already a value assigned
or not. |
void |
setValueFor(EvaluableVariable variable,
double value)
Assigns a value to an evaluable variable.
|
String |
toString() |
public double getValueFor(EvaluableVariable variable)
EvaluableVariable variable
.variable
- Whose value is wanted. Must not be null
.public void setValueFor(EvaluableVariable variable, double value)
variable
- The variable for which the value shall be set. Must not be
null
.value
- The value to be set.public boolean isValueAssignedFor(EvaluableVariable variable)
EvaluableVariable variable
has already a value assigned
or not.variable
- Whose assignment status should be identified. Must not be
null
.true
if a value is assigned for the given variable. Else it returns
false
.