|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Activation
When a Tuple
fully matches a rule it is added to the Agenda
As an Activation
. Each Activation
is assigned a number, this
number is determined by the WorkingMemory
all Activations
created
from a single insert, update, retract are assgigned the same Activation number.
Method Summary | |
---|---|
void |
addLogicalDependency(LogicalDependency node)
|
ActivationGroupNode |
getActivationGroupNode()
|
ActivationNode |
getActivationNode()
|
long |
getActivationNumber()
Each PropgationContext is assigned an id from a counter for the WorkingMemory action it represents. |
AgendaGroup |
getAgendaGroup()
|
LinkedList |
getLogicalDependencies()
|
PropagationContext |
getPropagationContext()
Retrieve the PropagationContext for the Activation |
Rule |
getRule()
|
int |
getSalience()
|
GroupElement |
getSubRule()
Retrieve the subrule that was activated. |
LeftTuple |
getTuple()
Retrieve the Tuple that was activated. |
boolean |
isActivated()
|
void |
remove()
Cancel the Activation by removing it from the Agenda . |
void |
setActivated(boolean activated)
|
void |
setActivationGroupNode(ActivationGroupNode activationGroupNode)
|
void |
setActivationNode(ActivationNode ruleFlowGroupNode)
|
void |
setLogicalDependencies(LinkedList justified)
|
Methods inherited from interface org.drools.runtime.rule.Activation |
---|
getDeclarationIDs, getDeclarationValue, getFactHandles, getObjects |
Method Detail |
---|
Rule getRule()
getRule
in interface org.drools.runtime.rule.Activation
int getSalience()
GroupElement getSubRule()
long getActivationNumber()
LeftTuple getTuple()
Tuple
that was activated.
PropagationContext getPropagationContext()
PropagationContext
for the Activation
getPropagationContext
in interface org.drools.runtime.rule.Activation
void remove()
Activation
by removing it from the Agenda
.
void addLogicalDependency(LogicalDependency node)
LinkedList getLogicalDependencies()
void setLogicalDependencies(LinkedList justified)
void setActivated(boolean activated)
boolean isActivated()
AgendaGroup getAgendaGroup()
ActivationGroupNode getActivationGroupNode()
void setActivationGroupNode(ActivationGroupNode activationGroupNode)
ActivationNode getActivationNode()
void setActivationNode(ActivationNode ruleFlowGroupNode)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |