public interface IPropagationEngine extends Serializable
Modifier and Type | Interface and Description |
---|---|
static class |
IPropagationEngine.Trace |
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOGGER |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
delayedPropagation(Propagator propagator,
PropagatorEventType type) |
void |
desactivatePropagator(Propagator propagator)
Set the propagator as inactivated within the propagation engine
|
void |
dynamicAddition(boolean permanent,
Propagator... ps)
Add a constraint to the propagation engine
|
void |
dynamicDeletion(Propagator... ps)
Delete the list of propagators in input from the engine
|
void |
fails(ICause cause,
Variable variable,
String message) |
void |
flush()
Flush
this , ie. remove every pending events |
ContradictionException |
getContradictionException() |
void |
initialize()
Build up internal structure, if not yet done, in order to allow propagation.
|
boolean |
isInitialized()
Is the engine initialized?
|
void |
onPropagatorExecution(Propagator propagator) |
void |
onVariableUpdate(Variable variable,
IEventType type,
ICause cause)
Take into account the modification of a variable
|
void |
propagate()
Launch the proapagation, ie, active propagators if necessary, then reach a fix point
|
void |
propagateOnBacktrack(Propagator p)
State that the propagator needs to be propagated (coarse event) on backtrack.
|
void |
updateInvolvedVariables(Propagator p)
Update the scope of variable of a propagator (addition or deletion are allowed -- p.vars are scanned)
|
void initialize()
boolean isInitialized()
void propagate() throws ContradictionException
ContradictionException
- if a contradiction occurrsvoid flush()
this
, ie. remove every pending eventsvoid fails(ICause cause, Variable variable, String message) throws ContradictionException
ContradictionException
ContradictionException getContradictionException()
void clear()
void onVariableUpdate(Variable variable, IEventType type, ICause cause) throws ContradictionException
variable
- modified variabletype
- type of modification eventContradictionException
void delayedPropagation(Propagator propagator, PropagatorEventType type) throws ContradictionException
ContradictionException
void onPropagatorExecution(Propagator propagator)
void desactivatePropagator(Propagator propagator)
propagator
- propagator to desactivatevoid dynamicAddition(boolean permanent, Propagator... ps)
permanent
- does the constraint is permanently addedps
- propagators to addvoid updateInvolvedVariables(Propagator p)
p
- a propagatorvoid propagateOnBacktrack(Propagator p)
p
- a propagatorvoid dynamicDeletion(Propagator... ps)
ps
- a list of propagatorsCopyright © 2015. All rights reserved.