Drools :: Core 6.1.0.Beta1

org.drools.core.phreak
Class SegmentUtilities

java.lang.Object
  extended by org.drools.core.phreak.SegmentUtilities

public class SegmentUtilities
extends Object


Constructor Summary
SegmentUtilities()
           
 
Method Summary
static SegmentMemory createChildSegment(InternalWorkingMemory wm, LeftTupleSink sink, Memory memory)
           
static void createChildSegments(InternalWorkingMemory wm, SegmentMemory smem, LeftTupleSinkPropagator sinkProp)
           
static SegmentMemory createSegmentMemory(LeftTupleSource tupleSource, InternalWorkingMemory wm)
          Initialises the NodeSegment memory for all nodes in the segment.
static LeftInputAdapterNode getQueryLiaNode(String queryName, ObjectTypeNode queryOtn)
           
static ObjectTypeNode getQueryOtn(LeftTupleSource lts)
           
static SegmentMemory getQuerySegmentMemory(InternalWorkingMemory wm, LeftTupleSource segmentRoot, QueryElementNode queryNode)
           
static Queue<TupleEntry> initAndGetTupleQueue(NetworkNode node, InternalWorkingMemory wm)
           
static boolean inSubNetwork(RightInputAdapterNode riaNode, LeftTupleSource leftTupleSource)
          Is the LeftTupleSource a node in the sub network for the RightInputAdapterNode To be in the same network, it must be a node is after the two output of the parent and before the rianode.
static boolean parentInSameSegment(LeftTupleSource lt, Rule removingRule)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SegmentUtilities

public SegmentUtilities()
Method Detail

createSegmentMemory

public static SegmentMemory createSegmentMemory(LeftTupleSource tupleSource,
                                                InternalWorkingMemory wm)
Initialises the NodeSegment memory for all nodes in the segment.

Parameters:
wm -

getQuerySegmentMemory

public static SegmentMemory getQuerySegmentMemory(InternalWorkingMemory wm,
                                                  LeftTupleSource segmentRoot,
                                                  QueryElementNode queryNode)

createChildSegments

public static void createChildSegments(InternalWorkingMemory wm,
                                       SegmentMemory smem,
                                       LeftTupleSinkPropagator sinkProp)

createChildSegment

public static SegmentMemory createChildSegment(InternalWorkingMemory wm,
                                               LeftTupleSink sink,
                                               Memory memory)

inSubNetwork

public static boolean inSubNetwork(RightInputAdapterNode riaNode,
                                   LeftTupleSource leftTupleSource)
Is the LeftTupleSource a node in the sub network for the RightInputAdapterNode To be in the same network, it must be a node is after the two output of the parent and before the rianode.

Parameters:
riaNode -
leftTupleSource -
Returns:

initAndGetTupleQueue

public static Queue<TupleEntry> initAndGetTupleQueue(NetworkNode node,
                                                     InternalWorkingMemory wm)

parentInSameSegment

public static boolean parentInSameSegment(LeftTupleSource lt,
                                          Rule removingRule)

getQueryOtn

public static ObjectTypeNode getQueryOtn(LeftTupleSource lts)

getQueryLiaNode

public static LeftInputAdapterNode getQueryLiaNode(String queryName,
                                                   ObjectTypeNode queryOtn)

Drools :: Core 6.1.0.Beta1

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