|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectparser.absconparseur.components.PConstraint
parser.absconparseur.components.PGlobalConstraint
parser.absconparseur.components.PCumulative
public class PCumulative
Field Summary |
---|
Fields inherited from class parser.absconparseur.components.PConstraint |
---|
chocoCstr, LOGGER, name, scope |
Constructor Summary | |
---|---|
PCumulative(String name,
PVariable[] scope,
PTask[] tasks,
int limit)
|
Method Summary | |
---|---|
long |
computeCostOf(int[] tuple)
For CSP, returns 0 is the constraint is satified and 1 if the constraint is violated. |
int |
getLimit()
|
PTask[] |
getTasks()
|
void |
setTasks(PTask[] tasks)
|
String |
toString()
|
Methods inherited from class parser.absconparseur.components.PGlobalConstraint |
---|
computeObjectPositionsInScope, computeStringRepresentationOf |
Methods inherited from class parser.absconparseur.components.PConstraint |
---|
getArity, getChocoCstr, getMaximalCost, getName, getPositionInScope, getScope, hashCode, isGuaranteedToBeDivisionByZeroFree, isGuaranteedToBeOverflowFree, setChocoCstr |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PCumulative(String name, PVariable[] scope, PTask[] tasks, int limit)
Method Detail |
---|
public long computeCostOf(int[] tuple)
PConstraint
computeCostOf
in class PConstraint
public String toString()
toString
in class PConstraint
public PTask[] getTasks()
public void setTasks(PTask[] tasks)
public int getLimit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |