Package org.drools.core.phreak
Class AddRemoveRule.AddExistingPaths
- java.lang.Object
-
- org.drools.core.phreak.AddRemoveRule.AddExistingPaths
-
- All Implemented Interfaces:
AddRemoveRule.ExistingPathStrategy
- Enclosing class:
- AddRemoveRule
public static class AddRemoveRule.AddExistingPaths 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 AddExistingPaths()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadjustSegment(InternalWorkingMemory wm, Set<SegmentMemory> smemsToNotify, SegmentMemory smem, int smemSplitAdjustAmount)SegmentMemory[]getSegmenMemories(PathMemory pmem)voidhandleSplit(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)intincPrevSmemIndex1(int prevSmemIndex)intincPrevSmemIndex2(int prevSmemIndex)intincSmemIndex1(int smemIndex)intincSmemIndex2(int smemIndex)voidprocessSegmentMemories(SegmentMemory[] smems, PathMemory pmem)
-
-
-
Method Detail
-
getSegmenMemories
public SegmentMemory[] getSegmenMemories(PathMemory pmem)
- Specified by:
getSegmenMemoriesin interfaceAddRemoveRule.ExistingPathStrategy
-
adjustSegment
public void adjustSegment(InternalWorkingMemory wm, Set<SegmentMemory> smemsToNotify, SegmentMemory smem, int smemSplitAdjustAmount)
- Specified by:
adjustSegmentin 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:
handleSplitin interfaceAddRemoveRule.ExistingPathStrategy
-
processSegmentMemories
public void processSegmentMemories(SegmentMemory[] smems, PathMemory pmem)
- Specified by:
processSegmentMemoriesin interfaceAddRemoveRule.ExistingPathStrategy
-
incSmemIndex1
public int incSmemIndex1(int smemIndex)
- Specified by:
incSmemIndex1in interfaceAddRemoveRule.ExistingPathStrategy
-
incPrevSmemIndex1
public int incPrevSmemIndex1(int prevSmemIndex)
- Specified by:
incPrevSmemIndex1in interfaceAddRemoveRule.ExistingPathStrategy
-
incSmemIndex2
public int incSmemIndex2(int smemIndex)
- Specified by:
incSmemIndex2in interfaceAddRemoveRule.ExistingPathStrategy
-
incPrevSmemIndex2
public int incPrevSmemIndex2(int prevSmemIndex)
- Specified by:
incPrevSmemIndex2in interfaceAddRemoveRule.ExistingPathStrategy
-
-