|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.drools.reteoo.impl.AgendaImpl
Rule-firing Agenda.
Since many rules may be matched by a single assertObject(...)
all scheduled actions are placed into the Agenda
.
While processing a scheduled action, it may modify or retract objects in other scheduled actions, which must then be removed from the agenda. Non-invalidated actions are left on the agenda, and are executed in turn.
Constructor Summary | |
AgendaImpl(WorkingMemory workingMemory)
Construct. |
Method Summary | |
void |
fireNextItem()
Fire the next scheduled Agenda item. |
boolean |
isEmpty()
Determine if this Agenda has any
scheduled items. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AgendaImpl(WorkingMemory workingMemory)
workingMemory
- The WorkingMemory
of this agenda.Method Detail |
public boolean isEmpty()
Agenda
has any
scheduled items.
isEmpty
in interface Agenda
true if the agenda is empty, otherwise
false
.
public void fireNextItem() throws ConsequenceException
Agenda
item.
fireNextItem
in interface Agenda
ConsequenceException
- If an error occurs while
firing an agenda item.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |