|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InternalAgenda
Method Summary | |
---|---|
boolean |
addActivation(AgendaItem activation)
Adds the activation to the agenda. |
void |
addAgendaGroup(AgendaGroup agendaGroup)
|
void |
addRuleFlowGroupListener(String ruleFlowGroup,
RuleFlowGroupListener listener)
Adds a RuleFlowGroupListerner to the named RuleFlowGroup |
void |
cancelActivation(LeftTuple leftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory,
Activation activation,
RuleTerminalNode rtn)
|
void |
clear()
|
boolean |
createActivation(LeftTuple tuple,
PropagationContext context,
InternalWorkingMemory workingMemory,
RuleTerminalNode rtn,
boolean reuseActivation)
|
AgendaItem |
createAgendaItem(LeftTuple tuple,
int salience,
PropagationContext context,
RuleTerminalNode rtn)
|
ScheduledAgendaItem |
createScheduledAgendaItem(LeftTuple tuple,
PropagationContext context,
RuleTerminalNode rtn)
|
void |
decreaseActiveActivations()
|
void |
decreaseDormantActivations()
|
void |
fireActivation(Activation activation)
|
int |
fireAllRules(AgendaFilter agendaFilter,
int fireLimit)
Fires all activations currently in agenda that match the given agendaFilter until the fireLimit is reached or no more activations exist. |
boolean |
fireNextItem(AgendaFilter filter)
|
void |
fireUntilHalt()
Keeps firing activations until a halt is called. |
void |
fireUntilHalt(AgendaFilter agendaFilter)
Keeps firing activations until a halt is called. |
ActivationGroup |
getActivationGroup(String name)
|
ActivationsFilter |
getActivationsFilter()
Returns the current activations filter or null if none is set |
int |
getActiveActivations()
|
AgendaGroup |
getAgendaGroup(String name)
|
int |
getDormantActivations()
|
RuleFlowGroup |
getRuleFlowGroup(String name)
|
LinkedList |
getScheduledActivationsLinkedList()
|
void |
halt()
Stop agenda from firing any other rule. |
void |
increaseActiveActivations()
|
void |
increaseDormantActivations()
|
boolean |
isDeclarativeAgenda()
|
boolean |
isRuleActiveInRuleFlowGroup(String ruleflowGroupName,
String ruleName,
long processInstanceId)
Returns true if there is at least one activation of the given rule name in the given ruleflow group name |
void |
modifyActivation(AgendaItem activation,
boolean previouslyActive)
|
void |
notifyHalt()
|
void |
removeActivation(AgendaItem activation)
|
void |
removeRuleFlowGroupListener(String ruleFlowGroup,
RuleFlowGroupListener listener)
Removes the given RuleFlowGroupListener from the list of listeners of the named RuleFlowGroup |
void |
removeScheduleItem(ScheduledAgendaItem item)
|
void |
scheduleItem(ScheduledAgendaItem item,
InternalWorkingMemory workingMemory)
|
void |
setActivationsFilter(ActivationsFilter filter)
Sets a filter that prevents activations from being added to the agenda. |
void |
setWorkingMemory(InternalWorkingMemory workingMemory)
|
Method Detail |
---|
void fireActivation(Activation activation) throws ConsequenceException
ConsequenceException
void removeScheduleItem(ScheduledAgendaItem item)
LinkedList getScheduledActivationsLinkedList()
boolean fireNextItem(AgendaFilter filter) throws ConsequenceException
ConsequenceException
void scheduleItem(ScheduledAgendaItem item, InternalWorkingMemory workingMemory)
AgendaItem createAgendaItem(LeftTuple tuple, int salience, PropagationContext context, RuleTerminalNode rtn)
ScheduledAgendaItem createScheduledAgendaItem(LeftTuple tuple, PropagationContext context, RuleTerminalNode rtn)
boolean createActivation(LeftTuple tuple, PropagationContext context, InternalWorkingMemory workingMemory, RuleTerminalNode rtn, boolean reuseActivation)
void cancelActivation(LeftTuple leftTuple, PropagationContext context, InternalWorkingMemory workingMemory, Activation activation, RuleTerminalNode rtn)
boolean addActivation(AgendaItem activation)
activation
-
void removeActivation(AgendaItem activation)
void modifyActivation(AgendaItem activation, boolean previouslyActive)
void addAgendaGroup(AgendaGroup agendaGroup)
boolean isDeclarativeAgenda()
void increaseActiveActivations()
void decreaseActiveActivations()
void increaseDormantActivations()
void decreaseDormantActivations()
int getActiveActivations()
int getDormantActivations()
boolean isRuleActiveInRuleFlowGroup(String ruleflowGroupName, String ruleName, long processInstanceId)
ruleflowGroupName
- ruleName
-
void addRuleFlowGroupListener(String ruleFlowGroup, RuleFlowGroupListener listener)
ruleFlowGroup
- listener
- void removeRuleFlowGroupListener(String ruleFlowGroup, RuleFlowGroupListener listener)
ruleFlowGroup
- listener
- void clear()
clear
in interface org.drools.runtime.rule.Agenda
void setWorkingMemory(InternalWorkingMemory workingMemory)
int fireAllRules(AgendaFilter agendaFilter, int fireLimit)
agendaFilter
- the filter on which activations may fire.fireLimit
- the maximum number of activations that may fire. If -1, then it will
fire until no more activations exist.
void halt()
void notifyHalt()
void fireUntilHalt()
void fireUntilHalt(AgendaFilter agendaFilter)
agendaFilter
- filters the activations that may fireAgendaGroup getAgendaGroup(String name)
getAgendaGroup
in interface org.drools.runtime.rule.Agenda
ActivationGroup getActivationGroup(String name)
getActivationGroup
in interface org.drools.runtime.rule.Agenda
RuleFlowGroup getRuleFlowGroup(String name)
getRuleFlowGroup
in interface org.drools.runtime.rule.Agenda
void setActivationsFilter(ActivationsFilter filter)
filter
- ActivationsFilter getActivationsFilter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |