|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjopt.csp.solution.SetSolution
Solution to a set variable
| Constructor Summary | |
SetSolution(CspSetVariable var)
Initializes internal solution information for variable |
|
| Method Summary | |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
|
java.util.Set |
getPossibleSet()
Returns the set of possible values for the variable |
java.util.Set |
getRequiredSet()
Returns the set of required values for the variable |
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 |
setPossibleSet(java.util.Set possibleSet)
Sets the set of possible values for the variable |
void |
setRequiredSet(java.util.Set requiredSet)
Set the set of required values for the variable |
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 SetSolution(CspSetVariable 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 java.util.Set getPossibleSet()
public java.util.Set getRequiredSet()
public void setPossibleSet(java.util.Set possibleSet)
public void setRequiredSet(java.util.Set requiredSet)
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 int hashCode()
public boolean equals(java.lang.Object obj)
public java.lang.Object clone()
clone in interface VariableSolution
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||