Module org.maxicp

Class Distance

java.lang.Object
org.maxicp.modeling.constraints.seqvar.Distance
All Implemented Interfaces:
Constraint

public class Distance extends Object implements Constraint
  • Field Details

    • seqVar

      public final SeqVar seqVar
    • distanceMatrix

      public final int[][] distanceMatrix
    • distance

      public final IntExpression distance
  • Constructor Details

  • Method Details

    • scope

      public Collection<? extends Expression> scope()
      Description copied from interface: Constraint
      Returns the scope of the constraint, preferably as an immutable, unique collection.
      Specified by:
      scope in interface Constraint
      Returns:
      the scope of the constraint, i.e. all the Expressions it uses. The collection should be immutable.