|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchoco.AbstractEntity
choco.AbstractConstraint
choco.integer.constraints.AbstractIntConstraint
choco.integer.constraints.AbstractLargeIntConstraint
choco.global.Occurrence
choco.palm.global.matching.PalmOccurence
public class PalmOccurence
| Field Summary |
|---|
| Fields inherited from class choco.global.Occurrence |
|---|
constrainOnInfNumber, constrainOnSupNumber, isPossible, isSure, nbPossible, nbSure |
| Fields inherited from class choco.integer.constraints.AbstractLargeIntConstraint |
|---|
cIndices, cste, vars |
| Fields inherited from class choco.AbstractConstraint |
|---|
active, constAwakeEvent, hook, priority |
| Fields inherited from class choco.AbstractEntity |
|---|
problem |
| Constructor Summary | |
|---|---|
PalmOccurence(IntDomainVar[] lvars,
int occval,
boolean onInf,
boolean onSup)
|
|
| Method Summary | |
|---|---|
void |
awake()
Default initial propagation: full constraint re-propagation. |
void |
awakeOnInf(int idx)
Default propagation on improved lower bound: propagation on domain revision. |
void |
awakeOnRem(int idx,
int x)
Default propagation on one value removal: propagation on domain revision. |
void |
awakeOnRestoreInf(int idx)
Handles an inf bound restoration on the constraint idx |
void |
awakeOnRestoreSup(int idx)
Handles a sup bound restoration on the constraint idx |
void |
awakeOnRestoreVal(int idx,
int val)
Handles a val restoration on the constraint idx |
void |
awakeOnRestoreVal(int idx,
IntIterator it)
Handles a val restoration on the constraint idx |
void |
awakeOnSup(int idx)
Default propagation on improved upper bound: propagation on domain revision. |
void |
checkNbPossible()
|
void |
checkNbSure()
|
java.lang.Object |
clone()
returns a copy of the constraint. |
void |
takeIntoAccountStatusChange(int index)
Informs constraints that one of their children has a modified status (due to value restoration). |
void |
updateDataStructuresOnConstraint(int idx,
int select,
int newValue,
int oldValue)
Method called when one of the variables is modified. |
void |
updateDataStructuresOnRestoreConstraint(int idx,
int select,
int newValue,
int oldValue)
Method called when one of the variables has a restored value. |
java.util.Set |
whyIsFalse()
When all variables are instantiated, explains why the wonstraint is false. |
java.util.Set |
whyIsTrue()
When all variables are instantiated, explains why the wonstraint is true. |
| Methods inherited from class choco.global.Occurrence |
|---|
awakeOnInst, filter, init, isSatisfied, pretty, propagate |
| Methods inherited from class choco.integer.constraints.AbstractLargeIntConstraint |
|---|
assignIndices, getConstraintIdx, getIntVar, getNbVars, getVar, isCompletelyInstantiated, setConstraintIndex, setVar |
| Methods inherited from class choco.integer.constraints.AbstractIntConstraint |
|---|
awakeOnBounds, awakeOnRemovals, getSelfIndex, isConsistent |
| Methods inherited from class choco.AbstractConstraint |
|---|
addListener, awakeOnVar, connectVar, constAwake, delete, fail, getEvent, getPlugIn, getPriority, getProblem, getVarIdxInOpposite, isActive, isEntailed, isEquivalentTo, opposite, setActive, setEntailed, setPassive, setPlugIn, substituteVar |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface choco.Propagator |
|---|
assignIndices, awakeOnVar, constAwake, delete, getEvent, getPlugIn, getPriority, isCompletelyInstantiated, isConsistent, isEntailed, propagate |
| Methods inherited from interface choco.prop.VarEventListener |
|---|
addListener, isActive, setActive, setPassive |
| Methods inherited from interface choco.Constraint |
|---|
getConstraintIdx, getNbVars, getVar, getVarIdxInOpposite, isEquivalentTo, isSatisfied, opposite, setConstraintIndex, setVar |
| Methods inherited from interface choco.Entity |
|---|
getProblem, pretty |
| Methods inherited from interface choco.palm.PalmVarListener |
|---|
getConstraintIdx, setConstraintIndex |
| Methods inherited from interface choco.prop.VarEventListener |
|---|
addListener, isActive, setActive, setPassive |
| Methods inherited from interface choco.palm.PalmVarListener |
|---|
getConstraintIdx, setConstraintIndex |
| Methods inherited from interface choco.prop.VarEventListener |
|---|
addListener, isActive, setActive, setPassive |
| Methods inherited from interface choco.integer.var.IntVarEventListener |
|---|
awakeOnInst, getConstraintIdx, setConstraintIndex |
| Methods inherited from interface choco.prop.VarEventListener |
|---|
addListener, isActive, setActive, setPassive |
| Constructor Detail |
|---|
public PalmOccurence(IntDomainVar[] lvars,
int occval,
boolean onInf,
boolean onSup)
| Method Detail |
|---|
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
Constraint
clone in interface Constraintclone in class Occurrencejava.lang.CloneNotSupportedException
public void checkNbPossible()
throws ContradictionException
checkNbPossible in class OccurrenceContradictionException
public void checkNbSure()
throws ContradictionException
checkNbSure in class OccurrenceContradictionException
public void updateDataStructuresOnConstraint(int idx,
int select,
int newValue,
int oldValue)
PalmVarListener
updateDataStructuresOnConstraint in interface PalmVarListeneridx - Index of the variable.select - Type of modification (PalmIntVar.INF, PalmIntVar.SUP,
PalmIntVar.VAL).newValue - New value (or modified value).oldValue - Old value (or 0 if this a value removal).
public void updateDataStructuresOnRestoreConstraint(int idx,
int select,
int newValue,
int oldValue)
PalmVarListener
updateDataStructuresOnRestoreConstraint in interface PalmVarListeneridx - Index of the variable.select - Type of modification.newValue - New value (or modified value).oldValue - Old value (or 0 if this a value removal).
public void awakeOnInf(int idx)
throws ContradictionException
AbstractIntConstraint
awakeOnInf in interface IntVarEventListenerawakeOnInf in class OccurrenceContradictionException
public void awakeOnSup(int idx)
throws ContradictionException
AbstractIntConstraint
awakeOnSup in interface IntVarEventListenerawakeOnSup in class OccurrenceContradictionException
public void awakeOnRem(int idx,
int x)
throws ContradictionException
AbstractIntConstraint
awakeOnRem in interface IntVarEventListenerawakeOnRem in class OccurrenceContradictionException
public void awakeOnRestoreInf(int idx)
throws ContradictionException
PalmIntVarListeneridx
awakeOnRestoreInf in interface PalmIntVarListeneridx - Variable involved.
ContradictionException
public void awakeOnRestoreSup(int idx)
throws ContradictionException
PalmIntVarListeneridx
awakeOnRestoreSup in interface PalmIntVarListeneridx - Variable involved.
ContradictionException
public void awakeOnRestoreVal(int idx,
int val)
throws ContradictionException
PalmIntVarListeneridx
awakeOnRestoreVal in interface PalmIntVarListeneridx - Variable involved.
ContradictionException
public void awakeOnRestoreVal(int idx,
IntIterator it)
throws ContradictionException
PalmIntVarListeneridx
awakeOnRestoreVal in interface PalmIntVarListeneridx - Variable involved.
ContradictionException
public void awake()
throws ContradictionException
AbstractConstraint
awake in interface Propagatorawake in class OccurrenceContradictionExceptionpublic java.util.Set whyIsTrue()
PalmIntVarListener
whyIsTrue in interface PalmIntVarListenerpublic java.util.Set whyIsFalse()
PalmIntVarListener
whyIsFalse in interface PalmIntVarListenerpublic void takeIntoAccountStatusChange(int index)
PalmConstraint
takeIntoAccountStatusChange in interface PalmConstraint
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||