Class SegmentMemory

    • Field Detail

      • log

        protected static final org.slf4j.Logger log
      • IS_LOG_TRACE_ENABLED

        protected static final boolean IS_LOG_TRACE_ENABLED
    • Constructor Detail

      • SegmentMemory

        public SegmentMemory()
      • SegmentMemory

        public SegmentMemory​(LeftTupleNode rootNode)
    • Method Detail

      • 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)
      • 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 a LinkedListNode to the list. If the LinkedList is empty then the first and last nodes are set to the added node.
        Overrides:
        add in class LinkedList<SegmentMemory>
        Parameters:
        segmentMemory - The LinkedListNode to be added
      • remove

        public void remove​(SegmentMemory segmentMemory)
        Description copied from class: LinkedList
        Removes a LinkedListNode 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 calls removeFirst(). When the node to be removed is the last node it calls removeLast().
        Overrides:
        remove in class LinkedList<SegmentMemory>
        Parameters:
        segmentMemory - The LinkedListNode to be removed.
      • getPeersWithDataDrivenPathMemoriesIterator

        public java.util.Iterator<SegmentMemory> getPeersWithDataDrivenPathMemoriesIterator()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object