|
||||||||||
| 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 |
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 |
setWorkingMemory(InternalWorkingMemory workingMemory)
|
| Method Detail |
|---|
void fireActivation(Activation activation)
throws ConsequenceException
ConsequenceExceptionvoid 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 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.Agendavoid 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.AgendaActivationGroup getActivationGroup(String name)
getActivationGroup in interface org.drools.runtime.rule.AgendaRuleFlowGroup 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 | |||||||||