|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface implemented by variables representing a set of integer values
Method Summary | |
void |
addRequired(int value)
Adds a required value to the set |
boolean |
isInDomain(int val)
Returns true if the specified value is in this variable's domain |
boolean |
isPossible(int value)
Returns true if the specified value is possible |
boolean |
isRequired(int value)
Returns true if the specified value is required |
void |
removePossible(int value)
Removes a value from the possible set |
Methods inherited from interface jopt.csp.variable.CspSetVariable |
addRequired, addRequired, getName, getPossibleCardinality, getPossibleSet, getRequiredCardinality, getRequiredSet, getSize, isInDomain, isPossible, isRequired, removePossible, removePossible, setName |
Methods inherited from interface jopt.csp.variable.CspVariable |
isBound |
Method Detail |
public boolean isInDomain(int val)
val
- value to check if it is in the domain
public boolean isRequired(int value)
value
- value to check if it is required
public boolean isPossible(int value)
value
- value to verify if it is possible
public void addRequired(int value) throws PropagationFailureException
value
- value to add to the required set
PropagationFailureException
public void removePossible(int value) throws PropagationFailureException
value
- value to remove from the required set
PropagationFailureException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |