Package jadex.rules.rulesystem
Interface IAgenda
- 
- All Known Implementing Classes:
- AbstractAgenda,- FIFOAgenda,- LIFOAgenda,- PriorityAgenda
 
 public interface IAgendaThe agenda interface for a rule system.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddAgendaListener(IAgendaListener listener)Add an agenda listener.voidfireRule()Fire one activated rule.java.util.CollectiongetActivations()Get the current activations.java.util.ListgetHistory()Get the history.ActivationgetLastActivation()The last activation.ActivationgetNextActivation()Get the next activation.intgetState()Get the state of the agenda.booleanisEmpty()Test if the agenda is empty.booleanisHistoryEnabled()Get the history mode.voidremoveAgendaListener(IAgendaListener listener)Remove an agenda listener.voidsetHistoryEnabled(boolean enabled)Set the history mode.voidsetNextActivation(Activation next)Set the next activation.
 
- 
- 
- 
Method Detail- 
fireRulevoid fireRule() Fire one activated rule.
 - 
getActivationsjava.util.Collection getActivations() Get the current activations.- Returns:
- The activations.
 
 - 
isEmptyboolean isEmpty() Test if the agenda is empty.- Returns:
- True if is empty.
 
 - 
getStateint getState() Get the state of the agenda. Changes whenever the activation list changes.
 - 
getLastActivationActivation getLastActivation() The last activation. Represents the last rule that has been executed (or that is currently executing, if still running).- Returns:
- null, when no rule has been executed or when fireRule has been called on an empty agenda.
 
 - 
getNextActivationActivation getNextActivation() Get the next activation.- Returns:
- The next activation.
 
 - 
setNextActivationvoid setNextActivation(Activation next) Set the next activation.
 - 
isHistoryEnabledboolean isHistoryEnabled() Get the history mode.
 - 
setHistoryEnabledvoid setHistoryEnabled(boolean enabled) Set the history mode.
 - 
getHistoryjava.util.List getHistory() Get the history.- Returns:
- null, if history not enabled.
 
 - 
addAgendaListenervoid addAgendaListener(IAgendaListener listener) Add an agenda listener.
 - 
removeAgendaListenervoid removeAgendaListener(IAgendaListener listener) Remove an agenda listener.
 
- 
 
-