Drools :: Core 6.0.0.Beta5

org.drools.core.reteoo
Class SegmentMemory

java.lang.Object
  extended by org.drools.core.util.LinkedList<SegmentMemory>
      extended by 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

Nested Class Summary
static class SegmentMemory.AccumulateMemoryPrototype
           
static class SegmentMemory.BetaMemoryPrototype
           
static class SegmentMemory.FromMemoryPrototype
           
static class SegmentMemory.LiaMemoryPrototype
           
static class SegmentMemory.MemoryPrototype
           
static class SegmentMemory.Prototype
           
static class SegmentMemory.QueryMemoryPrototype
           
 
Nested classes/interfaces inherited from class org.drools.core.util.LinkedList
LinkedList.JavaUtilIterator<T extends LinkedListNode<T>>, LinkedList.LinkedListFastIterator, LinkedList.LinkedListIterator<T extends LinkedListNode<T>>
 
Field Summary
protected static org.slf4j.Logger log
           
 
Fields inherited from class org.drools.core.util.LinkedList
fastIterator
 
Constructor Summary
SegmentMemory(NetworkNode rootNode)
           
SegmentMemory(NetworkNode rootNode, Queue<TupleEntry> queue)
           
 
Method Summary
 SegmentMemory.Prototype asPrototype()
           
 Memory createNodeMemory(MemoryFactory memoryFactory, InternalWorkingMemory wm)
           
 boolean equals(Object obj)
           
 long getAllLinkedMaskTest()
           
 long getLinkedNodeMask()
           
 SegmentMemory getNext()
           
 LinkedList<Memory> getNodeMemories()
           
 List<NetworkNode> getNodesInSegment()
           
 List<PathMemory> getPathMemories()
           
 int getPos()
           
 SegmentMemory getPrevious()
          Returns the previous node
 NetworkNode getRootNode()
           
 String getRuleNames()
           
 long getSegmentPosMaskBit()
           
 LeftTupleSink getSinkFactory()
           
 LeftTupleSets getStagedLeftTuples()
           
 NetworkNode getTipNode()
           
 Queue<TupleEntry> getTupleQueue()
           
 int hashCode()
           
 boolean isActive()
           
 boolean isSegmentLinked()
           
 void linkNode(long mask, InternalWorkingMemory wm)
           
 void linkNodeWithoutRuleNotify(long mask)
           
 void notifyRuleLinkSegment(InternalWorkingMemory wm)
           
 void setActive(boolean evaluating)
           
 void setAllLinkedMaskTest(long allLinkedTestMask)
           
 void setLinkedNodeMask(long linkedNodeMask)
           
 void setNext(SegmentMemory next)
           
 void setPathMemories(List<PathMemory> ruleSegments)
           
 void setPos(int pos)
           
 void setPrevious(SegmentMemory previous)
          Sets the previous node
 void setSegmentPosMaskBit(long nodeSegmenMask)
           
 void setSinkFactory(LeftTupleSink sink)
           
 void setStagedTuples(LeftTupleSets stagedTuples)
           
 void setTipNode(NetworkNode tipNode)
           
 void setTupleQueue(Queue<TupleEntry> queue)
           
 void unlinkNode(long mask, InternalWorkingMemory wm)
           
 void unlinkNodeWithoutRuleNotify(long mask)
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static transient org.slf4j.Logger log
Constructor Detail

SegmentMemory

public SegmentMemory(NetworkNode rootNode)

SegmentMemory

public SegmentMemory(NetworkNode rootNode,
                     Queue<TupleEntry> queue)
Method Detail

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()

Drools :: Core 6.0.0.Beta5

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.