Module org.maxicp

Class NotBetween

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

public class NotBetween extends AbstractCPConstraint
Constraint forbidding a node from being inserted immediately between a given predecessor and successor in a sequence variable (CPSeqVar).
  • Constructor Summary

    Constructors
    Constructor
    Description
    NotBetween(CPSeqVar seqVar, int prev, int node, int succ)
    Creates a constraint forbidding node from being inserted between prev and succ in seqVar.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the active status of the constraint.
    boolean
    Returns the schedule status in the fix-point.
    void
    Initializes the constraint when it is posted to the solver.
    void
    Propagates the constraint.
    void
     
    void
    setActive(boolean active)
    Activates or deactivates the constraint such that it is not scheduled any more.
    void
    setScheduled(boolean scheduled)
    Set the status of the constraint as scheduled to be propagated by the fix-point.
    void
     

    Methods inherited from class org.maxicp.cp.engine.core.AbstractCPConstraint

    getSolver, priority

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait