parser.absconparseur.components
Class PCumulative

java.lang.Object
  extended by parser.absconparseur.components.PConstraint
      extended by parser.absconparseur.components.PGlobalConstraint
          extended by parser.absconparseur.components.PCumulative

public class PCumulative
extends PGlobalConstraint


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

PCumulative

public PCumulative(String name,
                   PVariable[] scope,
                   PTask[] tasks,
                   int limit)
Method Detail

computeCostOf

public long computeCostOf(int[] tuple)
Description copied from class: PConstraint
For CSP, returns 0 is the constraint is satified and 1 if the constraint is violated.
For WCSP, returns the cost for the given tuple.

Specified by:
computeCostOf in class PConstraint

toString

public String toString()
Overrides:
toString in class PConstraint

getTasks

public PTask[] getTasks()

setTasks

public void setTasks(PTask[] tasks)

getLimit

public int getLimit()


Copyright © 2012. All Rights Reserved.