|
Drools :: Core 6.2.0.CR4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.core.common.BaseNode
org.drools.core.reteoo.ObjectSource
public abstract class ObjectSource
A source of FactHandles for an ObjectSink.
Nodes that propagate FactHandleImpl extend this class.
ObjectSource,
DefaultFactHandle,
Serialized Form| Field Summary | |
|---|---|
protected BitMask |
declaredMask
|
protected BitMask |
inferredMask
|
protected ObjectSinkPropagator |
sink
The destination for FactHandleImpl. |
protected ObjectSource |
source
|
| Fields inherited from class org.drools.core.common.BaseNode |
|---|
associations, id, partitionId, partitionsEnabled, streamMode |
| Constructor Summary | |
|---|---|
ObjectSource()
|
|
| Method Summary | |
|---|---|
void |
addObjectSink(ObjectSink objectSink)
Adds the ObjectSink so that it may receive
FactHandleImpl propagated from this
ObjectSource. |
abstract BitMask |
calculateDeclaredMask(List<String> settableProperties)
|
protected void |
doRemove(RuleRemovalContext context,
ReteooBuilder builder,
InternalWorkingMemory[] workingMemories)
Removes the node from teh network. |
BitMask |
getDeclaredMask()
|
protected ObjectTypeNode |
getObjectTypeNode()
|
ObjectSource |
getParentObjectSource()
|
ObjectSinkPropagator |
getSinkPropagator()
|
void |
initDeclaredMask(BuildContext context)
|
boolean |
isInUse()
Returns true in case the current node is in use (is referenced by any other node) |
void |
networkUpdated(UpdateContext updateContext)
A method that is called for all nodes whose network below them changed, after the change is complete, providing them with an oportunity for state update |
void |
readExternal(ObjectInput in)
|
void |
removeObjectSink(ObjectSink objectSink)
Removes the ObjectSink |
void |
resetInferredMask()
|
BitMask |
updateMask(BitMask mask)
|
abstract void |
updateSink(ObjectSink sink,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class org.drools.core.common.BaseNode |
|---|
addAssociation, attach, attach, getAssociations, getId, getPartitionId, hashCode, isStreamMode, registerUnlinkedPaths, remove, removeAssociation, setId, setPartitionId, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.drools.core.common.NetworkNode |
|---|
getType |
| Field Detail |
|---|
protected ObjectSinkPropagator sink
FactHandleImpl.
protected ObjectSource source
protected BitMask declaredMask
protected BitMask inferredMask
| Constructor Detail |
|---|
public ObjectSource()
| Method Detail |
|---|
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class BaseNodeIOException
ClassNotFoundException
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizablewriteExternal in class BaseNodeIOExceptionpublic ObjectSource getParentObjectSource()
public void initDeclaredMask(BuildContext context)
public abstract BitMask calculateDeclaredMask(List<String> settableProperties)
public void resetInferredMask()
public BitMask updateMask(BitMask mask)
public void addObjectSink(ObjectSink objectSink)
ObjectSink so that it may receive
FactHandleImpl propagated from this
ObjectSource.
objectSink - The ObjectSink to receive propagated
FactHandleImpl.public void removeObjectSink(ObjectSink objectSink)
ObjectSink
objectSink - The ObjectSink to remove
public abstract void updateSink(ObjectSink sink,
PropagationContext context,
InternalWorkingMemory workingMemory)
public void networkUpdated(UpdateContext updateContext)
BaseNode
networkUpdated in class BaseNodepublic ObjectSinkPropagator getSinkPropagator()
public boolean isInUse()
BaseNode
isInUse in class BaseNode
protected void doRemove(RuleRemovalContext context,
ReteooBuilder builder,
InternalWorkingMemory[] workingMemories)
BaseNodeObjectSource or TupleSource
doRemove in class BaseNodeprotected ObjectTypeNode getObjectTypeNode()
public BitMask getDeclaredMask()
|
Drools :: Core 6.2.0.CR4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||