omnics.constraint
Class LessOrEqual

java.lang.Object
  extended by omnics.Constraint
      extended by omnics.constraint.BinaryConstraint
          extended by omnics.constraint.LessOrEqual
All Implemented Interfaces:
java.io.Serializable

public class LessOrEqual
extends BinaryConstraint

Author:
Cristian Frasinaru
See Also:
Serialized Form

Field Summary
 
Fields inherited from class omnics.constraint.BinaryConstraint
x, xIndex, y, yIndex
 
Fields inherited from class omnics.Constraint
ALLOWED, filter, FORBIDDEN, MAX, MIN, name, problem, variables
 
Constructor Summary
LessOrEqual(Var x, Var y)
          Creates a new instance of LessOrEqual
 
Method Summary
 int eval(java.lang.Object xval, java.lang.Object yval)
          This is the method that evaluates the tuple (x=a,y=b).
 
Methods inherited from class omnics.constraint.BinaryConstraint
eval, eval
 
Methods inherited from class omnics.Constraint
eval, getFilter, getName, getProblem, getTuples, getVarArray, getVariables, setFilter, setName, setVariables, setVariables, toString, variable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LessOrEqual

public LessOrEqual(Var x,
                   Var y)
Creates a new instance of LessOrEqual

Method Detail

eval

public int eval(java.lang.Object xval,
                java.lang.Object yval)
Description copied from class: BinaryConstraint
This is the method that evaluates the tuple (x=a,y=b). Must be implemented in the subclasses.

Specified by:
eval in class BinaryConstraint