|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for CspGenericBooleanConstant objects
Method Summary | |
boolean |
contains(boolean bool)
Returns whether or not the specified boolean is one of the constants contained in this generic constant |
CspGenericBooleanConstant |
createFragment(CspGenericIndex[] fragIndices)
Returns a CspGenericBooleanConstant based on the specified indices |
CspGenericBooleanConstant |
generateBooleanConstant(boolean bool)
Generates a CspGenericBooleanConstant based on only one boolean value |
boolean[] |
getBooleanConstants()
Returns all the constants wrapped by this generic constant return boolean array of all the boolean constants |
boolean |
getBooleanForIndex()
Returns the boolean value currently being referenced by the index |
java.lang.String |
getName()
Returns a String representing the name of this constant |
boolean |
isAnyFalse()
Returns true if any of the Boolean constants are false |
boolean |
isAnyTrue()
Returns true if any of the Boolean constants are true |
Methods inherited from interface jopt.csp.variable.CspGenericConstant |
containsIndex, getConstantCount, getIndices, setIndicesToNodeOffset, toString |
Method Detail |
public boolean getBooleanForIndex()
public boolean isAnyFalse()
public boolean isAnyTrue()
public java.lang.String getName()
public boolean[] getBooleanConstants()
public boolean contains(boolean bool)
bool
- boolean value to check if any of the constant values are equivalent to
public CspGenericBooleanConstant generateBooleanConstant(boolean bool)
bool
- value of the genericBooleanConstant
public CspGenericBooleanConstant createFragment(CspGenericIndex[] fragIndices)
fragIndices
- indices over which to create the fragment
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |