Module org.maxicp

Class Alternative

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

public class Alternative extends AbstractCPConstraint
Alternative Constraint with cardinality: Enforces that if the interval a is present, then c intervals from the array alt must be present and synchronized with a. If a is not present, then all the intervals of alt must be absent.
Author:
Charles Thomas