|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjopt.csp.solution.DoubleSolution
Solution to an double variable
| Method Summary | |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
|
double |
getMax()
Retrieves maximum value of solution |
double |
getMin()
Retrieves minimum value of solution |
double |
getValue()
Returns the value of the solution. |
CspVariable |
getVariable()
Returns variable solution is based upon |
int |
hashCode()
|
boolean |
isBound()
Returns true if variable is bound in solution |
void |
restore()
Restores (certain) recorded information to the associated variable. |
void |
setMax(double max)
Sets maximum value of solution |
void |
setMin(double min)
Sets minimum value of solution |
void |
setValue(double val)
Sets both the min / max value of solution to a single value |
void |
store()
Causes variable solution to capture certain information about it's variable and store it locally so that it can be restored later. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
public CspVariable getVariable()
VariableSolution
getVariable in interface VariableSolutionpublic boolean isBound()
VariableSolution
isBound in interface VariableSolutionpublic double getMin()
public double getMax()
public void setMin(double min)
public void setMax(double max)
public void setValue(double val)
public double getValue()
public void store()
VariableSolution
store in interface VariableSolution
public void restore()
throws PropagationFailureException
VariableSolutionstore() was most recently
called.
restore in interface VariableSolutionPropagationFailureExceptionpublic java.lang.String toString()
public java.lang.Object clone()
clone in interface VariableSolutionpublic int hashCode()
public boolean equals(java.lang.Object obj)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||