Package org.drools.core.common
Class VisitedAgendaGroup
- java.lang.Object
-
- org.drools.core.common.VisitedAgendaGroup
-
- All Implemented Interfaces:
java.io.Serializable,Activation,org.kie.api.runtime.rule.Match
public class VisitedAgendaGroup extends java.lang.Object implements Activation
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddequeue()InternalFactHandlegetActivationFactHandle()ActivationGroupNodegetActivationGroupNode()ActivationNodegetActivationNode()longgetActivationNumber()Each PropgationContext is assigned an id from a counter for the WorkingMemory action it represents.InternalAgendaGroupgetAgendaGroup()ConsequencegetConsequence()java.util.List<java.lang.String>getDeclarationIds()java.lang.ObjectgetDeclarationValue(java.lang.String s)java.util.List<? extends org.kie.api.runtime.rule.FactHandle>getFactHandles()java.util.List<java.lang.Object>getObjects()PropagationContextgetPropagationContext()Retrieve thePropagationContextfor theActivationintgetQueueIndex()RuleImplgetRule()intgetSalience()GroupElementgetSubRule()Retrieve the subrule that was activated.LeftTuplegetTuple()Retrieve theTuplethat was activated.booleanisActive()booleanisMatched()booleanisQueued()booleanisRuleAgendaItem()voidremove()Cancel theActivationby removing it from theAgenda.voidsetActivationGroupNode(ActivationGroupNode activationGroupNode)voidsetActivationNode(ActivationNode ruleFlowGroupNode)voidsetActive(boolean active)voidsetMatched(boolean matched)voidsetQueued(boolean activated)voidsetQueueIndex(int index)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.drools.core.rule.consequence.Activation
getObjectsDeep
-
-
-
-
Method Detail
-
getRule
public RuleImpl getRule()
- Specified by:
getRulein interfaceActivation- Specified by:
getRulein interfaceorg.kie.api.runtime.rule.Match- Returns:
- The rule that was activated.
-
getConsequence
public Consequence getConsequence()
- Specified by:
getConsequencein interfaceActivation
-
getSalience
public int getSalience()
- Specified by:
getSaliencein interfaceActivation
-
getSubRule
public GroupElement getSubRule()
Description copied from interface:ActivationRetrieve the subrule that was activated.- Specified by:
getSubRulein interfaceActivation- Returns:
-
getActivationNumber
public long getActivationNumber()
Description copied from interface:ActivationEach PropgationContext is assigned an id from a counter for the WorkingMemory action it represents. All Activations return this id as the ActivationNumber, thus all Activations created from the same PropgationContext will return the same long for this method.- Specified by:
getActivationNumberin interfaceActivation- Returns:
- The activation number
-
getTuple
public LeftTuple getTuple()
Description copied from interface:ActivationRetrieve theTuplethat was activated.- Specified by:
getTuplein interfaceActivation- Returns:
- The tuple.
-
getPropagationContext
public PropagationContext getPropagationContext()
Description copied from interface:ActivationRetrieve thePropagationContextfor theActivation- Specified by:
getPropagationContextin interfaceActivation- Returns:
- The propagation context
-
remove
public void remove()
Description copied from interface:ActivationCancel theActivationby removing it from theAgenda.- Specified by:
removein interfaceActivation
-
setQueued
public void setQueued(boolean activated)
- Specified by:
setQueuedin interfaceActivation
-
isQueued
public boolean isQueued()
- Specified by:
isQueuedin interfaceActivation
-
getAgendaGroup
public InternalAgendaGroup getAgendaGroup()
- Specified by:
getAgendaGroupin interfaceActivation
-
getActivationGroupNode
public ActivationGroupNode getActivationGroupNode()
- Specified by:
getActivationGroupNodein interfaceActivation
-
setActivationGroupNode
public void setActivationGroupNode(ActivationGroupNode activationGroupNode)
- Specified by:
setActivationGroupNodein interfaceActivation
-
getActivationNode
public ActivationNode getActivationNode()
- Specified by:
getActivationNodein interfaceActivation
-
setActivationNode
public void setActivationNode(ActivationNode ruleFlowGroupNode)
- Specified by:
setActivationNodein interfaceActivation
-
getActivationFactHandle
public InternalFactHandle getActivationFactHandle()
- Specified by:
getActivationFactHandlein interfaceActivation
-
isMatched
public boolean isMatched()
- Specified by:
isMatchedin interfaceActivation
-
setMatched
public void setMatched(boolean matched)
- Specified by:
setMatchedin interfaceActivation
-
isActive
public boolean isActive()
- Specified by:
isActivein interfaceActivation
-
setActive
public void setActive(boolean active)
- Specified by:
setActivein interfaceActivation
-
isRuleAgendaItem
public boolean isRuleAgendaItem()
- Specified by:
isRuleAgendaItemin interfaceActivation
-
setQueueIndex
public void setQueueIndex(int index)
- Specified by:
setQueueIndexin interfaceActivation
-
getQueueIndex
public int getQueueIndex()
- Specified by:
getQueueIndexin interfaceActivation
-
dequeue
public void dequeue()
- Specified by:
dequeuein interfaceActivation
-
getFactHandles
public java.util.List<? extends org.kie.api.runtime.rule.FactHandle> getFactHandles()
- Specified by:
getFactHandlesin interfaceorg.kie.api.runtime.rule.Match
-
getObjects
public java.util.List<java.lang.Object> getObjects()
- Specified by:
getObjectsin interfaceorg.kie.api.runtime.rule.Match
-
getDeclarationIds
public java.util.List<java.lang.String> getDeclarationIds()
- Specified by:
getDeclarationIdsin interfaceorg.kie.api.runtime.rule.Match
-
getDeclarationValue
public java.lang.Object getDeclarationValue(java.lang.String s)
- Specified by:
getDeclarationValuein interfaceorg.kie.api.runtime.rule.Match
-
-