Module org.maxicp

Class Cumulative.Profile

java.lang.Object
org.maxicp.cp.engine.constraints.seqvar.Cumulative.Profile
Enclosing class:
Cumulative

public class Cumulative.Profile extends Object
  • Constructor Details

    • Profile

      public Profile(int maxCapacity)
  • Method Details

    • loadBefore

      public int loadBefore(int node)
    • loadAt

      public int loadAt(int node)
    • loadAfter

      public int loadAfter(int node)
    • incrementLoadAtBy

      public void incrementLoadAtBy(int node, int load)
      Set the load at the visit of a node
      Parameters:
      node - node whose load must be set
      load - load set at the given position
      Throws:
      InconsistencyException - if the given load is negative or exceeds the capacity
    • incrementLoadAfterBy

      public void incrementLoadAfterBy(int node, int load)
      Set the load after the visit of a node
      Parameters:
      node - node after which the load must be set
      load - load set after the given position
      Throws:
      InconsistencyException - if the given load is negative or exceeds the capacity
    • incrementLoadBeforeBy

      public void incrementLoadBeforeBy(int node, int load)
      Set the load after the visit of a node
      Parameters:
      node - node after which the load must be set
      load - load set after the given position
      Throws:
      InconsistencyException - if the given load is negative or exceeds the capacity
    • reset

      public void reset()