Module org.maxicp

Class StartAtEnd

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

public class StartAtEnd extends AbstractCPConstraint
Enforces that interval A starts at interval B end if B is present and that interval B ends at interval A start if A is present
Author:
Charles Thomas
  • Constructor Details

    • StartAtEnd

      public StartAtEnd(CPIntervalVar A, CPIntervalVar B)
      Creates a constraint enforcing start(A) == end(B) whenever both A and B are present.
      Parameters:
      A - the first interval variable
      B - the second interval variable
  • Method Details