public class AgendaItemImpl<T extends ModedAssertion<T>> extends Object implements AgendaItem<T>
Agenda
.Constructor and Description |
---|
AgendaItemImpl() |
AgendaItemImpl(long activationNumber,
Tuple tuple,
int salience,
PropagationContext context,
TerminalNode rtn,
InternalAgendaGroup agendaGroup)
Construct.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getFactHandles, getObjects, getObjectsDeep
public AgendaItemImpl()
public AgendaItemImpl(long activationNumber, Tuple tuple, int salience, PropagationContext context, TerminalNode rtn, InternalAgendaGroup agendaGroup)
tuple
- The tuple.agendaGroup
- public PropagationContext getPropagationContext()
Activation
PropagationContext
for the Activation
getPropagationContext
in interface Activation<T extends ModedAssertion<T>>
public void setPropagationContext(PropagationContext context)
setPropagationContext
in interface AgendaItem<T extends ModedAssertion<T>>
public RuleImpl getRule()
getRule
in interface Activation<T extends ModedAssertion<T>>
getRule
in interface org.kie.api.runtime.rule.Match
public RuleBasePartitionId getPartition()
public Consequence getConsequence()
getConsequence
in interface Activation<T extends ModedAssertion<T>>
public Tuple getTuple()
getTuple
in interface Activation<T extends ModedAssertion<T>>
public int getSalience()
getSalience
in interface Activation<T extends ModedAssertion<T>>
public void setSalience(int salience)
setSalience
in interface AgendaItem<T extends ModedAssertion<T>>
public InternalFactHandle getActivationFactHandle()
getActivationFactHandle
in interface Activation<T extends ModedAssertion<T>>
public void setActivationFactHandle(InternalFactHandle factHandle)
setActivationFactHandle
in interface AgendaItem<T extends ModedAssertion<T>>
public RuleAgendaItem getRuleAgendaItem()
getRuleAgendaItem
in interface AgendaItem<T extends ModedAssertion<T>>
public long getActivationNumber()
Activation
getActivationNumber
in interface Activation<T extends ModedAssertion<T>>
public void addBlocked(LogicalDependency<SimpleMode> dep)
addBlocked
in interface Activation<T extends ModedAssertion<T>>
public void removeAllBlockersAndBlocked(InternalAgenda agenda)
removeAllBlockersAndBlocked
in interface AgendaItem<T extends ModedAssertion<T>>
public void removeBlocked(LogicalDependency<SimpleMode> dep)
removeBlocked
in interface AgendaItem<T extends ModedAssertion<T>>
public LinkedList<LogicalDependency<SimpleMode>> getBlocked()
getBlocked
in interface Activation<T extends ModedAssertion<T>>
public void setBlocked(LinkedList<LogicalDependency<SimpleMode>> justified)
setBlocked
in interface Activation<T extends ModedAssertion<T>>
public LinkedList<SimpleMode> getBlockers()
getBlockers
in interface Activation<T extends ModedAssertion<T>>
public void addLogicalDependency(LogicalDependency<T> node)
addLogicalDependency
in interface Activation<T extends ModedAssertion<T>>
public LinkedList<LogicalDependency<T>> getLogicalDependencies()
getLogicalDependencies
in interface Activation<T extends ModedAssertion<T>>
public void setLogicalDependencies(LinkedList<LogicalDependency<T>> justified)
setLogicalDependencies
in interface Activation<T extends ModedAssertion<T>>
public boolean isQueued()
isQueued
in interface Activation<T extends ModedAssertion<T>>
public void setQueued(boolean queued)
setQueued
in interface Activation<T extends ModedAssertion<T>>
public int hashCode()
TupleKey as the hashCode of the AgendaItem
public void setQueueIndex(int index)
setQueueIndex
in interface Activation<T extends ModedAssertion<T>>
public void dequeue()
dequeue
in interface Activation<T extends ModedAssertion<T>>
public int getQueueIndex()
getQueueIndex
in interface Activation<T extends ModedAssertion<T>>
public void remove()
Activation
Activation
by removing it from the Agenda
.remove
in interface Activation<T extends ModedAssertion<T>>
public ActivationGroupNode getActivationGroupNode()
getActivationGroupNode
in interface Activation<T extends ModedAssertion<T>>
public void setActivationGroupNode(ActivationGroupNode activationNode)
setActivationGroupNode
in interface Activation<T extends ModedAssertion<T>>
public InternalAgendaGroup getAgendaGroup()
getAgendaGroup
in interface Activation<T extends ModedAssertion<T>>
public ActivationNode getActivationNode()
getActivationNode
in interface Activation<T extends ModedAssertion<T>>
public void setActivationNode(ActivationNode activationNode)
setActivationNode
in interface Activation<T extends ModedAssertion<T>>
public GroupElement getSubRule()
Activation
getSubRule
in interface Activation<T extends ModedAssertion<T>>
public TerminalNode getTerminalNode()
getTerminalNode
in interface AgendaItem<T extends ModedAssertion<T>>
public List<org.kie.api.runtime.rule.FactHandle> getFactHandles()
getFactHandles
in interface AgendaItem<T extends ModedAssertion<T>>
getFactHandles
in interface org.kie.api.runtime.rule.Match
public String toExternalForm()
toExternalForm
in interface AgendaItem<T extends ModedAssertion<T>>
public List<Object> getObjects()
getObjects
in interface org.kie.api.runtime.rule.Match
public List<Object> getObjectsDeep()
getObjectsDeep
in interface Activation<T extends ModedAssertion<T>>
public Object getDeclarationValue(String variableName)
getDeclarationValue
in interface org.kie.api.runtime.rule.Match
public List<String> getDeclarationIds()
getDeclarationIds
in interface org.kie.api.runtime.rule.Match
public boolean isCanceled()
isCanceled
in interface AgendaItem<T extends ModedAssertion<T>>
public void cancel()
cancel
in interface AgendaItem<T extends ModedAssertion<T>>
public boolean isMatched()
isMatched
in interface Activation<T extends ModedAssertion<T>>
public void setMatched(boolean matched)
setMatched
in interface Activation<T extends ModedAssertion<T>>
public boolean isActive()
isActive
in interface Activation<T extends ModedAssertion<T>>
public void setActive(boolean active)
setActive
in interface Activation<T extends ModedAssertion<T>>
public boolean isRuleAgendaItem()
isRuleAgendaItem
in interface Activation<T extends ModedAssertion<T>>
public boolean isRuleInUse()
public Runnable getCallback()
getCallback
in interface AgendaItem<T extends ModedAssertion<T>>
public void setCallback(Runnable callback)
setCallback
in interface AgendaItem<T extends ModedAssertion<T>>
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.