Drools :: ReteOO 6.0.0.CR2

org.drools.reteoo.common
Class RetePropagationContext

java.lang.Object
  extended by org.drools.reteoo.common.RetePropagationContext
All Implemented Interfaces:
Externalizable, Serializable, org.kie.api.runtime.rule.PropagationContext

public class RetePropagationContext
extends Object
implements org.drools.core.spi.PropagationContext

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.kie.api.runtime.rule.PropagationContext
DELETION, EXPIRATION, INSERTION, MODIFICATION, RULE_ADDITION, RULE_REMOVAL, typeDescr
 
Constructor Summary
RetePropagationContext()
           
RetePropagationContext(long number, int type, org.drools.core.rule.Rule rule, org.drools.core.reteoo.LeftTuple leftTuple, org.drools.core.common.InternalFactHandle factHandle)
           
RetePropagationContext(long number, int type, org.drools.core.rule.Rule rule, org.drools.core.reteoo.LeftTuple leftTuple, org.drools.core.common.InternalFactHandle factHandle, org.drools.core.rule.EntryPointId entryPoint)
           
RetePropagationContext(long number, int type, org.drools.core.rule.Rule rule, org.drools.core.reteoo.LeftTuple leftTuple, org.drools.core.common.InternalFactHandle factHandle, org.drools.core.rule.EntryPointId entryPoint, long modificationMask, Class<?> modifiedClass, org.drools.core.marshalling.impl.MarshallerReaderContext readerContext)
           
RetePropagationContext(long number, int type, org.drools.core.rule.Rule rule, org.drools.core.reteoo.LeftTuple leftTuple, org.drools.core.common.InternalFactHandle factHandle, org.drools.core.rule.EntryPointId entryPoint, org.drools.core.marshalling.impl.MarshallerReaderContext readerContext)
           
RetePropagationContext(long number, int type, org.drools.core.rule.Rule rule, org.drools.core.reteoo.LeftTuple leftTuple, org.drools.core.common.InternalFactHandle factHandle, int activeActivations, int dormantActivations, org.drools.core.rule.EntryPointId entryPoint, long modificationMask)
           
 
Method Summary
 org.drools.core.spi.PropagationContext adaptModificationMaskForObjectType(org.drools.core.spi.ObjectType type, org.drools.core.common.InternalWorkingMemory workingMemory)
           
 void addInsertAction(org.drools.core.common.WorkingMemoryAction action)
           
 void cleanReaderContext()
           
 void evaluateActionQueue(org.drools.core.common.InternalWorkingMemory workingMemory)
           
 org.drools.core.rule.EntryPointId getEntryPoint()
           
 org.drools.core.FactHandle getFactHandle()
           
 org.drools.core.common.InternalFactHandle getFactHandleOrigin()
           
 org.drools.core.reteoo.LeftTuple getLeftTupleOrigin()
           
 long getModificationMask()
           
 org.drools.core.spi.ObjectType getObjectType()
           
 int getOriginOffset()
           
 long getPropagationNumber()
           
 LinkedList<org.drools.core.common.WorkingMemoryAction> getQueue1()
           
 LinkedList<org.drools.core.common.WorkingMemoryAction> getQueue2()
           
 org.drools.core.marshalling.impl.MarshallerReaderContext getReaderContext()
           
 org.kie.api.definition.rule.Rule getRule()
           
 org.drools.core.rule.Rule getRuleOrigin()
           
 int getType()
           
static String intEnumToString(org.drools.core.spi.PropagationContext pctx)
           
 void readExternal(ObjectInput in)
           
 void releaseResources()
           
 void removeInsertAction(org.drools.core.common.WorkingMemoryAction action)
           
 void setEntryPoint(org.drools.core.rule.EntryPointId entryPoint)
           
 void setFactHandle(org.drools.core.FactHandle factHandle)
           
 void setFactHandle(org.drools.core.common.InternalFactHandle factHandle)
           
 void setObjectType(org.drools.core.spi.ObjectType objectType)
           
 void setOriginOffset(int originOffset)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RetePropagationContext

public RetePropagationContext()

RetePropagationContext

public RetePropagationContext(long number,
                              int type,
                              org.drools.core.rule.Rule rule,
                              org.drools.core.reteoo.LeftTuple leftTuple,
                              org.drools.core.common.InternalFactHandle factHandle)

RetePropagationContext

