org.drools.reteoo.common
Class RetePropagationContext
java.lang.Object
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
| 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)
|
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)
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()
getTerminalNodeOrigin
public org.drools.core.reteoo.TerminalNode getTerminalNodeOrigin()
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
compareTypeAndClone
public RetePropagationContext compareTypeAndClone(int expectedType,
int newType)
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()
setModificationMask
public void setModificationMask(long modificationMask)
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
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.