java.lang.Object
org.maxicp.cp.engine.core.AbstractCPConstraint
org.maxicp.cp.engine.constraints.seqvar.Insert
- All Implemented Interfaces:
CPConstraint,ConcreteConstraint<ConcreteCPModel>
Inserts a node into a sequence
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpost()Initializes the constraint when it is posted to the solver.Methods inherited from class org.maxicp.cp.engine.core.AbstractCPConstraint
getSolver, isActive, isScheduled, priority, propagate, registerDelta, setActive, setScheduled, updateDeltas
-
Constructor Details
-
Insert
Inserts a node into a sequence, after a given insertion. This extends the sequence, such that a link ... -> prev -> node -> ... is formed.- Parameters:
seqVar- sequence where the node needs to be insertedprev- predecessor for the nodenode- node to insert
-
-
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
-