java.lang.Object
org.maxicp.cp.engine.core.AbstractCPConstraint
org.maxicp.cp.engine.constraints.NotEqual
- All Implemented Interfaces:
CPConstraint,ConcreteConstraint<ConcreteCPModel>
Not Equal constraint between two variables
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.maxicp.cp.engine.core.AbstractCPConstraint
getSolver, isActive, isScheduled, priority, registerDelta, setActive, setScheduled, updateDeltas
-
Constructor Details
-
NotEqual
Creates a constraint such thatx != y + v- Parameters:
x- the left membery- the right memerv- the offset value on y- See Also:
-
NotEqual
Creates a constraint such thatx != y- Parameters:
x- the left membery- the right memer- See Also:
-
-
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
-