Package org.drools.core.reteoo
Class SegmentMemory
- java.lang.Object
-
- org.drools.core.util.LinkedList<SegmentMemory>
-
- org.drools.core.reteoo.SegmentMemory
-
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
,Entry<SegmentMemory>
,LinkedListNode<SegmentMemory>
public class SegmentMemory extends LinkedList<SegmentMemory> implements LinkedListNode<SegmentMemory>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SegmentMemory.AccumulateMemoryPrototype
static class
SegmentMemory.AsyncReceiveMemoryPrototype
static class
SegmentMemory.AsyncSendMemoryPrototype
static class
SegmentMemory.BetaMemoryPrototype
static class
SegmentMemory.ConditionalBranchMemoryPrototype
static class
SegmentMemory.EvalMemoryPrototype
static class
SegmentMemory.FromMemoryPrototype
static class
SegmentMemory.LiaMemoryPrototype
static class
SegmentMemory.MemoryPrototype
static class
SegmentMemory.QueryMemoryPrototype
static class
SegmentMemory.ReactiveFromMemoryPrototype
static class
SegmentMemory.RightInputAdapterPrototype
static class
SegmentMemory.SegmentPrototype
static class
SegmentMemory.TerminalPrototype
static class
SegmentMemory.TimerMemoryPrototype
-
Nested classes/interfaces inherited from class org.drools.core.util.LinkedList
LinkedList.JavaUtilIterator<T extends LinkedListNode<T>>, LinkedList.LinkedListFastIterator<K extends Entry<K>>, LinkedList.LinkedListIterator<T extends LinkedListNode<T>>
-
-
Field Summary
Fields Modifier and Type Field Description protected static boolean
IS_LOG_TRACE_ENABLED
protected static org.slf4j.Logger
log
-
Fields inherited from class org.drools.core.util.LinkedList
fastIterator
-
-
Constructor Summary
Constructors Constructor Description SegmentMemory()
SegmentMemory(LeftTupleNode rootNode)
-
Method Summary
-
Methods inherited from class org.drools.core.util.LinkedList
addFirst, addLast, clear, contains, fastIterator, get, getFirst, getLast, insertAfter, isEmpty, iterator, javaUtilIterator, readExternal, removeFirst, removeLast, size, writeExternal
-
-
-
-
Constructor Detail
-
SegmentMemory
public SegmentMemory()
-
SegmentMemory
public SegmentMemory(LeftTupleNode rootNode)
-
-
Method Detail
-
createNodeMemory
public <T extends Memory> T createNodeMemory(MemoryFactory<T> memoryFactory, ReteEvaluator reteEvaluator)
-
getRootNode
public LeftTupleNode getRootNode()
-
getSegmentPrototype
public SegmentMemory.SegmentPrototype getSegmentPrototype()
-
getTipNode
public LeftTupleNode getTipNode()
-
setTipNode
public void setTipNode(LeftTupleNode tipNode)
-
getSinkFactory
public LeftTupleSink getSinkFactory()
-
getNodeMemories
public Memory[] getNodeMemories()
-
setNodeMemories
public void setNodeMemories(Memory[] nodeMemories)
-
getLinkedNodeMask
public long getLinkedNodeMask()
-
setLinkedNodeMask
public void setLinkedNodeMask(long linkedNodeMask)
-
getDirtyNodeMask
public long getDirtyNodeMask()
-
setDirtyNodeMask
public void setDirtyNodeMask(long dirtyNodeMask)
-
updateDirtyNodeMask
public void updateDirtyNodeMask(long mask)
-
updateCleanNodeMask
public void updateCleanNodeMask(long mask)
-
getRuleNames
public java.lang.String getRuleNames()
-
linkNode
public boolean linkNode(long mask, ReteEvaluator reteEvaluator)
-
linkNodeWithoutRuleNotify
public boolean linkNodeWithoutRuleNotify(long mask)
-
linkSegmentWithoutRuleNotify
public boolean linkSegmentWithoutRuleNotify(long mask)
-
notifyRuleLinkSegment
public boolean notifyRuleLinkSegment(ReteEvaluator reteEvaluator, long mask)
-
notifyRuleLinkSegment
public boolean notifyRuleLinkSegment(ReteEvaluator reteEvaluator)
-
notifyRuleLinkSegment
public void notifyRuleLinkSegment(ReteEvaluator reteEvaluator, PathMemory pmem)
-
unlinkNode
public boolean unlinkNode(long mask, ReteEvaluator reteEvaluator)
-
unlinkSegment
public void unlinkSegment(ReteEvaluator reteEvaluator)
-
unlinkNodeWithoutRuleNotify
public void unlinkNodeWithoutRuleNotify(long mask)
-
getAllLinkedMaskTest
public long getAllLinkedMaskTest()
-
setAllLinkedMaskTest
public void setAllLinkedMaskTest(long allLinkedTestMask)
-
isSegmentLinked
public boolean isSegmentLinked()
-
getPathMemories
public java.util.List<PathMemory> getPathMemories()
-
addPathMemory
public void addPathMemory(PathMemory pathMemory)
-
mergePathMemories
public void mergePathMemories(SegmentMemory segmentMemory)
-
removePathMemory
public void removePathMemory(PathMemory pathMemory)
-
getFirstDataDrivenPathMemory
public PathMemory getFirstDataDrivenPathMemory()
-
hasDataDrivenPathMemories
public boolean hasDataDrivenPathMemories()
-
getDataDrivenPathMemories
public java.util.List<PathMemory> getDataDrivenPathMemories()
-
getSegmentPosMaskBit
public long getSegmentPosMaskBit()
-
setSegmentPosMaskBit
public void setSegmentPosMaskBit(long segmentPosMaskBit)
-
isActive
public boolean isActive()
-
setActive
public void setActive(boolean evaluating)
-
getPos
public int getPos()
-
setPos
public void setPos(int pos)
-
add
public void add(SegmentMemory segmentMemory)
Description copied from class:LinkedList
Add aLinkedListNode
to the list. If theLinkedList
is empty then the first and last nodes are set to the added node.- Overrides:
add
in classLinkedList<SegmentMemory>
- Parameters:
segmentMemory
- TheLinkedListNode
to be added
-
remove
public void remove(SegmentMemory segmentMemory)
Description copied from class:LinkedList
Removes aLinkedListNode
from the list. This works by attach the previous reference to the child reference. When the node to be removed is the first node it callsremoveFirst()
. When the node to be removed is the last node it callsremoveLast()
.- Overrides:
remove
in classLinkedList<SegmentMemory>
- Parameters:
segmentMemory
- TheLinkedListNode
to be removed.
-
getPeersWithDataDrivenPathMemoriesIterator
public java.util.Iterator<SegmentMemory> getPeersWithDataDrivenPathMemoriesIterator()
-
getNext
public SegmentMemory getNext()
- Specified by:
getNext
in interfaceEntry<SegmentMemory>
-
setNext
public void setNext(SegmentMemory next)
- Specified by:
setNext
in interfaceEntry<SegmentMemory>
-
getPrevious
public SegmentMemory getPrevious()
Description copied from interface:LinkedListNode
Returns the previous node- Specified by:
getPrevious
in interfaceLinkedListNode<SegmentMemory>
- Returns:
- The previous LinkedListNode
-
setPrevious
public void setPrevious(SegmentMemory previous)
Description copied from interface:LinkedListNode
Sets the previous node- Specified by:
setPrevious
in interfaceLinkedListNode<SegmentMemory>
- Parameters:
previous
- The previous LinkedListNode
-
nullPrevNext
public void nullPrevNext()
- Specified by:
nullPrevNext
in interfaceLinkedListNode<SegmentMemory>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classLinkedList<SegmentMemory>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classLinkedList<SegmentMemory>
-
reset
public void reset(SegmentMemory.SegmentPrototype segmentPrototype)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-