public class AddRemoveRule extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AddRemoveRule.AddExistingPaths |
static interface |
AddRemoveRule.ExistingPathStrategy |
static class |
AddRemoveRule.Flushed |
static class |
AddRemoveRule.RemoveExistingPaths |
Constructor and Description |
---|
AddRemoveRule() |
Modifier and Type | Method and Description |
---|---|
static void |
addRule(TerminalNode tn,
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
|
static void |
correctSegmentMemoryAfterSplitOnAdd(SegmentMemory sm) |
static void |
correctSegmentMemoryAfterSplitOnAdd(SegmentMemory sm,
int i) |
static void |
correctSegmentMemoryAfterSplitOnRemove(SegmentMemory sm,
int i) |
static boolean |
flushLeftTupleIfNecessary(InternalWorkingMemory wm,
SegmentMemory sm,
LeftTuple leftTuple,
boolean streamMode) |
static void |
removeRule(TerminalNode tn,
InternalWorkingMemory[] wms,
InternalKnowledgeBase kBase)
This method is called before the rule nodes are removed from the network.
|
static SegmentMemory |
splitSegment(InternalWorkingMemory wm,
SegmentMemory sm1,
LeftTupleNode splitNode) |
public static void addRule(TerminalNode tn, InternalWorkingMemory[] wms, InternalKnowledgeBase kBase)
tn
- wms
- kBase
- public static void removeRule(TerminalNode tn, InternalWorkingMemory[] wms, InternalKnowledgeBase kBase)
tn
- wms
- kBase
- public static boolean flushLeftTupleIfNecessary(InternalWorkingMemory wm, SegmentMemory sm, LeftTuple leftTuple, boolean streamMode)
public static void correctSegmentMemoryAfterSplitOnAdd(SegmentMemory sm)
public static void correctSegmentMemoryAfterSplitOnAdd(SegmentMemory sm, int i)
public static void correctSegmentMemoryAfterSplitOnRemove(SegmentMemory sm, int i)
public static SegmentMemory splitSegment(InternalWorkingMemory wm, SegmentMemory sm1, LeftTupleNode splitNode)
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.