|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jopt.csp.solution.IntSolution
Solution to an integer variable
Method Summary | |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
|
int |
getMax()
Retrieves maximum value of solution |
int |
getMin()
Retrieves minimum value of solution |
int |
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(int max)
Sets maximum value of solution |
void |
setMin(int min)
Sets minimum value of solution |
void |
setValue(int 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 VariableSolution
public boolean isBound()
VariableSolution
isBound
in interface VariableSolution
public int getMin()
public int getMax()
public void setMin(int min)
public void setMax(int max)
public void setValue(int val)
public int getValue()
public void store()
VariableSolution
store
in interface VariableSolution
public void restore() throws PropagationFailureException
VariableSolution
store()
was most recently
called.
restore
in interface VariableSolution
PropagationFailureException
public java.lang.String toString()
public java.lang.Object clone()
clone
in interface VariableSolution
public 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 |