|
||||||||||
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.PElement
public class PElement
Field Summary |
---|
Fields inherited from class parser.absconparseur.components.PConstraint |
---|
chocoCstr, LOGGER, name, scope |
Constructor Summary | |
---|---|
PElement(String name,
PVariable[] scope,
PVariable indexVariable,
Object[] table,
Object value)
|
Method Summary | |
---|---|
long |
computeCostOf(int[] tuple)
For CSP, returns 0 is the constraint is satified and 1 if the constraint is violated. |
PVariable |
getIndex()
|
Object[] |
getTable()
|
Object |
getValue()
|
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 PElement(String name, PVariable[] scope, PVariable indexVariable, Object[] table, Object value)
Method Detail |
---|
public long computeCostOf(int[] tuple)
PConstraint
computeCostOf
in class PConstraint
public String toString()
toString
in class PConstraint
public PVariable getIndex()
public Object[] getTable()
public Object getValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |