public class FIFOAgenda extends AbstractAgenda
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set |
activations
The activations.
|
protected Activation |
next
The next activation (selected by strategy or manually form outside for debugging).
|
history, last, listeners, state| Constructor and Description |
|---|
FIFOAgenda()
Create a new agenda.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addActivation(Activation act)
Add a new activation.
|
java.util.Collection |
getActivations()
Get the current activations.
|
Activation |
getNextActivation()
Get the next activation.
|
boolean |
isEmpty()
Test if the agenda is empty.
|
void |
removeActivation(Activation act)
Remove an activation
|
void |
setNextActivation(Activation next)
Set the next activation.
|
addAgendaListener, fireRule, getHistory, getLastActivation, getState, isHistoryEnabled, notifyListeners, removeAgendaListener, setHistoryEnabled, toStringprotected java.util.Set activations
protected Activation next
public FIFOAgenda()
state - The state.public void addActivation(Activation act)
addActivation in class AbstractAgendaact - The activation.public void removeActivation(Activation act)
removeActivation in class AbstractAgendaact - The activation.public java.util.Collection getActivations()
getActivations in interface IAgendagetActivations in class AbstractAgendapublic boolean isEmpty()
isEmpty in interface IAgendaisEmpty in class AbstractAgendapublic Activation getNextActivation()
getNextActivation in interface IAgendagetNextActivation in class AbstractAgendapublic void setNextActivation(Activation next)
setNextActivation in interface IAgendasetNextActivation in class AbstractAgenda