|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchoco.prop.ConstraintEventQueue
public class ConstraintEventQueue
Implements an EventQueue for managing the constraint awake events.
| Constructor Summary | |
|---|---|
ConstraintEventQueue(PropagationEngine engine)
Constructs a new queue for the specified engine. |
|
| Method Summary | |
|---|---|
void |
add(PropagationEvent event)
Adds a new constraint in the right part of the set (will not be propagated). |
void |
flushEventQueue()
Removes all the events from the queue. |
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()
Propagates one var in the queue. |
void |
propagateSomeEvents()
Propagates one var in the queue. |
boolean |
pushEvent(PropagationEvent event)
Adds a new var in the queue. |
void |
remove(PropagationEvent event)
Removes the var from the left part. |
int |
size()
returns the number of pending events in the queue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConstraintEventQueue(PropagationEngine engine)
| Method Detail |
|---|
public boolean isEmpty()
isEmpty in interface EventQueuepublic PropagationEvent popEvent()
popEvent in interface EventQueuepublic boolean pushEvent(PropagationEvent event)
pushEvent in interface EventQueuepublic void flushEventQueue()
flushEventQueue in interface EventQueuepublic void add(PropagationEvent event)
public void remove(PropagationEvent event)
remove in interface EventQueue
public void propagateSomeEvents()
throws ContradictionException
propagateSomeEvents in interface EventQueueContradictionException
public void propagateOneEvent()
throws ContradictionException
propagateOneEvent in interface EventQueueContradictionExceptionpublic int size()
EventQueue
size in interface EventQueuepublic PropagationEvent get(int idx)
EventQueue
get in interface EventQueueidx - the index of the event
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||