javax.constraints.impl.constraint
Class ConstraintMax
java.lang.Object
javax.constraints.impl.CommonBase
javax.constraints.impl.AbstractConstraint
javax.constraints.impl.constraint.ConstraintMax
- All Implemented Interfaces:
- Constraint
public class ConstraintMax
- extends AbstractConstraint
This is a linear constraints for a constrained integer variable that is equal to the maximal
variable in the array "vars" when they are all instantiated.
|
Method Summary |
Var |
getMaxVar()
|
void |
post()
This method takes a constraint's implementation and uses its own
RI-specific post-method. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstraintMax
public ConstraintMax(Var[] vars,
java.lang.String oper,
int value)
ConstraintMax
public ConstraintMax(Var[] vars,
java.lang.String oper,
Var var)
getMaxVar
public Var getMaxVar()
post
public void post()
- Description copied from class:
AbstractConstraint
- This method takes a constraint's implementation and uses its own
RI-specific post-method.
- Specified by:
post in interface Constraint- Overrides:
post in class AbstractConstraint