|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.AbstractEntity
choco.AbstractConstraint
choco.bool.AbstractCompositeConstraint
choco.bool.AbstractLargeCompositeConstraint
choco.bool.AbstractLargeBoolConstraint
choco.bool.AbstractLargeBoolConstraintWithCounterOpposite
choco.bool.LargeDisjunction
public class LargeDisjunction
Field Summary |
---|
Fields inherited from class choco.bool.AbstractLargeBoolConstraint |
---|
nbFalseStatus, nbTrueStatus, statusBitVector |
Fields inherited from class choco.bool.AbstractLargeCompositeConstraint |
---|
additionalIndices, additionalVars, constraints, nbConstraints, offsets |
Fields inherited from class choco.AbstractConstraint |
---|
active, constAwakeEvent, hook, priority |
Fields inherited from class choco.AbstractEntity |
---|
problem |
Constructor Summary | |
---|---|
LargeDisjunction(Constraint[] subConstraints)
|
Method Summary | |
---|---|
void |
awake()
Default initial propagation: full constraint re-propagation. |
void |
awakeOnBounds(int varIdx)
|
void |
awakeOnInf(int varIdx)
Default propagation on improved lower bound: propagation on domain revision. |
void |
awakeOnInst(int varIdx)
Default propagation on instantiation: full constraint re-propagation. |
void |
awakeOnRem(int varIdx,
int val)
Default propagation on one value removal: propagation on domain revision. |
void |
awakeOnRemovals(int varIdx,
IntIterator deltaDomain)
|
void |
awakeOnSup(int varIdx)
Default propagation on improved upper bound: propagation on domain revision. |
protected void |
checkNbFalseStatus()
this compares the number of false constraints (subconstraints whose status is false) with the overall number of constraints. |
protected void |
checkStatus(int constIdx)
checks the status of the i-th constraint of the disjunction and propagates accordingly |
java.lang.Object |
clone()
returns a copy of the constraint. |
boolean |
isConsistent()
tests if the constraint is consistent with respect to the current state of domains |
java.lang.Boolean |
isEntailed()
Checks whether the constraint is definitely satisfied, no matter what further restrictions occur to the domain of its variables. |
boolean |
isEquivalentTo(Constraint compareTo)
tests the equivalence (logical equality of the conditions) between two constraints. |
boolean |
isSatisfied()
Semantic: Testing if the constraint is satisfied. |
AbstractConstraint |
opposite()
computes the constraint modelling the counter-opposite condition of this |
java.lang.String |
pretty()
Pretty print of the constraint. |
void |
propagate()
Propagation: Propagating the constraint until local consistency is reached. |
Methods inherited from class choco.bool.AbstractLargeBoolConstraintWithCounterOpposite |
---|
assignIndices, getOppositeSubConstraint, initAbstractLargeBoolConstraintWithCounterOpposite, setSubConstraintStatus |
Methods inherited from class choco.bool.AbstractLargeBoolConstraint |
---|
getStatus, getTargetStatus, initAbstractLargeBoolConstraint, setStatus, setTargetStatus |
Methods inherited from class choco.bool.AbstractLargeCompositeConstraint |
---|
getConstraintIdx, getIntVar, getLocalVarIndex, getNbSubConstraints, getNbVars, getNbVarsFromSubConst, getSubConstraint, getSubConstraintIdx, getVar, getVarIdxInOpposite, isCompletelyInstantiated, setConstraintIndex, setVar |
Methods inherited from class choco.bool.AbstractCompositeConstraint |
---|
addListener, getGlobalVarIndex |
Methods inherited from class choco.AbstractConstraint |
---|
awakeOnVar, connectVar, constAwake, delete, fail, getEvent, getPlugIn, getPriority, getProblem, isActive, 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.bool.CompositeConstraint |
---|
getGlobalVarIndex, getNbSubConstraints, getSubConstraint, getSubConstraintIdx |
Methods inherited from interface choco.integer.var.IntVarEventListener |
---|
getConstraintIdx, setConstraintIndex |
Methods inherited from interface choco.prop.VarEventListener |
---|
addListener, isActive, setActive, setPassive |
Methods inherited from interface choco.integer.IntConstraint |
---|
getIntVar |
Methods inherited from interface choco.Propagator |
---|
awakeOnVar, constAwake, delete, getEvent, getPlugIn, getPriority, isCompletelyInstantiated |
Methods inherited from interface choco.prop.VarEventListener |
---|
addListener, isActive, setActive, setPassive |
Methods inherited from interface choco.integer.var.IntVarEventListener |
---|
getConstraintIdx, setConstraintIndex |
Methods inherited from interface choco.prop.VarEventListener |
---|
addListener, isActive, setActive, setPassive |
Constructor Detail |
---|
public LargeDisjunction(Constraint[] subConstraints)
Method Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Constraint
clone
in interface Constraint
clone
in class AbstractLargeBoolConstraintWithCounterOpposite
java.lang.CloneNotSupportedException
public java.lang.String pretty()
pretty
in interface Entity
pretty
in class AbstractEntity
protected void checkNbFalseStatus() throws ContradictionException
ContradictionException
protected void checkStatus(int constIdx) throws ContradictionException
constIdx
-
ContradictionException
public void awakeOnInf(int varIdx) throws ContradictionException
IntVarEventListener
ContradictionException
public void awakeOnSup(int varIdx) throws ContradictionException
IntVarEventListener
ContradictionException
public void awakeOnRemovals(int varIdx, IntIterator deltaDomain) throws ContradictionException
awakeOnRemovals
in interface IntConstraint
awakeOnRemovals
in class AbstractCompositeConstraint
ContradictionException
public void awakeOnBounds(int varIdx) throws ContradictionException
awakeOnBounds
in interface IntConstraint
awakeOnBounds
in class AbstractCompositeConstraint
ContradictionException
public void awakeOnInst(int varIdx) throws ContradictionException
IntVarEventListener
ContradictionException
public void awakeOnRem(int varIdx, int val) throws ContradictionException
IntVarEventListener
ContradictionException
public boolean isSatisfied()
Constraint
public boolean isConsistent()
Propagator
public java.lang.Boolean isEntailed()
Propagator
isEntailed
in interface Propagator
isEntailed
in class AbstractConstraint
public void propagate() throws ContradictionException
Propagator
ContradictionException
public void awake() throws ContradictionException
AbstractConstraint
awake
in interface Propagator
awake
in class AbstractConstraint
ContradictionException
public AbstractConstraint opposite()
Constraint
opposite
in interface Constraint
opposite
in class AbstractConstraint
public boolean isEquivalentTo(Constraint compareTo)
Constraint
isEquivalentTo
in interface Constraint
isEquivalentTo
in class AbstractConstraint
compareTo
- the constraint to be compared to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |