org.drools.core.common
Class PhreakPropagationContext
java.lang.Object
org.drools.core.common.PhreakPropagationContext
- All Implemented Interfaces:
- Externalizable, Serializable, org.kie.api.runtime.rule.PropagationContext
public class PhreakPropagationContext
- extends Object
- implements 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 |
PhreakPropagationContext()
|
PhreakPropagationContext(long number,
int type,
Rule rule,
LeftTuple leftTuple,
InternalFactHandle factHandle)
|
PhreakPropagationContext(long number,
int type,
Rule rule,
LeftTuple leftTuple,
InternalFactHandle factHandle,
EntryPointId entryPoint)
|
PhreakPropagationContext(long number,
int type,
Rule rule,
LeftTuple leftTuple,
InternalFactHandle factHandle,
EntryPointId entryPoint,
long modificationMask,
Class<?> modifiedClass,
MarshallerReaderContext readerContext)
|
PhreakPropagationContext(long number,
int type,
Rule rule,
LeftTuple leftTuple,
InternalFactHandle factHandle,
EntryPointId entryPoint,
MarshallerReaderContext readerContext)
|
PhreakPropagationContext(long number,
int type,
Rule rule,
LeftTuple leftTuple,
InternalFactHandle factHandle,
int activeActivations,
int dormantActivations,
EntryPointId entryPoint,
long modificationMask)
|
PhreakPropagationContext
public PhreakPropagationContext()
PhreakPropagationContext
public PhreakPropagationContext(long number,
int type,
Rule rule,
LeftTuple leftTuple,
InternalFactHandle factHandle)
PhreakPropagationContext
public PhreakPropagationContext(long number,
int type,
Rule rule,
LeftTuple leftTuple,
InternalFactHandle factHandle,
EntryPointId entryPoint)
PhreakPropagationContext
public PhreakPropagationContext(long number,
int type,
Rule rule,
LeftTuple leftTuple,
InternalFactHandle factHandle,
int activeActivations,
int dormantActivations,
EntryPointId entryPoint,
long modificationMask)
PhreakPropagationContext
public PhreakPropagationContext(long number,
int type,
Rule rule,
LeftTuple leftTuple,
InternalFactHandle factHandle,
EntryPointId entryPoint,
MarshallerReaderContext readerContext)
PhreakPropagationContext
public PhreakPropagationContext(long number,
int type,
Rule rule,
LeftTuple leftTuple,
InternalFactHandle factHandle,
EntryPointId entryPoint,
long modificationMask,
Class<?> modifiedClass,
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 Rule getRuleOrigin()
getTerminalNodeOrigin
public TerminalNode getTerminalNodeOrigin()
getRule
public org.kie.api.definition.rule.Rule getRule()
- Specified by:
getRule in interface org.kie.api.runtime.rule.PropagationContext
getLeftTupleOrigin
public LeftTuple getLeftTupleOrigin()
getFactHandleOrigin
public InternalFactHandle getFactHandleOrigin()
getFactHandle
public FactHandle getFactHandle()
- Specified by:
getFactHandle in interface org.kie.api.runtime.rule.PropagationContext
setFactHandle
public void setFactHandle(FactHandle factHandle)
getType
public int getType()
- Specified by:
getType in interface org.kie.api.runtime.rule.PropagationContext
releaseResources
public void releaseResources()
getEntryPoint
public EntryPointId getEntryPoint()
- Returns:
- the entryPoint
setEntryPoint
public void setEntryPoint(EntryPointId entryPoint)
- Parameters:
entryPoint - the entryPoint to set
setFactHandle
public void setFactHandle(InternalFactHandle factHandle)
getOriginOffset
public int getOriginOffset()
- Description copied from interface:
PropagationContext
- 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
public void setOriginOffset(int originOffset)
- Description copied from interface:
PropagationContext
- Sets the origin offset to the given offset.
- Parameters:
originOffset - -1 to unset or from 0 to tuple length-1
addInsertAction
public void addInsertAction(WorkingMemoryAction action)
removeInsertAction
public void removeInsertAction(WorkingMemoryAction action)
getQueue1
public LinkedList<WorkingMemoryAction> getQueue1()
getQueue2
public LinkedList<WorkingMemoryAction> getQueue2()
evaluateActionQueue
public void evaluateActionQueue(InternalWorkingMemory workingMemory)
getModificationMask
public long getModificationMask()
setModificationMask
public void setModificationMask(long modificationMask)
adaptModificationMaskForObjectType
public PropagationContext adaptModificationMaskForObjectType(ObjectType type,
InternalWorkingMemory workingMemory)
getObjectType
public ObjectType getObjectType()
setObjectType
public void setObjectType(ObjectType objectType)
getReaderContext
public MarshallerReaderContext getReaderContext()
intEnumToString
public static String intEnumToString(PropagationContext pctx)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.