Package org.drools.core.phreak
Class AddRemoveRule.RemoveExistingPaths
- java.lang.Object
-
- org.drools.core.phreak.AddRemoveRule.RemoveExistingPaths
-
- All Implemented Interfaces:
AddRemoveRule.ExistingPathStrategy
- Enclosing class:
- AddRemoveRule
public static class AddRemoveRule.RemoveExistingPaths extends Object implements AddRemoveRule.ExistingPathStrategy
-
-
Field Summary
-
Fields inherited from interface org.drools.core.phreak.AddRemoveRule.ExistingPathStrategy
ADD_STRATEGY, REMOVE_STRATEGY
-
-
Constructor Summary
Constructors Constructor Description RemoveExistingPaths()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
adjustSegment(InternalWorkingMemory wm, Set<SegmentMemory> smemsToNotify, SegmentMemory smem, int smemSplitAdjustAmount)
SegmentMemory[]
getSegmenMemories(PathMemory pmem)
void
handleSplit(PathMemory pmem, SegmentMemory[] prevSmems, SegmentMemory[] smems, int smemIndex, int prevSmemIndex, LeftTupleNode parentNode, LeftTupleNode node, TerminalNode tn, Set<LeftTupleNode> visited, Set<SegmentMemory> smemsToNotify, Map<LeftTupleNode,SegmentMemory> nodeToSegmentMap, InternalWorkingMemory wm)
int
incPrevSmemIndex1(int prevSmemIndex)
int
incPrevSmemIndex2(int prevSmemIndex)
int
incSmemIndex1(int smemIndex)
int
incSmemIndex2(int smemIndex)
void
processSegmentMemories(SegmentMemory[] smems, PathMemory pmem)
-
-
-
Method Detail
-
getSegmenMemories
public SegmentMemory[] getSegmenMemories(PathMemory pmem)
- Specified by:
getSegmenMemories
in interfaceAddRemoveRule.ExistingPathStrategy
-
adjustSegment
public void adjustSegment(InternalWorkingMemory wm, Set<SegmentMemory> smemsToNotify, SegmentMemory smem, int smemSplitAdjustAmount)
- Specified by:
adjustSegment
in interfaceAddRemoveRule.ExistingPathStrategy
-
handleSplit
public void handleSplit(PathMemory pmem, SegmentMemory[] prevSmems, SegmentMemory[] smems, int smemIndex, int prevSmemIndex, LeftTupleNode parentNode, LeftTupleNode node, TerminalNode tn, Set<LeftTupleNode> visited, Set<SegmentMemory> smemsToNotify, Map<LeftTupleNode,SegmentMemory> nodeToSegmentMap, InternalWorkingMemory wm)
- Specified by:
handleSplit
in interfaceAddRemoveRule.ExistingPathStrategy
-
processSegmentMemories
public void processSegmentMemories(SegmentMemory[] smems, PathMemory pmem)
- Specified by:
processSegmentMemories
in interfaceAddRemoveRule.ExistingPathStrategy
-
incSmemIndex1
public int incSmemIndex1(int smemIndex)
- Specified by:
incSmemIndex1
in interfaceAddRemoveRule.ExistingPathStrategy
-
incPrevSmemIndex1
public int incPrevSmemIndex1(int prevSmemIndex)
- Specified by:
incPrevSmemIndex1
in interfaceAddRemoveRule.ExistingPathStrategy
-
incSmemIndex2
public int incSmemIndex2(int smemIndex)
- Specified by:
incSmemIndex2
in interfaceAddRemoveRule.ExistingPathStrategy
-
incPrevSmemIndex2
public int incPrevSmemIndex2(int prevSmemIndex)
- Specified by:
incPrevSmemIndex2
in interfaceAddRemoveRule.ExistingPathStrategy
-
-