Drools :: Core 6.1.0.Beta1

org.drools.core.phreak
Class RuleExecutor

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

public class RuleExecutor
extends Object


Nested Class Summary
static class RuleExecutor.SalienceComparator
           
 
Field Summary
protected static org.slf4j.Logger log
           
 
Constructor Summary
RuleExecutor(PathMemory pmem, RuleAgendaItem ruleAgendaItem, boolean declarativeAgendaEnabled)
           
 
Method Summary
 void addLeftTuple(LeftTuple leftTuple)
           
 void addQueuedLeftTuple(LeftTuple leftTuple)
           
 void cancel(InternalWorkingMemory wm, EventSupport es)
           
 void evaluateNetwork(InternalWorkingMemory wm)
           
 int evaluateNetworkAndFire(InternalWorkingMemory wm, AgendaFilter filter, int fireCount, int fireLimit)
           
 void fire(InternalWorkingMemory wm, LinkedList<StackEntry> outerStack)
           
static void flushTupleQueue(Queue<TupleEntry> tupleQueue)
           
 LeftTupleList getLeftTupleList()
           
 PathMemory getPathMemory()
           
 RuleAgendaItem getRuleAgendaItem()
           
 boolean isDeclarativeAgendaEnabled()
           
 boolean isDirty()
           
 boolean isHighestSalience(RuleAgendaItem nextRule, int currentSalience)
           
 void reEvaluateNetwork(InternalWorkingMemory wm, LinkedList<StackEntry> outerStack, boolean fireUntilHalt)
           
 void removeLeftTuple(LeftTuple leftTuple)
           
static void removeQueuedTupleEntry(Queue<TupleEntry> tupleQueue)
           
 void removeRuleAgendaItemWhenEmpty(InternalWorkingMemory wm)
           
 void setDirty(boolean dirty)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static transient org.slf4j.Logger log
Constructor Detail

RuleExecutor

public RuleExecutor(PathMemory pmem,
                    RuleAgendaItem ruleAgendaItem,
                    boolean declarativeAgendaEnabled)
Method Detail

evaluateNetwork

public void evaluateNetwork(InternalWorkingMemory wm)

evaluateNetworkAndFire

public int evaluateNetworkAndFire(InternalWorkingMemory wm,
                                  AgendaFilter filter,
                                  int fireCount,
                                  int fireLimit)

fire

public void fire(InternalWorkingMemory wm,
                 LinkedList<StackEntry> outerStack)

getPathMemory

public PathMemory getPathMemory()

removeRuleAgendaItemWhenEmpty

public void removeRuleAgendaItemWhenEmpty(InternalWorkingMemory wm)

reEvaluateNetwork

public void reEvaluateNetwork(InternalWorkingMemory wm,
                              LinkedList<StackEntry> outerStack,
                              boolean fireUntilHalt)

flushTupleQueue

public static void flushTupleQueue(Queue<TupleEntry> tupleQueue)

removeQueuedTupleEntry

public static void removeQueuedTupleEntry(Queue<TupleEntry> tupleQueue)

getRuleAgendaItem

public RuleAgendaItem getRuleAgendaItem()

isHighestSalience

public boolean isHighestSalience(RuleAgendaItem nextRule,
                                 int currentSalience)

getLeftTupleList

public LeftTupleList getLeftTupleList()

addLeftTuple

public void addLeftTuple(LeftTuple leftTuple)

addQueuedLeftTuple

public void addQueuedLeftTuple(LeftTuple leftTuple)

removeLeftTuple

public void removeLeftTuple(LeftTuple leftTuple)

cancel

public void cancel(InternalWorkingMemory wm,
                   EventSupport es)

isDirty

public boolean isDirty()

setDirty

public void setDirty(boolean dirty)

isDeclarativeAgendaEnabled

public boolean isDeclarativeAgendaEnabled()

Drools :: Core 6.1.0.Beta1

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