public interface Constraint
AbstractConstraint
Modifier and Type | Method and Description |
---|---|
boolean |
isActive()
Returns the active status of the constraint.
|
boolean |
isScheduled()
Returns the schedule status in the fix-point.
|
void |
post()
Initializes the constraint when it is posted to the solver.
|
void |
propagate()
Propagates the constraint.
|
void |
setActive(boolean active)
Activates or deactivates the constraint such that it is not scheduled any more.
|
void |
setScheduled(boolean scheduled)
Set the status of the constraint as
scheduled to be propagated by the fix-point.
|
void post()
void propagate()
void setScheduled(boolean scheduled)
scheduled
- a value that is true when the constraint
is enqueued in the propagation queue,
false when dequeuedSolver.fixPoint()
boolean isScheduled()
setScheduled(boolean)
given to setScheduledvoid setActive(boolean active)
Typically called by the Constraint to let the solver know it should not be scheduled any more when it is subsumed.
By default the constraint is active.
active
- the status to be set,
this state is reversible and unset
on state restoration StateManager.restoreState()
boolean isActive()
setActive(boolean)
in this state frame StateManager.restoreState()
.Copyright © 2018 Laurent Michel, Pierre Schaus, Pascal Van Hentenryck. All rights reserved.