Package org.drools.core.phreak
Class EagerPhreakBuilder
- java.lang.Object
-
- org.drools.core.phreak.EagerPhreakBuilder
-
- All Implemented Interfaces:
PhreakBuilder
public class EagerPhreakBuilder extends java.lang.Object implements PhreakBuilder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EagerPhreakBuilder.Add
static class
EagerPhreakBuilder.Pair
static class
EagerPhreakBuilder.Remove
static class
EagerPhreakBuilder.SegmentMemoryPair
-
Nested classes/interfaces inherited from interface org.drools.core.phreak.PhreakBuilder
PhreakBuilder.Holder
-
-
Constructor Summary
Constructors Constructor Description EagerPhreakBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRule(TerminalNode tn, java.util.Collection<InternalWorkingMemory> wms, InternalRuleBase 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 adjustedstatic java.util.List<EagerPhreakBuilder.Pair>
getExclusiveBranchRoots(TerminalNode tn)
static boolean
isInsideSubnetwork(PathEndNode endNode, SegmentMemory.SegmentPrototype smproto)
static void
notifyImpactedSegments(SegmentMemory smem, InternalWorkingMemory wm, java.util.Set<EagerPhreakBuilder.SegmentMemoryPair> segmentsToNotify)
void
removeRule(TerminalNode tn, java.util.Collection<InternalWorkingMemory> wms, InternalRuleBase kBase)
This method is called before the rule nodes are removed from the network.
-
-
-
Method Detail
-
addRule
public void addRule(TerminalNode tn, java.util.Collection<InternalWorkingMemory> wms, InternalRuleBase 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- Specified by:
addRule
in interfacePhreakBuilder
-
removeRule
public void removeRule(TerminalNode tn, java.util.Collection<InternalWorkingMemory> wms, InternalRuleBase 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 Note the- Specified by:
removeRule
in interfacePhreakBuilder
-
notifyImpactedSegments
public static void notifyImpactedSegments(SegmentMemory smem, InternalWorkingMemory wm, java.util.Set<EagerPhreakBuilder.SegmentMemoryPair> segmentsToNotify)
-
getExclusiveBranchRoots
public static java.util.List<EagerPhreakBuilder.Pair> getExclusiveBranchRoots(TerminalNode tn)
-
isInsideSubnetwork
public static boolean isInsideSubnetwork(PathEndNode endNode, SegmentMemory.SegmentPrototype smproto)
-
-