|
||||||||||
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 |
clear()
|
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)
|
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 |
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 |
notifyHalt()
|
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 |
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 addActivation(AgendaItem activation)
activation
-
void addAgendaGroup(AgendaGroup agendaGroup)
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |