|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Base interface for boolean expressions
Method Summary | |
CspBooleanExpr |
and(boolean val)
Creates a boolean expression resulting from anding a constant with this expression |
CspBooleanExpr |
and(CspBooleanExpr expr)
Creates a boolean expression resulting from anding another boolean expression with this expression |
CspBooleanExpr |
and(CspConstraint cons)
Creates a boolean expression resulting from anding a constraint with this expression |
CspBooleanExpr |
and(CspGenericBooleanConstant val)
Creates a boolean expression resulting from anding a generic constant with this expression |
CspBooleanExpr |
eq(boolean val)
Creates a boolean expression resulting from setting a constant equal to this expression |
CspBooleanExpr |
eq(CspBooleanExpr expr)
Creates a boolean expression resulting from setting a boolean expression equal to this expression |
CspBooleanExpr |
eq(CspConstraint cons)
Creates a boolean expression resulting from setting a constraint equal to this expression |
CspBooleanExpr |
implies(boolean val)
Creates a boolean expression resulting from this expression implying a constant value |
CspBooleanExpr |
implies(CspBooleanExpr expr)
Creates a boolean expression resulting from this expression implying another expression |
CspBooleanExpr |
implies(CspConstraint cons)
Creates a boolean expression resulting from this expression implying a constraint |
CspBooleanExpr |
implies(CspGenericBooleanConstant val)
Creates a boolean expression resulting from this expression implying a generic constant value |
boolean |
isFalse()
Returns true if boolean expression cannot be satisfied |
boolean |
isTrue()
Returns whether or not the expression is satisfied yet or not |
CspBooleanExpr |
not()
Returns a boolean expression equal to the negation of this one |
CspBooleanExpr |
or(boolean val)
Creates a boolean expression resulting from oring a constant with this expression |
CspBooleanExpr |
or(CspBooleanExpr expr)
Creates a boolean expression resulting from oring a boolean expression with this expression |
CspBooleanExpr |
or(CspConstraint cons)
Creates a boolean expression resulting from oring a constraint with this expression |
CspBooleanExpr |
or(CspGenericBooleanConstant val)
Creates a boolean expression resulting from oring a generic constant with this expression |
CspConstraint |
toConstraint()
Returns a constraint that represents this boolean expression that can be used in the solver |
CspBooleanExpr |
xor(boolean val)
Creates a boolean expression resulting from xoring a constant with this expression |
CspBooleanExpr |
xor(CspBooleanExpr expr)
Creates a boolean expression resulting from xoring a boolean expression with this expression |
CspBooleanExpr |
xor(CspConstraint cons)
Creates a boolean expression resulting from xoring a constraint with this expression |
CspBooleanExpr |
xor(CspGenericBooleanConstant val)
Creates a boolean expression resulting from xoring a generic constant with this expression |
Methods inherited from interface jopt.csp.variable.CspIntExpr |
add, add, add, add, add, add, add, add, between, between, divide, divide, divide, divide, divide, divide, divide, divide, eq, eq, geq, geq, getMax, getMin, gt, gt, leq, leq, lt, lt, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiply, neq, neq, notBetween, notBetween, subtract, subtract, subtract, subtract, subtract, subtract, subtract, subtract |
Methods inherited from interface jopt.csp.variable.CspNumExpr |
between, between, between, between, eq, geq, getName, gt, isBound, leq, lt, neq, notBetween, notBetween, notBetween, notBetween, setName |
Method Detail |
public CspBooleanExpr and(CspBooleanExpr expr)
expr
- expression that this boolean expression will be ANDed with
public CspBooleanExpr and(CspConstraint cons)
cons
- constraint that this boolean expression will be ANDed with
public CspBooleanExpr and(boolean val)
val
- constant value to AND this boolean expression with
public CspBooleanExpr and(CspGenericBooleanConstant val)
val
- generic constant value to AND this boolean expression with
public CspBooleanExpr not()
public CspBooleanExpr xor(CspBooleanExpr expr)
expr
- expression that this expression will be XORed with
public CspBooleanExpr xor(CspConstraint cons)
cons
- constraint involved in creating an expression representing an XOR with this
public CspBooleanExpr xor(boolean val)
val
- the boolean involved in creating an expression representing an XOR with this
public CspBooleanExpr xor(CspGenericBooleanConstant val)
val
- the generic boolean involved in creating an expression representing an XOR with this
public CspBooleanExpr or(CspBooleanExpr expr)
expr
- expression that this expression will be ORed with
public CspBooleanExpr or(CspConstraint cons)
cons
- constraint involved in creating an expression representing an OR with this
public CspBooleanExpr or(boolean val)
val
- the boolean involved in creating an expression representing an OR with this
public CspBooleanExpr or(CspGenericBooleanConstant val)
val
- the generic boolean involved in creating an expression representing an OR with this
public CspBooleanExpr implies(CspBooleanExpr expr)
expr
- expression that this expression will imply (this -> expr)
public CspBooleanExpr implies(boolean val)
val
- the boolean involved in creating an expression representing implication (this -> val)
public CspBooleanExpr implies(CspGenericBooleanConstant val)
val
- the generic boolean involved in creating an expression representing implication (this -> val)
public CspBooleanExpr implies(CspConstraint cons)
cons
- constraint involved in creating an expression representing implication (this -> cons)
public CspBooleanExpr eq(CspBooleanExpr expr)
expr
- expression that this expression will be equal to
public CspBooleanExpr eq(CspConstraint cons)
cons
- constraint involved in creating an expression representing equality between this and a constraint
public CspBooleanExpr eq(boolean val)
val
- the boolean involved in creating an expression representing equality
public boolean isFalse()
public boolean isTrue()
public CspConstraint toConstraint()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |