Drools :: Core 6.0.0.Beta1

org.drools.core.phreak
Class RuleNetworkEvaluator

java.lang.Object
  extended by org.drools.core.phreak.RuleNetworkEvaluator

public class RuleNetworkEvaluator
extends Object


Nested Class Summary
static class RuleNetworkEvaluator.PhreakAccumulateNode
           
static class RuleNetworkEvaluator.PhreakBranchNode
           
static class RuleNetworkEvaluator.PhreakEvalNode
           
static class RuleNetworkEvaluator.PhreakExistsNode
           
static class RuleNetworkEvaluator.PhreakFromNode
           
static class RuleNetworkEvaluator.PhreakJoinNode
           
static class RuleNetworkEvaluator.PhreakNotNode
           
static class RuleNetworkEvaluator.PhreakQueryNode
           
static class RuleNetworkEvaluator.PhreakQueryTerminalNode
           
static class RuleNetworkEvaluator.PhreakRuleTerminalNode
           
static class RuleNetworkEvaluator.StackEntry
           
 
Constructor Summary
RuleNetworkEvaluator()
           
 
Method Summary
static LeftTuple deleteLeftChild(LeftTuple childLeftTuple, LeftTupleSets trgLeftTuples, LeftTupleSets stagedLeftTuples)
           
static LeftTuple deleteRightChild(LeftTuple childLeftTuple, LeftTupleSets trgLeftTuples, LeftTupleSets stagedLeftTuples)
           
static void dpUpdatesReorderLeftMemory(BetaMemory bm, InternalWorkingMemory wm, RightTupleSets srcRightTuples, LeftTupleSets srcLeftTuples)
           
static void dpUpdatesReorderRightMemory(BetaMemory bm, InternalWorkingMemory wm, RightTupleSets srcRightTuples, LeftTupleSets srcLeftTuples)
           
 void eval1(LeftInputAdapterNode liaNode, PathMemory rmem, NetworkNode node, Memory nodeMem, SegmentMemory[] smems, int smemIndex, LeftTupleSets trgTuples, InternalWorkingMemory wm, LinkedList<RuleNetworkEvaluator.StackEntry> stack, Set<String> visitedRules, boolean processRian)
           
 void eval2(LeftInputAdapterNode liaNode, PathMemory rmem, NetworkNode node, Memory nodeMem, SegmentMemory[] smems, int smemIndex, LeftTupleSets trgTuples, InternalWorkingMemory wm, LinkedList<RuleNetworkEvaluator.StackEntry> stack, Set<String> visitedRules, boolean processRian)
           
 int evaluateNetwork(PathMemory rmem, InternalWorkingMemory wm)
           
static int getOffset(NetworkNode node)
           
static String indent(int size)
           
 boolean isRuleNetworkEvaluatorActivation()
           
static boolean useLeftMemory(LeftTupleSource tupleSource, LeftTuple leftTuple)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleNetworkEvaluator

public RuleNetworkEvaluator()
Method Detail

evaluateNetwork

public int evaluateNetwork(PathMemory rmem,
                           InternalWorkingMemory wm)

indent

public static String indent(int size)

getOffset

public static int getOffset(NetworkNode node)

eval1

public void eval1(LeftInputAdapterNode liaNode,
                  PathMemory rmem,
                  NetworkNode node,
                  Memory nodeMem,
                  SegmentMemory[] smems,
                  int smemIndex,
                  LeftTupleSets trgTuples,
                  InternalWorkingMemory wm,
                  LinkedList<RuleNetworkEvaluator.StackEntry> stack,
                  Set<String> visitedRules,
                  boolean processRian)

eval2

public void eval2(LeftInputAdapterNode liaNode,
                  PathMemory rmem,
                  NetworkNode node,
                  Memory nodeMem,
                  SegmentMemory[] smems,
                  int smemIndex,
                  LeftTupleSets trgTuples,
                  InternalWorkingMemory wm,
                  LinkedList<RuleNetworkEvaluator.StackEntry> stack,
                  Set<String> visitedRules,
                  boolean processRian)

isRuleNetworkEvaluatorActivation

public boolean isRuleNetworkEvaluatorActivation()

deleteLeftChild

public static LeftTuple deleteLeftChild(LeftTuple childLeftTuple,
                                        LeftTupleSets trgLeftTuples,
                                        LeftTupleSets stagedLeftTuples)

deleteRightChild

public static LeftTuple deleteRightChild(LeftTuple childLeftTuple,
                                         LeftTupleSets trgLeftTuples,
                                         LeftTupleSets stagedLeftTuples)

dpUpdatesReorderLeftMemory

public static void dpUpdatesReorderLeftMemory(BetaMemory bm,
                                              InternalWorkingMemory wm,
                                              RightTupleSets srcRightTuples,
                                              LeftTupleSets srcLeftTuples)

dpUpdatesReorderRightMemory

public static void dpUpdatesReorderRightMemory(BetaMemory bm,
                                               InternalWorkingMemory wm,
                                               RightTupleSets srcRightTuples,
                                               LeftTupleSets srcLeftTuples)

useLeftMemory

public static boolean useLeftMemory(LeftTupleSource tupleSource,
                                    LeftTuple leftTuple)

Drools :: Core 6.0.0.Beta1

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.