org.drools.spi
Interface PropagationContext

All Superinterfaces:
Externalizable, org.drools.runtime.rule.PropagationContext, Serializable

public interface PropagationContext
extends Externalizable, org.drools.runtime.rule.PropagationContext


Field Summary
 
Fields inherited from interface org.drools.runtime.rule.PropagationContext
ASSERTION, EXPIRATION, MODIFICATION, RETRACTION, RULE_ADDITION, RULE_REMOVAL, typeDescr
 
Method Summary
 void evaluateActionQueue(InternalWorkingMemory workingMemory)
           
 int getActiveActivations()
           
 int getDormantActivations()
           
 EntryPoint getEntryPoint()
           
 FactHandle getFactHandleOrigin()
           
 LeftTuple getLeftTupleOrigin()
           
 int getOriginOffset()
          Returns the offset of the fact that initiated this propagation in the current propagation context.
 ObjectHashSet getPropagationAttemptsMemory()
          Keeps a list of nodes to which a propagation attempt fail because the node was unlinked.
 LinkedList<WorkingMemoryAction> getQueue1()
           
 LinkedList<WorkingMemoryAction> getQueue2()
           
 Rule getRuleOrigin()
           
 boolean isPropagating(ObjectTypeNode otn)
           
 void releaseResources()
           
 void setCurrentPropagatingOTN(ObjectTypeNode otn)
          When L&R unlinking is active, we need to keep track of the OTN that triggered this propagation.
 void setOriginOffset(int offset)
          Sets the origin offset to the given offset.
 void setShouldPropagateAll(Object node)
           
 boolean shouldPropagateAll()
           
 
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
 
Methods inherited from interface org.drools.runtime.rule.PropagationContext
getFactHandle, getPropagationNumber, getRule, getType
 

Method Detail

getRuleOrigin

Rule getRuleOrigin()

getFactHandleOrigin

FactHandle getFactHandleOrigin()

getLeftTupleOrigin

LeftTuple getLeftTupleOrigin()

getOriginOffset

int getOriginOffset()
Returns the offset of the fact that initiated this propagation in the current propagation context. This attribute is mutable as the same fact might have different offsets in different rules or logical branches.

Returns:
-1 for not set, and from 0 to the tuple length-1.

setOriginOffset

void setOriginOffset(int offset)
Sets the origin offset to the given offset.

Parameters:
offset - -1 to unset or from 0 to tuple length-1

getActiveActivations

int getActiveActivations()

getDormantActivations

int getDormantActivations()

releaseResources

void releaseResources()

getEntryPoint

EntryPoint getEntryPoint()

setCurrentPropagatingOTN

void setCurrentPropagatingOTN(ObjectTypeNode otn)
When L&R unlinking is active, we need to keep track of the OTN that triggered this propagation.


isPropagating

boolean isPropagating(ObjectTypeNode otn)

shouldPropagateAll

boolean shouldPropagateAll()

setShouldPropagateAll

void setShouldPropagateAll(Object node)

getPropagationAttemptsMemory

ObjectHashSet getPropagationAttemptsMemory()
Keeps a list of nodes to which a propagation attempt fail because the node was unlinked.


getQueue1

LinkedList<WorkingMemoryAction> getQueue1()

getQueue2

LinkedList<WorkingMemoryAction> getQueue2()

evaluateActionQueue

void evaluateActionQueue(InternalWorkingMemory workingMemory)


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.