|
|||||||||
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 EventQueue
public PropagationEvent popEvent()
popEvent
in interface EventQueue
public boolean pushEvent(PropagationEvent event)
pushEvent
in interface EventQueue
public void flushEventQueue()
flushEventQueue
in interface EventQueue
public void add(PropagationEvent event)
public void remove(PropagationEvent event)
remove
in interface EventQueue
public void propagateSomeEvents() throws ContradictionException
propagateSomeEvents
in interface EventQueue
ContradictionException
public void propagateOneEvent() throws ContradictionException
propagateOneEvent
in interface EventQueue
ContradictionException
public int size()
EventQueue
size
in interface EventQueue
public PropagationEvent get(int idx)
EventQueue
get
in interface EventQueue
idx
- the index of the event
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |