|
Drools :: Core 6.1.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.core.common.BaseNode
org.drools.core.reteoo.AbstractTerminalNode
org.drools.core.reteoo.RuleTerminalNode
public class RuleTerminalNode
Leaf Rete-OO node responsible for enacting Action s on a
matched Rule.
Rule,
Serialized Form| Nested Class Summary | |
|---|---|
static class |
RuleTerminalNode.RTNCleanupAdapter
|
static class |
RuleTerminalNode.SortDeclarations
|
| Field Summary | |
|---|---|
protected String |
consequenceName
|
protected Declaration[] |
declarations
|
protected Declaration[] |
enabledDeclarations
|
protected boolean |
fireDirect
|
protected ObjectTypeNode.Id |
leftInputOtnId
|
protected LeftTupleSinkNode |
nextTupleSinkNode
|
protected LeftTupleSinkNode |
previousTupleSinkNode
|
protected Rule |
rule
The rule to invoke upon match. |
protected Declaration[] |
salienceDeclarations
|
protected GroupElement |
subrule
the subrule reference is needed to resolve declarations because declarations may have different offsets in each subrule |
protected int |
subruleIndex
|
protected Declaration[][] |
timerDeclarations
|
| Fields inherited from class org.drools.core.common.BaseNode |
|---|
associations, id, partitionId, partitionsEnabled, streamMode |
| Constructor Summary | |
|---|---|
RuleTerminalNode()
|
|
RuleTerminalNode(int id,
LeftTupleSource source,
Rule rule,
GroupElement subrule,
int subruleIndex,
BuildContext context)
|
|
| Methods inherited from class org.drools.core.reteoo.AbstractTerminalNode |
|---|
createMemory, createPeer, doRemove, getDeclaredMask, getInferredMask, getLeftInferredMask, getLeftTupleSource, getNegativeMask, initDeclaredMask, initInferredMask, initPathMemory, modifyLeftTuple, setDeclaredMask, setInferredMask, setNegativeMask, unwrapTupleSource |
| Methods inherited from class org.drools.core.common.BaseNode |
|---|
addAssociation, attach, getAssociations, getId, getPartitionId, isStreamMode, remove, removeAssociation, setId, setPartitionId |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.drools.core.common.NetworkNode |
|---|
getAssociations, getId, getPartitionId |
| Methods inherited from interface org.drools.core.common.MemoryFactory |
|---|
getId |
| Field Detail |
|---|
protected Rule rule
protected GroupElement subrule
protected int subruleIndex
protected Declaration[] declarations
protected Declaration[][] timerDeclarations
protected Declaration[] salienceDeclarations
protected Declaration[] enabledDeclarations
protected LeftTupleSinkNode previousTupleSinkNode
protected LeftTupleSinkNode nextTupleSinkNode
protected boolean fireDirect
protected transient ObjectTypeNode.Id leftInputOtnId
protected String consequenceName
| Constructor Detail |
|---|
public RuleTerminalNode()
public RuleTerminalNode(int id,
LeftTupleSource source,
Rule rule,
GroupElement subrule,
int subruleIndex,
BuildContext context)
id - source - rule - subrule - subruleIndex - context - | Method Detail |
|---|
public void setDeclarations(Map<String,Declaration> decls)
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class AbstractTerminalNodeIOException
ClassNotFoundException
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizablewriteExternal in class AbstractTerminalNodeIOExceptionpublic Rule getRule()
Action associated with this node.
getRule in interface TerminalNodegetRule in class AbstractTerminalNodeAction associated with this node.public GroupElement getSubRule()
public static PropagationContext findMostRecentPropagationContext(LeftTuple leftTuple,
PropagationContext context)
public String toString()
toString in class BaseNodepublic void attach(BuildContext context)
BaseNodeObjectSource or TupleSource
attach in class BaseNodepublic void networkUpdated(UpdateContext updateContext)
BaseNode
networkUpdated in class BaseNodepublic boolean isInUse()
BaseNode
isInUse in class BaseNodepublic boolean isLeftTupleMemoryEnabled()
public void setLeftTupleMemoryEnabled(boolean tupleMemoryEnabled)
public Declaration[] getDeclarations()
public Declaration[][] getTimerDeclarations()
public Declaration[] getSalienceDeclarations()
public void setSalienceDeclarations(Declaration[] salienceDeclarations)
public Declaration[] getEnabledDeclarations()
public void setEnabledDeclarations(Declaration[] enabledDeclarations)
public String getConsequenceName()
public void setConsequenceName(String consequenceName)
public void cancelMatch(AgendaItem match,
InternalWorkingMemoryActions workingMemory)
public LeftTupleSinkNode getNextLeftTupleSinkNode()
public void setNextLeftTupleSinkNode(LeftTupleSinkNode next)
next - The next TupleSinkNodepublic LeftTupleSinkNode getPreviousLeftTupleSinkNode()
public void setPreviousLeftTupleSinkNode(LeftTupleSinkNode previous)
previous - The previous TupleSinkNodepublic int hashCode()
BaseNode
hashCode in class BaseNodepublic boolean equals(Object object)
equals in class Objectpublic short getType()
public LeftTuple createLeftTuple(InternalFactHandle factHandle,
LeftTuple leftTuple,
LeftTupleSink sink)
public LeftTuple createLeftTuple(InternalFactHandle factHandle,
LeftTupleSink sink,
boolean leftTupleMemoryEnabled)
public LeftTuple createLeftTuple(LeftTuple leftTuple,
LeftTupleSink sink,
PropagationContext pctx,
boolean leftTupleMemoryEnabled)
public LeftTuple createLeftTuple(LeftTuple leftTuple,
RightTuple rightTuple,
LeftTupleSink sink)
public LeftTuple createLeftTuple(LeftTuple leftTuple,
RightTuple rightTuple,
LeftTuple currentLeftChild,
LeftTuple currentRightChild,
LeftTupleSink sink,
boolean leftTupleMemoryEnabled)
public ObjectTypeNode.Id getLeftInputOtnId()
public void setLeftInputOtnId(ObjectTypeNode.Id leftInputOtnId)
public boolean isFireDirect()
public void setFireDirect(boolean fireDirect)
protected ObjectTypeNode getObjectTypeNode()
public void assertLeftTuple(LeftTuple leftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
LeftTupleSinkReteTuple.
leftTuple - The ReteTuple to propagate.context - The PropagationContext of the WorkingMemory actionworkingMemory - the WorkingMemory session.
public void retractLeftTuple(LeftTuple leftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
public void modifyLeftTuple(LeftTuple leftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
Drools :: Core 6.1.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||