|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchoco.prop.ConstraintEvent
public class ConstraintEvent
A class for constraint revisions in the propagation process.
| Field Summary |
|---|
| Fields inherited from interface choco.prop.PropagationEvent |
|---|
POPPING |
| Constructor Summary | |
|---|---|
ConstraintEvent(Propagator constraint,
boolean init,
int prio)
Constructs a new var with the specified values for the fileds. |
|
| Method Summary | |
|---|---|
void |
clear()
Clears the var. |
java.lang.Object |
getModifiedObject()
Returns the object, whose modification is described by the event |
int |
getPriority()
Returns the priority of the var. |
boolean |
isActive(int idx)
Testing whether an event is active in the propagation network |
boolean |
isInitialized()
Returns if the constraint is initialized. |
boolean |
propagateEvent()
Propagates the var: awake or propagate depending on the init status. |
void |
setInitialized(boolean init)
Sets if the constraint is initialized. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConstraintEvent(Propagator constraint,
boolean init,
int prio)
| Method Detail |
|---|
public java.lang.Object getModifiedObject()
PropagationEvent
getModifiedObject in interface PropagationEventpublic int getPriority()
public boolean propagateEvent()
throws ContradictionException
propagateEvent in interface PropagationEventContradictionExceptionpublic boolean isInitialized()
public void setInitialized(boolean init)
public boolean isActive(int idx)
isActive in interface PropagationEventpublic void clear()
clear in interface PropagationEvent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||