Module org.maxicp

Class Insert

java.lang.Object
org.maxicp.cp.engine.core.AbstractCPConstraint
org.maxicp.cp.engine.constraints.seqvar.Insert
All Implemented Interfaces:
CPConstraint, ConcreteConstraint<ConcreteCPModel>

public class Insert extends AbstractCPConstraint
Inserts a node into a sequence
  • Constructor Details

    • Insert

      public Insert(CPSeqVar seqVar, int prev, int node)
      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 inserted
      prev - predecessor for the node
      node - node to insert
  • Method Details