|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EventQueue
An interface for all the implementations of var queues (Constraint awake, on Variable events for instance).
Method Summary | |
---|---|
void |
flushEventQueue()
Removes all the events and clears all the events if needed. |
PropagationEvent |
get(int idx)
returns the i-th pending event in the queue |
boolean |
isEmpty()
Checks if the queue is empty. |
PropagationEvent |
popEvent()
Pops the next var to propagate. |
void |
propagateOneEvent()
Propagate one single event from the queue). |
void |
propagateSomeEvents()
Propagate some events (one or several depending on the queue). |
boolean |
pushEvent(PropagationEvent event)
Adds an event to the queue. |
void |
remove(PropagationEvent event)
Removes an event. |
int |
size()
returns the number of pending events in the queue |
Method Detail |
---|
boolean isEmpty()
PropagationEvent popEvent()
boolean pushEvent(PropagationEvent event)
event
- void flushEventQueue()
void remove(PropagationEvent event)
void propagateSomeEvents() throws ContradictionException
ContradictionException
void propagateOneEvent() throws ContradictionException
ContradictionException
int size()
PropagationEvent get(int idx)
idx
- the index of the event
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |