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

public class Span extends AbstractCPConstraint
Span Constraint: Enforces that if the interval span is present, then it begins with the first interval intervals from the array alt and ends with the latest. If span is absent, then all the intervals of alt must be absent.
Author:
Augustin Delecluse
  • Constructor Details

    • Span

      public Span(CPIntervalVar span, CPIntervalVar[] alts)
      Creates a Span constraint linking the spanning interval span to the sub-intervals alts.
      Parameters:
      span - the main interval variable spanning all present intervals in alts
      alts - the array of sub-intervals
  • Method Details