org.drools.reteoo
Interface Agenda

All Known Implementing Classes:
AgendaImpl

public interface Agenda

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.

Author:
bob mcwhirter

Method Summary
 void fireNextItem()
          Fire the next scheduled Agenda item.
 boolean isEmpty()
          Determine if this Agenda has any scheduled items.
 

Method Detail

isEmpty

public boolean isEmpty()
Determine if this Agenda has any scheduled items.
Returns:
true if the agenda is empty, otherwise false.

fireNextItem

public void fireNextItem()
                  throws ConsequenceException
Fire the next scheduled Agenda item.
Throws:
ConsequenceException - If an error occurs while firing an agenda item.


Copyright © 2001-2002 The Werken Company. All Rights Reserved.