public class ReificationConstraint extends Constraint
name, propagators
Modifier | Constructor and Description |
---|---|
protected |
ReificationConstraint(BoolVar bVar,
Constraint consIfBoolTrue,
Constraint consIfBoolFalse) |
Modifier and Type | Method and Description |
---|---|
void |
activate(int idx) |
void |
duplicate(Solver solver,
gnu.trove.map.hash.THashMap<Object,Object> identitymap)
Duplicate the current constraint.
|
ESat |
isSatisfied()
Test if this
Constraint object is satisfied,
regarding its Propagators and its Variable current domains. |
String |
toString() |
computeMaxPriority, getName, getOpposite, getPropagator, getPropagators, isReified, makeOpposite, reif, reifyWith, setName
protected ReificationConstraint(BoolVar bVar, Constraint consIfBoolTrue, Constraint consIfBoolFalse)
public void activate(int idx) throws ContradictionException
ContradictionException
public ESat isSatisfied()
Constraint
Constraint
object is satisfied,
regarding its Propagators
and its Variable
current domains.
This method is called on each solution as a checker when assertions are enabled (-ea in VM parameters)
It is also called for constraint reification (to state whether or not a constraint is satisfied)
The method calls entailment checks of this
propagatorsisSatisfied
in class Constraint
ESat.FALSE
if the constraint cannot be satisfied (from domain consideration),
ESat.TRUE
if whatever future decisions are, the constraint will be satisfied for sure (without propagating domain modifications)
ESat.UNDIFINED
otherwise (more decisions/filtering must be made before concluding about constraint satisfaction)public String toString()
toString
in class Constraint
public void duplicate(Solver solver, gnu.trove.map.hash.THashMap<Object,Object> identitymap)
Constraint
duplicate
in class Constraint
solver
- the target solveridentitymap
- a map to ensure uniqueness of objectsCopyright © 2015. All rights reserved.