org.drools.core.common
Class VisitedAgendaGroup
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VisitedAgendaGroup
public VisitedAgendaGroup()
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
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.