Drools :: Core 6.2.0.CR4

org.drools.core.common
Class VisitedAgendaGroup

java.lang.Object
  extended by org.drools.core.common.VisitedAgendaGroup
All Implemented Interfaces:
Serializable, Activation, org.kie.api.runtime.rule.Match

public class VisitedAgendaGroup
extends Object
implements Activation

See Also:
Serialized Form

Constructor Summary
VisitedAgendaGroup()
           
 
Method Summary
 void addBlocked(LogicalDependency node)
           
 void addLogicalDependency(LogicalDependency node)
           
 void dequeue()
           
 ActivationGroupNode getActivationGroupNode()
           
 ActivationNode getActivationNode()
           
 long getActivationNumber()
          Each PropgationContext is assigned an id from a counter for the WorkingMemory action it represents.
 InternalAgendaGroup getAgendaGroup()
           
 LinkedList<LogicalDependency<SimpleMode>> getBlocked()
           
 LinkedList<SimpleMode> getBlockers()
           
 Consequence getConsequence()
           
 List<String> getDeclarationIds()
           
 Object getDeclarationValue(String s)
           
 InternalFactHandle getFactHandle()
           
 List<? extends org.kie.api.runtime.rule.FactHandle> getFactHandles()
           
 LinkedList getLogicalDependencies()
           
 List<Object> getObjects()
           
 PropagationContext getPropagationContext()
          Retrieve the PropagationContext for the Activation
 int getQueueIndex()
           
 RuleImpl getRule()
           
 int getSalience()
           
 GroupElement getSubRule()
          Retrieve the subrule that was activated.
 LeftTuple getTuple()
          Retrieve the Tuple that was activated.
 boolean isActive()
           
 boolean isMatched()
           
 boolean isQueued()
           
 boolean isRuleAgendaItem()
           
 void remove()
          Cancel the Activation by removing it from the Agenda.
 void setActivationGroupNode(ActivationGroupNode activationGroupNode)
           
 void setActivationNode(ActivationNode ruleFlowGroupNode)
           
 void setActive(boolean active)
           
 void setBlocked(LinkedList justified)
           
 void setLogicalDependencies(LinkedList justified)
           
 void setMatched(boolean matched)
           
 void setQueued(boolean activated)
           
 void setQueueIndex(int index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisitedAgendaGroup

public VisitedAgendaGroup()
Method Detail

getRule

public RuleImpl getRule()
Specified by:
getRule in interface Activation
Specified by:
getRule in interface org.kie.api.runtime.rule.Match
Returns:
The rule that was activated.

getConsequence

public Consequence getConsequence()
Specified by:
getConsequence in interface Activation

getSalience

public int getSalience()
Specified by:
getSalience in interface Activation

getSubRule

public GroupElement getSubRule()
Description copied from interface: Activation
Retrieve the subrule that was activated.

Specified by:
getSubRule in interface Activation
Returns:

getActivationNumber

public long getActivationNumber()
Description copied from interface: Activation
Each 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:
getActivationNumber in interface Activation
Returns:
The activation number

getTuple

public LeftTuple getTuple()
Description copied from interface: Activation
Retrieve the Tuple that was activated.

Specified by:
getTuple in interface Activation
Returns:
The tuple.

getPropagationContext

public PropagationContext getPropagationContext()
Description copied from interface: Activation
Retrieve the PropagationContext for the Activation

Specified by:
getPropagationContext in interface Activation
Returns:
The propagation context

remove

public void remove()
Description copied from interface: Activation
Cancel the Activation by removing it from the Agenda.

Specified by:
remove in interface Activation

addBlocked

public void addBlocked(LogicalDependency node)
Specified by:
addBlocked in interface Activation

getBlocked

public LinkedList<LogicalDependency<SimpleMode>> getBlocked()
Specified by:
getBlocked in interface Activation

setBlocked

public void setBlocked(LinkedList justified)
Specified by:
setBlocked in interface Activation

getBlockers

public LinkedList<SimpleMode> getBlockers()
Specified by:
getBlockers in interface Activation

addLogicalDependency

public void addLogicalDependency(LogicalDependency node)
Specified by:
addLogicalDependency in interface Activation

getLogicalDependencies

public LinkedList getLogicalDependencies()
Specified by:
getLogicalDependencies in interface Activation

setLogicalDependencies

public void setLogicalDependencies(LinkedList justified)
Specified by:
setLogicalDependencies in interface Activation

setQueued

public void setQueued(boolean activated)
Specified by:
setQueued in interface Activation

isQueued

public boolean isQueued()
Specified by:
isQueued in interface Activation

getAgendaGroup

public InternalAgendaGroup getAgendaGroup()
Specified by:
getAgendaGroup in interface Activation

getActivationGroupNode

public ActivationGroupNode getActivationGroupNode()
Specified by:
getActivationGroupNode in interface Activation

setActivationGroupNode

public void setActivationGroupNode(ActivationGroupNode activationGroupNode)
Specified by:
setActivationGroupNode in interface Activation

getActivationNode

public ActivationNode getActivationNode()
Specified by:
getActivationNode in interface Activation

setActivationNode

public void setActivationNode(ActivationNode ruleFlowGroupNode)
Specified by:
setActivationNode in interface Activation

getFactHandle

public InternalFactHandle getFactHandle()
Specified by:
getFactHandle in interface Activation

isMatched

public boolean isMatched()
Specified by:
isMatched in interface Activation

setMatched

public void setMatched(boolean matched)
Specified by:
setMatched in interface Activation

isActive

public boolean isActive()
Specified by:
isActive in interface Activation

setActive

public void setActive(boolean active)
Specified by:
setActive in interface Activation

isRuleAgendaItem

public boolean isRuleAgendaItem()
Specified by:
isRuleAgendaItem in interface Activation

setQueueIndex

public void setQueueIndex(int index)
Specified by:
setQueueIndex in interface Activation

getQueueIndex

public int getQueueIndex()
Specified by:
getQueueIndex in interface Activation

dequeue

public void dequeue()
Specified by:
dequeue in interface Activation

getFactHandles

public List<? extends org.kie.api.runtime.rule.FactHandle> getFactHandles()
Specified by:
getFactHandles in interface org.kie.api.runtime.rule.Match

getObjects

public List<Object> getObjects()
Specified by:
getObjects in interface org.kie.api.runtime.rule.Match

getDeclarationIds

public List<String> getDeclarationIds()
Specified by:
getDeclarationIds in interface org.kie.api.runtime.rule.Match

getDeclarationValue

public Object getDeclarationValue(String s)
Specified by:
getDeclarationValue in interface org.kie.api.runtime.rule.Match

Drools :: Core 6.2.0.CR4

Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.