omnics.constraint
Class NotEqual

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

public class NotEqual
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
NotEqual(Var x, Var y)
           
 
Method Summary
 int eval(java.lang.Object a, java.lang.Object b)
          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

NotEqual

public NotEqual(Var x,
                Var y)
Method Detail

eval

public int eval(java.lang.Object a,
                java.lang.Object b)
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