Package org.drools.core.phreak
Class AddRemoveRule
- java.lang.Object
-
- org.drools.core.phreak.AddRemoveRule
-
public class AddRemoveRule extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AddRemoveRule.AddExistingPaths
static interface
AddRemoveRule.ExistingPathStrategy
static class
AddRemoveRule.Flushed
static class
AddRemoveRule.RemoveExistingPaths
-
Constructor Summary
Constructors Constructor Description AddRemoveRule()
-
Method Summary
-
-
-
Method Detail
-
addRule
public static void addRule(TerminalNode tn, Collection<InternalWorkingMemory> wms, InternalKnowledgeBase kBase)
This method is called after the rule nodes have been added to the network For add tuples are processed after the segments and pmems have been adjusted
-
removeRule
public static void removeRule(TerminalNode tn, Collection<InternalWorkingMemory> wms, InternalKnowledgeBase kBase)
This method is called before the rule nodes are removed from the network. For remove tuples are processed before the segments and pmems have been adjusted
-
flushLeftTupleIfNecessary
public static boolean flushLeftTupleIfNecessary(InternalWorkingMemory wm, SegmentMemory sm, boolean streamMode)
-
flushLeftTupleIfNecessary
public static boolean flushLeftTupleIfNecessary(InternalWorkingMemory wm, SegmentMemory sm, LeftTuple leftTuple, boolean streamMode, short stagedType)
-
findPathToFlush
public static PathMemory findPathToFlush(SegmentMemory sm, LeftTuple leftTuple, boolean streamMode)
-
createLeftTupleTupleSets
public static TupleSets<LeftTuple> createLeftTupleTupleSets(LeftTuple leftTuple, short stagedType)
-
forceFlushWhenRiaNode
public static void forceFlushWhenRiaNode(InternalWorkingMemory wm, PathMemory pmem)
-
findPathsToFlushFromRia
public static List<PathMemory> findPathsToFlushFromRia(InternalWorkingMemory wm, PathMemory pmem)
-
forceFlushPath
public static void forceFlushPath(InternalWorkingMemory wm, PathMemory outPmem)
-
forceFlushLeftTuple
public static void forceFlushLeftTuple(PathMemory pmem, SegmentMemory sm, InternalWorkingMemory wm, TupleSets<LeftTuple> leftTupleSets)
-
correctSegmentMemoryAfterSplitOnAdd
public static void correctSegmentMemoryAfterSplitOnAdd(SegmentMemory sm)
-
correctSegmentMemoryAfterSplitOnAdd
public static void correctSegmentMemoryAfterSplitOnAdd(SegmentMemory sm, int i)
-
correctSegmentMemoryAfterSplitOnRemove
public static void correctSegmentMemoryAfterSplitOnRemove(SegmentMemory sm, int i)
-
splitSegment
public static SegmentMemory splitSegment(InternalWorkingMemory wm, SegmentMemory sm1, LeftTupleNode splitNode)
-
-