java.lang.Object
org.maxicp.cp.engine.core.AbstractCPConstraint
org.maxicp.cp.engine.constraints.scheduling.IsEndBefore
- All Implemented Interfaces:
CPConstraint,ConcreteConstraint<ConcreteCPModel>
Reified constraint enforcing
boolVar <=> end(intervalVar) <= var when intervalVar is present.-
Constructor Summary
ConstructorsConstructorDescriptionIsEndBefore(CPBoolVar boolVar, CPIntervalVar intervalVar, CPIntVar var) Creates a reified constraint linkingboolVartoend(intervalVar) <= var. -
Method Summary
Methods inherited from class org.maxicp.cp.engine.core.AbstractCPConstraint
getSolver, isActive, isScheduled, priority, registerDelta, setActive, setScheduled, updateDeltas
-
Constructor Details
-
IsEndBefore
Creates a reified constraint linkingboolVartoend(intervalVar) <= var.- Parameters:
boolVar- the boolean variable that is true iffend(intervalVar) <= varintervalVar- the interval variablevar- the integer variable compared against the end ofintervalVar
-
-
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
-