samples.documentation
Class Code4Doc5.MyEquality

java.lang.Object
  extended by choco.kernel.solver.constraints.integer.extension.ConsistencyRelation
      extended by choco.kernel.solver.constraints.integer.extension.CouplesTest
          extended by samples.documentation.Code4Doc5.MyEquality
All Implemented Interfaces:
BinRelation, Cloneable
Enclosing class:
Code4Doc5

public static class Code4Doc5.MyEquality
extends CouplesTest


Field Summary
 
Fields inherited from class choco.kernel.solver.constraints.integer.extension.ConsistencyRelation
feasible, LOGGER
 
Constructor Summary
Code4Doc5.MyEquality()
           
 
Method Summary
 boolean checkCouple(int x, int y)
          return true if couple (x,y) is feasible according to the definition of the relation. e.g if the relation is defined with infeasible tuples, it returns true if (x,y) is one of them.
 
Methods inherited from class choco.kernel.solver.constraints.integer.extension.CouplesTest
getOpposite, isConsistent
 
Methods inherited from class choco.kernel.solver.constraints.integer.extension.ConsistencyRelation
isDefinedByFeasability, switchToOppositeRelation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Code4Doc5.MyEquality

public Code4Doc5.MyEquality()
Method Detail

checkCouple

public boolean checkCouple(int x,
                           int y)
Description copied from interface: BinRelation
return true if couple (x,y) is feasible according to the definition of the relation. e.g if the relation is defined with infeasible tuples, it returns true if (x,y) is one of them.

Returns:


Copyright © 2012. All Rights Reserved.