|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjopt.csp.solution.LongSolution
Solution to an long variable
| Method Summary | |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
|
long |
getMax()
Retrieves maximum value of solution |
long |
getMin()
Retrieves minimum value of solution |
long |
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(long max)
Sets maximum value of solution |
void |
setMin(long min)
Sets minimum value of solution |
void |
setValue(long 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 long getMin()
public long getMax()
public void setMin(long min)
public void setMax(long max)
public void setValue(long val)
public long 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 | ||||||||||