Module org.maxicp

Class IntervalVarEndOrValue

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

public class IntervalVarEndOrValue extends AbstractCPConstraint
Constraint linking the end time of an interval variable var to an integer variable end when var is present, or fixing end to a default value when var is absent.
Author:
Charles Thomas
  • Constructor Details

    • IntervalVarEndOrValue

      public IntervalVarEndOrValue(CPIntervalVar var, CPIntVar end, int value)
      Creates a constraint enforcing end == end(var) if var is present, and end == value if var is absent.
      Parameters:
      var - the interval variable
      end - the integer variable representing the end of var or value
      value - the fallback value assigned to end when var is absent
  • Method Details