org.drools.phreak
Class SegmentUtilities
java.lang.Object
org.drools.phreak.SegmentUtilities
public class SegmentUtilities
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SegmentUtilities
public SegmentUtilities()
createSegmentMemory
public static SegmentMemory createSegmentMemory(LeftTupleSource tupleSource,
InternalWorkingMemory wm)
- Initialises the NodeSegment memory for all nodes in the segment.
- Parameters:
wm -
createChildSegments
public static void createChildSegments(InternalWorkingMemory wm,
SegmentMemory smem,
LeftTupleSinkPropagator sinkProp)
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:
updateRiaAndTerminalMemory
public static void updateRiaAndTerminalMemory(int pos,
LeftTupleSource lt,
LeftTupleSource originalLt,
SegmentMemory smem,
InternalWorkingMemory wm)
- This adds the segment memory to the terminal node or ria node's list of memories.
In the case of the terminal node this allows it to know that all segments from
the tip to root are linked.
In the case of the ria node its all the segments up to the start of the subnetwork.
This is because the rianode only cares if all of it's segments are linked, then
it sets the bit of node it is the right input for.
- Parameters:
pos - lt - originalLt - smem - wm -
parentInSameSegment
public static boolean parentInSameSegment(LeftTupleSource lt)
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.