javax.constraints.impl.constraint
Class ConstraintMax

java.lang.Object
  extended by javax.constraints.impl.CommonBase
      extended by javax.constraints.impl.AbstractConstraint
          extended by 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.


Constructor Summary
ConstraintMax(Var[] vars, java.lang.String oper, int value)
           
ConstraintMax(Var[] vars, java.lang.String oper, Var var)
           
 
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 javax.constraints.impl.AbstractConstraint
and, asBool, 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

ConstraintMax

public ConstraintMax(Var[] vars,
                     java.lang.String oper,
                     int value)

ConstraintMax

public ConstraintMax(Var[] vars,
                     java.lang.String oper,
                     Var var)
Method Detail

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