Module org.maxicp

Interface Constraint

All Known Subinterfaces:
CustomConstraint<C,P>
All Known Implementing Classes:
AllDifferent, Alternative, AlwaysIn, BinPacking, CardinalityMax, CardinalityMin, Circuit, Cumulative, Cumulative, Disjunctive, Distance, Exclude, ExpressionIsTrue, Insert, Length, LessOrEqual, NegTable, NoOpConstraint, NoOverlap, NotBetween, Precedence, Present, Require, Sorted, Start, StartAfter, SubSequence, Table, TransitionTimes

public interface Constraint
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the scope of the constraint, preferably as an immutable, unique collection.
  • Method Details

    • scope

      Collection<? extends Expression> scope()
      Returns the scope of the constraint, preferably as an immutable, unique collection.
      Returns:
      the scope of the constraint, i.e. all the Expressions it uses. The collection should be immutable.