Drools :: Core 6.1.0.Beta1

org.drools.core.spi
Interface PropagationContext

All Superinterfaces:
Externalizable, org.kie.api.runtime.rule.PropagationContext, Serializable

public interface PropagationContext
extends Externalizable, org.kie.api.runtime.rule.PropagationContext


Field Summary
 
Fields inherited from interface org.kie.api.runtime.rule.PropagationContext
DELETION, EXPIRATION, INSERTION, MODIFICATION, RULE_ADDITION, RULE_REMOVAL, typeDescr
 
Method Summary
 PropagationContext adaptModificationMaskForObjectType(ObjectType type, InternalWorkingMemory workingMemory)
           
 void addInsertAction(WorkingMemoryAction action)
           
 void cleanReaderContext()
           
 void evaluateActionQueue(InternalWorkingMemory workingMemory)
           
 EntryPointId getEntryPoint()
           
 FactHandle getFactHandleOrigin()
           
 LeftTuple getLeftTupleOrigin()
           
 long getModificationMask()
           
 ObjectType getObjectType()
           
 int getOriginOffset()
          Returns the offset of the fact that initiated this propagation in the current propagation context.
 LinkedList<WorkingMemoryAction> getQueue1()
           
 LinkedList<WorkingMemoryAction> getQueue2()
           
 MarshallerReaderContext getReaderContext()
           
 Rule getRuleOrigin()
           
 TerminalNode getTerminalNodeOrigin()
           
 void releaseResources()
           
 void removeInsertAction(WorkingMemoryAction action)
           
 void setEntryPoint(EntryPointId entryPoint)
           
 void setFactHandle(FactHandle factHandle)
           
 void setModificationMask(long mask)
           
 void setObjectType(ObjectType objectType)
           
 void setOriginOffset(int offset)
          Sets the origin offset to the given offset.
 
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
 
Methods inherited from interface org.kie.api.runtime.rule.PropagationContext
getFactHandle, getPropagationNumber, getRule, getType
 

Method Detail

getRuleOrigin

Rule getRuleOrigin()

getTerminalNodeOrigin

TerminalNode getTerminalNodeOrigin()

getFactHandleOrigin

FactHandle getFactHandleOrigin()

setFactHandle

void setFactHandle(FactHandle factHandle)

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

releaseResources

void releaseResources()

getEntryPoint

EntryPointId getEntryPoint()

addInsertAction

void addInsertAction(WorkingMemoryAction action)

removeInsertAction

void removeInsertAction(WorkingMemoryAction action)

getQueue1

LinkedList<WorkingMemoryAction> getQueue1()

getQueue2

LinkedList<WorkingMemoryAction> getQueue2()

evaluateActionQueue

void evaluateActionQueue(InternalWorkingMemory workingMemory)

getModificationMask

long getModificationMask()

adaptModificationMaskForObjectType

PropagationContext adaptModificationMaskForObjectType(ObjectType type,
                                                      InternalWorkingMemory workingMemory)

setModificationMask

void setModificationMask(long mask)

getObjectType

ObjectType getObjectType()

setObjectType

void setObjectType(ObjectType objectType)

getReaderContext

MarshallerReaderContext getReaderContext()

cleanReaderContext

void cleanReaderContext()

setEntryPoint

void setEntryPoint(EntryPointId entryPoint)

Drools :: Core 6.1.0.Beta1

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