|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.constraints.impl.CommonBase
javax.constraints.impl.AbstractConstraint
javax.constraints.impl.constraint.ConstraintTrue
public class ConstraintTrue
This is a constant constraint that always will be successfully posted and executed without changing anything in its environment.
| Constructor Summary | |
|---|---|
ConstraintTrue(Problem problem)
|
|
| Method Summary | |
|---|---|
VarBool |
asBool()
This method returns a Var variable that is equal 1 if the constraint is satisfied and equals 0 if it is violated. |
void |
post()
This method takes a constraint's implementation and uses its own RI-specific post-method. |
| Methods inherited from class javax.constraints.impl.AbstractConstraint |
|---|
and, implies, negation, or, post |
| Methods inherited from class javax.constraints.impl.CommonBase |
|---|
getImpl, getName, getObject, getProblem, setImpl, setName, setObject |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.constraints.Constraint |
|---|
getImpl, getName, getObject, getProblem, setImpl, setName, setObject |
| Constructor Detail |
|---|
public ConstraintTrue(Problem problem)
| Method Detail |
|---|
public VarBool asBool()
AbstractConstraint
asBool in interface ConstraintasBool in class AbstractConstraintpublic void post()
AbstractConstraint
post in interface Constraintpost in class AbstractConstraint
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||