java.lang.Object
org.maxicp.cp.engine.constraints.seqvar.Cumulative.Profile
- Enclosing class:
Cumulative
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidincrementLoadAfterBy(int node, int load) Set the load after the visit of a nodevoidincrementLoadAtBy(int node, int load) Set the load at the visit of a nodevoidincrementLoadBeforeBy(int node, int load) Set the load after the visit of a nodeintloadAfter(int node) intloadAt(int node) intloadBefore(int node) voidreset()
-
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 setload- 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 setload- 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 setload- load set after the given position- Throws:
InconsistencyException- if the given load is negative or exceeds the capacity
-
reset
public void reset()
-