Class SeqPrecedeChain


public class SeqPrecedeChain extends Constraint
  • Field Details

    • idNumber

      static final AtomicInteger idNumber
    • x

      final IntVar[] x
      It specifies lists of variables for the constraint.
    • n

      int n
    • first

      int[] first
    • last

      int[] last
  • Constructor Details

    • SeqPrecedeChain

      public SeqPrecedeChain(IntVar[] x)
      It constructs SeqPrecedeChain.
      Parameters:
      x - list of arguments x's.
    • SeqPrecedeChain

      public SeqPrecedeChain(List<? extends IntVar> x)
      It constructs SeqPrecedeChain.
      Parameters:
      x - list of arguments x's.
  • Method Details

    • getDefaultConsistencyPruningEvent

      public int getDefaultConsistencyPruningEvent()
      Specified by:
      getDefaultConsistencyPruningEvent in class Constraint
    • consistency

      public void consistency(Store store)
      Description copied from class: Constraint
      It is a (most probably incomplete) consistency function which removes the values from variables domains. Only values which do not have any support in a solution space are removed.
      Specified by:
      consistency in class Constraint
      Parameters:
      store - constraint store within which the constraint consistency is being checked.
    • toString

      public String toString()
      Description copied from class: Constraint
      It produces a string representation of a constraint state.
      Overrides:
      toString in class Constraint