public RetePropagationContext(long number,
                              int type,
                              org.drools.core.rule.Rule rule,
                              org.drools.core.reteoo.LeftTuple leftTuple,
                              org.drools.core.common.InternalFactHandle factHandle,
                              org.drools.core.rule.EntryPointId entryPoint)

RetePropagationContext

public RetePropagationContext(long number,
                              int type,
                              org.drools.core.rule.Rule rule,
                              org.drools.core.reteoo.LeftTuple leftTuple,
                              org.drools.core.common.InternalFactHandle factHandle,
                              int activeActivations,
                              int dormantActivations,
                              org.drools.core.rule.EntryPointId entryPoint,
                              long modificationMask)

RetePropagationContext

public RetePropagationContext(long number,
                              int type,
                              org.drools.core.rule.Rule rule,
                              org.drools.core.reteoo.LeftTuple leftTuple,
                              org.drools.core.common.InternalFactHandle factHandle,
                              org.drools.core.rule.EntryPointId entryPoint,
                              org.drools.core.marshalling.impl.MarshallerReaderContext readerContext)

RetePropagationContext

public RetePropagationContext(long number,
                              int type,
                              org.drools.core.rule.Rule rule,
                              org.drools.core.reteoo.LeftTuple leftTuple,
                              org.drools.core.common.InternalFactHandle factHandle,
                              org.drools.core.rule.EntryPointId entryPoint,
                              long modificationMask,
                              Class<?> modifiedClass,
                              org.drools.core.marshalling.impl.MarshallerReaderContext readerContext)
Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

getPropagationNumber

public long getPropagationNumber()
Specified by:
getPropagationNumber in interface org.kie.api.runtime.rule.PropagationContext

cleanReaderContext

public void cleanReaderContext()

getRuleOrigin

public org.drools.core.rule.Rule getRuleOrigin()

getRule

public org.kie.api.definition.rule.Rule getRule()
Specified by:
getRule in interface org.kie.api.runtime.rule.PropagationContext

getLeftTupleOrigin

public org.drools.core.reteoo.LeftTuple getLeftTupleOrigin()

getFactHandleOrigin

public org.drools.core.common.InternalFactHandle getFactHandleOrigin()

getFactHandle

public org.drools.core.FactHandle getFactHandle()
Specified by:
getFactHandle in interface org.kie.api.runtime.rule.PropagationContext

setFactHandle

public void setFactHandle(org.drools.core.FactHandle factHandle)

getType

public int getType()
Specified by:
getType in interface org.kie.api.runtime.rule.PropagationContext

releaseResources

public void releaseResources()

getEntryPoint

public org.drools.core.rule.EntryPointId getEntryPoint()
Returns:
the entryPoint

setEntryPoint

public void setEntryPoint(org.drools.core.rule.EntryPointId entryPoint)
Parameters:
entryPoint - the entryPoint to set

setFactHandle

public void setFactHandle(org.drools.core.common.InternalFactHandle factHandle)

getOriginOffset

public int getOriginOffset()

setOriginOffset

public void setOriginOffset(int originOffset)

addInsertAction

public void addInsertAction(org.drools.core.common.WorkingMemoryAction action)

removeInsertAction

public void removeInsertAction(org.drools.core.common.WorkingMemoryAction action)

getQueue1

public LinkedList<org.drools.core.common.WorkingMemoryAction> getQueue1()

getQueue2

public LinkedList<org.drools.core.common.WorkingMemoryAction> getQueue2()

evaluateActionQueue

public void evaluateActionQueue(org.drools.core.common.InternalWorkingMemory workingMemory)

getModificationMask

public long getModificationMask()

adaptModificationMaskForObjectType

public org.drools.core.spi.PropagationContext adaptModificationMaskForObjectType(org.drools.core.spi.ObjectType type,
                                                                                 org.drools.core.common.InternalWorkingMemory workingMemory)

getObjectType

public org.drools.core.spi.ObjectType getObjectType()

setObjectType

public void setObjectType(org.drools.core.spi.ObjectType objectType)

getReaderContext

public org.drools.core.marshalling.impl.MarshallerReaderContext getReaderContext()

intEnumToString

public static String intEnumToString(org.drools.core.spi.PropagationContext pctx)

toString

public String toString()
Overrides:
toString in class Object

Drools :: ReteOO 6.0.0.CR2

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