Package org.drools.core.reteoo
Class RuleTerminalNodeLeftTuple
java.lang.Object
org.drools.core.reteoo.TupleImpl
org.drools.core.reteoo.LeftTuple
org.drools.core.reteoo.RuleTerminalNodeLeftTuple
- All Implemented Interfaces:
Serializable,BaseTuple,Tuple<TupleImpl>,InternalMatch,DoubleLinkedEntry<TupleImpl>,Queue.QueueEntry,SingleLinkedEntry<TupleImpl>,Match
- See Also:
-
Field Summary
FieldsFields inherited from class org.drools.core.reteoo.TupleImpl
firstChild, handle, handleNext, handlePrevious, lastChild, memory, stagedNext, stagedPrevious -
Constructor Summary
ConstructorsConstructorDescriptionRuleTerminalNodeLeftTuple(InternalFactHandle factHandle, Sink sink, boolean leftTupleMemoryEnabled) RuleTerminalNodeLeftTuple(InternalFactHandle factHandle, TupleImpl leftTuple, Sink sink) RuleTerminalNodeLeftTuple(TupleImpl leftTuple, Sink sink, PropagationContext pctx, boolean leftTupleMemoryEnabled) RuleTerminalNodeLeftTuple(TupleImpl leftTuple, TupleImpl rightTuple, Sink sink) RuleTerminalNodeLeftTuple(TupleImpl leftTuple, TupleImpl rightTuple, TupleImpl currentLeftChild, TupleImpl currentRightChild, Sink sink, boolean leftTupleMemoryEnabled) -
Method Summary
Modifier and TypeMethodDescriptionvoidcancelActivation(ActivationsManager activationsManager) voiddequeue()booleanlongEach PropagationContext is assigned an id from a counter for the WorkingMemory action it represents.getDeclarationValue(String variableName) intgetRule()Retrieve the rule.intgetTuple()Retrieve the tuple.booleaninthashCode()voidinit(long activationNumber, int salience, PropagationContext pctx, RuleAgendaItem ruleAgendaItem, InternalAgendaGroup agendaGroup) booleanisActive()booleanbooleanbooleanbooleanisQueued()voidremove()Cancel theActivationby removing it from theAgenda.voidsetActivationFactHandle(InternalFactHandle factHandle) voidsetActivationGroupNode(ActivationGroupNode activationNode) voidsetActivationNode(ActivationNode activationNode) voidsetActive(boolean active) voidsetCallback(Runnable callback) voidsetDormant(boolean dormant) voidsetMatched(boolean matched) voidsetQueued(boolean queued) voidsetQueueIndex(int queueIndex) voidsetSalience(int salience) protected voidtoString()voidupdate(int salience, PropagationContext pctx) Methods inherited from class org.drools.core.reteoo.LeftTuple
getInputOtnId, isLeftTuple, reAddMethods inherited from class org.drools.core.reteoo.TupleImpl
clear, clearBlocker, clearStaged, doUnlinkFromRightParent, get, get, getAccumulatedObjects, getBlockedNext, getBlockedPrevious, getBlocker, getContextObject, getFactHandle, getFactHandleForEvaluation, getFirstChild, getHandleNext, getHandlePrevious, getIndex, getLastChild, getLeftParent, getMemory, getNext, getNextParentWithHandle, getObject, getObject, getOriginalFactHandle, getParent, getPeer, getPrevious, getPropagationContext, getRightParent, getRightParentNext, getRightParentPrevious, getRootTuple, getSink, getStagedNext, getStagedPrevious, getStagedType, getStagedTypeForQueries, getSubTuple, getTuple, initPeer, isExpired, isStagedOnRight, isSubnetworkTuple, reAddLeft, reAddRight, setBlockedNext, setBlockedPrevious, setBlocker, setContextObject, setExpired, setFactHandle, setFirstChild, setHandleNext, setHandlePrevious, setLastChild, setLeftParent, setLeftTupleSink, setMemory, setNext, setPeer, setPrevious, setPropagationContext, setRightParent, setRightParentNext, setRightParentPrevious, setStagedNext, setStagedPrevious, setStagedType, setStagedTypeForQueries, size, skipEmptyHandles, toExternalString, toFactHandles, toObjects, unlinkFromLeftParent, unlinkFromRightParentMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.drools.core.rule.consequence.InternalMatch
checkProcessInstance, getFactHandles, getObjects, getObjectsDeep, getPropagationContextMethods inherited from interface org.drools.core.reteoo.Tuple
findMostRecentPropagationContext, isDeleted, toObjects
-
Field Details
-
ruleAgendaItem
-
-
Constructor Details
-
RuleTerminalNodeLeftTuple
public RuleTerminalNodeLeftTuple() -
RuleTerminalNodeLeftTuple
public RuleTerminalNodeLeftTuple(InternalFactHandle factHandle, Sink sink, boolean leftTupleMemoryEnabled) -
RuleTerminalNodeLeftTuple
-
RuleTerminalNodeLeftTuple
public RuleTerminalNodeLeftTuple(TupleImpl leftTuple, Sink sink, PropagationContext pctx, boolean leftTupleMemoryEnabled) -
RuleTerminalNodeLeftTuple
-
RuleTerminalNodeLeftTuple
-
-
Method Details
-
init
public void init(long activationNumber, int salience, PropagationContext pctx, RuleAgendaItem ruleAgendaItem, InternalAgendaGroup agendaGroup) -
update
-
setSink
-
getRule
Retrieve the rule.- Specified by:
getRulein interfaceInternalMatch- Specified by:
getRulein interfaceMatch- Returns:
- The rule.
-
getConsequence
- Specified by:
getConsequencein interfaceInternalMatch
-
getTuple
Retrieve the tuple.- Specified by:
getTuplein interfaceInternalMatch- Returns:
- The tuple.
-
getSalience
public int getSalience()- Specified by:
getSaliencein interfaceMatch
-
setSalience
public void setSalience(int salience) -
getActivationFactHandle
- Specified by:
getActivationFactHandlein interfaceInternalMatch
-
setActivationFactHandle
- Specified by:
setActivationFactHandlein interfaceInternalMatch
-
getRuleAgendaItem
- Specified by:
getRuleAgendaItemin interfaceInternalMatch
-
getActivationNumber
public long getActivationNumber()Description copied from interface:InternalMatchEach PropagationContext 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 PropagationContext will return the same long for this method.- Specified by:
getActivationNumberin interfaceInternalMatch- Returns:
- The activation number
-
isQueued
public boolean isQueued()- Specified by:
isQueuedin interfaceQueue.QueueEntry
-
setQueued
public void setQueued(boolean queued) - Specified by:
setQueuedin interfaceQueue.QueueEntry
-
setQueueIndex
public void setQueueIndex(int queueIndex) - Specified by:
setQueueIndexin interfaceQueue.QueueEntry
-
getQueueIndex
public int getQueueIndex()- Specified by:
getQueueIndexin interfaceQueue.QueueEntry
-
dequeue
public void dequeue()- Specified by:
dequeuein interfaceQueue.QueueEntry
-
remove
public void remove()Description copied from interface:InternalMatchCancel theActivationby removing it from theAgenda.- Specified by:
removein interfaceInternalMatch
-
getActivationGroupNode
- Specified by:
getActivationGroupNodein interfaceInternalMatch
-
setActivationGroupNode
- Specified by:
setActivationGroupNodein interfaceInternalMatch
-
getAgendaGroup
- Specified by:
getAgendaGroupin interfaceInternalMatch
-
getActivationNode
- Specified by:
getActivationNodein interfaceInternalMatch
-
setActivationNode
- Specified by:
setActivationNodein interfaceInternalMatch
-
getTerminalNode
- Specified by:
getTerminalNodein interfaceInternalMatch
-
getFactHandles
- Specified by:
getFactHandlesin interfaceMatch
-
toExternalForm
- Specified by:
toExternalFormin interfaceInternalMatch
-
getObjects
- Specified by:
getObjectsin interfaceMatch
-
getObjectsDeep
- Specified by:
getObjectsDeepin interfaceInternalMatch
-
getDeclarationValue
- Specified by:
getDeclarationValuein interfaceMatch
-
getDeclarationIds
- Specified by:
getDeclarationIdsin interfaceMatch
-
isMatched
public boolean isMatched()- Specified by:
isMatchedin interfaceInternalMatch
-
setMatched
public void setMatched(boolean matched) - Specified by:
setMatchedin interfaceInternalMatch
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceInternalMatch
-
setActive
public void setActive(boolean active) - Specified by:
setActivein interfaceInternalMatch
-
hasBlockers
public boolean hasBlockers() -
getCallback
- Specified by:
getCallbackin interfaceInternalMatch
-
setCallback
- Specified by:
setCallbackin interfaceInternalMatch
-
toString
-
cancelActivation
-
equals
-
hashCode
public int hashCode() -
isFullMatch
public boolean isFullMatch()- Overrides:
isFullMatchin classTupleImpl
-
isDormant
public boolean isDormant() -
setDormant
public void setDormant(boolean dormant)
-