|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjopt.csp.solution.BooleanSolution
Solution to a boolean variable
| Constructor Summary | |
BooleanSolution(CspBooleanVariable var)
Initializes internal solution information for variable |
|
| Method Summary | |
void |
clear()
Clears the isTrue / isFalse flag and sets variable to an unbound state |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
|
CspVariable |
getVariable()
Returns variable solution is based upon |
int |
hashCode()
|
boolean |
isBound()
Returns true if variable is bound in solution |
boolean |
isFalse()
Returns true if boolean variable is NOT satisfied in solution |
boolean |
isTrue()
Returns true if boolean variable is satisfied in solution |
void |
restore()
Restores (certain) recorded information to the associated variable. |
void |
setFalse()
Sets the value of this variable to false |
void |
setTrue()
Sets the value of this variable to true |
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 |
| Constructor Detail |
public BooleanSolution(CspBooleanVariable var)
var - Variable to store solution information about| Method Detail |
public CspVariable getVariable()
VariableSolution
getVariable in interface VariableSolutionpublic boolean isBound()
VariableSolution
isBound in interface VariableSolutionpublic boolean isFalse()
public boolean isTrue()
public void setTrue()
public void setFalse()
public void clear()
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 | ||||||||||