java.lang.Object
org.maxicp.cp.engine.core.AbstractCPConstraint
org.maxicp.cp.engine.constraints.IsEqualVar
- All Implemented Interfaces:
CPConstraint,ConcreteConstraint<ConcreteCPModel>
Reified equality constraint
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIsEqualVar(CPBoolVar b, CPIntVar x, CPIntVar y) Returns a boolean variable representing whether two variables are equal -
Method Summary
Methods inherited from class org.maxicp.cp.engine.core.AbstractCPConstraint
getSolver, isActive, isScheduled, priority, registerDelta, setActive, setScheduled, updateDeltas
-
Constructor Details
-
IsEqualVar
Returns a boolean variable representing whether two variables are equal- Parameters:
b- the boolean variable that is set to true if and only if x == yx- first variabley- second variable
-
-
Method Details
-
post
public void post()Description copied from interface:CPConstraintInitializes the constraint when it is posted to the solver.- Specified by:
postin interfaceCPConstraint- Overrides:
postin classAbstractCPConstraint
-
propagate
public void propagate()Description copied from interface:CPConstraintPropagates the constraint.- Specified by:
propagatein interfaceCPConstraint- Overrides:
propagatein classAbstractCPConstraint
-