org.drools.core.reteoo
Class SegmentMemory
java.lang.Object
org.drools.core.util.LinkedList<SegmentMemory>
org.drools.core.reteoo.SegmentMemory
- All Implemented Interfaces:
- Externalizable, Serializable, Entry<SegmentMemory>, LinkedListNode<SegmentMemory>
public class SegmentMemory
- extends LinkedList<SegmentMemory>
- implements LinkedListNode<SegmentMemory>
- See Also:
- Serialized Form
|
Field Summary |
protected static org.slf4j.Logger |
log
|
| Methods inherited from class org.drools.core.util.LinkedList |
add, addLast, clear, fastIterator, get, getFirst, getLast, insertAfter, isEmpty, iterator, javaUtilIterator, readExternal, remove, removeFirst, removeLast, size, writeExternal |
log
protected static transient org.slf4j.Logger log
SegmentMemory
public SegmentMemory(NetworkNode rootNode)
SegmentMemory
public SegmentMemory(NetworkNode rootNode,
Queue<TupleEntry> queue)
getTupleQueue
public Queue<TupleEntry> getTupleQueue()
setTupleQueue
public void setTupleQueue(Queue<TupleEntry> queue)
getRootNode
public NetworkNode getRootNode()
getTipNode
public NetworkNode getTipNode()
setTipNode
public void setTipNode(NetworkNode tipNode)
getSinkFactory
public LeftTupleSink getSinkFactory()
setSinkFactory
public void setSinkFactory(LeftTupleSink sink)
createNodeMemory
public Memory createNodeMemory(MemoryFactory memoryFactory,
InternalWorkingMemory wm)
getNodeMemories
public LinkedList<Memory> getNodeMemories()
getLinkedNodeMask
public long getLinkedNodeMask()
setLinkedNodeMask
public void setLinkedNodeMask(long linkedNodeMask)
getRuleNames
public String getRuleNames()
linkNode
public void linkNode(long mask,
InternalWorkingMemory wm)
linkNodeWithoutRuleNotify
public void linkNodeWithoutRuleNotify(long mask)
notifyRuleLinkSegment
public void notifyRuleLinkSegment(InternalWorkingMemory wm)
unlinkNode
public void unlinkNode(long mask,
InternalWorkingMemory wm)
unlinkNodeWithoutRuleNotify
public void unlinkNodeWithoutRuleNotify(long mask)
getAllLinkedMaskTest
public long getAllLinkedMaskTest()
setAllLinkedMaskTest
public void setAllLinkedMaskTest(long allLinkedTestMask)
isSegmentLinked
public boolean isSegmentLinked()
getPathMemories
public List<PathMemory> getPathMemories()
setPathMemories
public void setPathMemories(List<PathMemory> ruleSegments)
getSegmentPosMaskBit
public long getSegmentPosMaskBit()
setSegmentPosMaskBit
public void setSegmentPosMaskBit(long nodeSegmenMask)
isActive
public boolean isActive()
setActive
public void setActive(boolean evaluating)
getPos
public int getPos()
setPos
public void setPos(int pos)
getStagedLeftTuples
public LeftTupleSets getStagedLeftTuples()
setStagedTuples
public void setStagedTuples(LeftTupleSets stagedTuples)
getNext
public SegmentMemory getNext()
- Specified by:
getNext in interface Entry<SegmentMemory>
setNext
public void setNext(SegmentMemory next)
- Specified by:
setNext in interface Entry<SegmentMemory>
getPrevious
public SegmentMemory getPrevious()
- Description copied from interface:
LinkedListNode
- Returns the previous node
- Specified by:
getPrevious in interface LinkedListNode<SegmentMemory>
- Returns:
- The previous LinkedListNode
setPrevious
public void setPrevious(SegmentMemory previous)
- Description copied from interface:
LinkedListNode
- Sets the previous node
- Specified by:
setPrevious in interface LinkedListNode<SegmentMemory>
- Parameters:
previous - The previous LinkedListNode
hashCode
public int hashCode()
- Overrides:
hashCode in class LinkedList<SegmentMemory>
equals
public boolean equals(Object obj)
- Overrides:
equals in class LinkedList<SegmentMemory>
asPrototype
public SegmentMemory.Prototype asPrototype()
getNodesInSegment
public List<NetworkNode> getNodesInSegment()
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.