javax.constraints.impl.constraint
Class ConstraintMin

java.lang.Object
  extended by javax.constraints.impl.CommonBase
      extended by javax.constraints.impl.AbstractConstraint
          extended by javax.constraints.impl.constraint.ConstraintMin
All Implemented Interfaces:
Constraint

public class ConstraintMin
extends AbstractConstraint

This is a linear constraint for a constrained integer variable that is equal to the minimal variable in the array "vars" when they are all instantiated.


Constructor Summary
ConstraintMin(Var[] vars, java.lang.String oper, int value)
           
ConstraintMin(Var[] vars, java.lang.String oper, Var var)
           
 
Method Summary
 Var getMinVar()
           
 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

ConstraintMin

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

ConstraintMin

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

getMinVar

public Var getMinVar()

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