|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.common.BaseNode
org.drools.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 long |
declaredMask
|
protected long |
inferredMask
|
protected ObjectSinkPropagator |
sink
The destination for FactHandleImpl. |
protected ObjectSource |
source
|
| Fields inherited from class org.drools.common.BaseNode |
|---|
associations, id, partitionId, partitionsEnabled |
| Constructor Summary | |
|---|---|
ObjectSource()
|
|
| Method Summary | |
|---|---|
void |
addObjectSink(ObjectSink objectSink)
Adds the ObjectSink so that it may receive
FactHandleImpl propagated from this
ObjectSource. |
abstract long |
calculateDeclaredMask(List<String> settableProperties)
|
protected void |
doCollectAncestors(NodeSet nodeSet)
|
protected void |
doRemove(RuleRemovalContext context,
ReteooBuilder builder,
InternalWorkingMemory[] workingMemories)
Removes the node from teh network. |
long |
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) |
boolean |
needsMaskUpdate()
|
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)
|
protected void |
removeObjectSink(ObjectSink objectSink)
Removes the ObjectSink |
void |
resetInferredMask()
|
long |
updateMask(long mask)
|
abstract void |
updateSink(ObjectSink sink,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class org.drools.common.BaseNode |
|---|
addAssociation, attach, attach, collectAncestors, getAssociations, getId, getPartitionId, hashCode, remove, removeAssociation, setPartitionId, toString, updateSinkOnAttach, updateSinkOnAttach |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.drools.common.NetworkNode |
|---|
getType |
| Field Detail |
|---|
protected ObjectSinkPropagator sink
FactHandleImpl.
protected ObjectSource source
protected long declaredMask
protected long 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 long calculateDeclaredMask(List<String> settableProperties)
public void resetInferredMask()
public long updateMask(long mask)
public void addObjectSink(ObjectSink objectSink)
ObjectSink so that it may receive
FactHandleImpl propagated from this
ObjectSource.
objectSink - The ObjectSink to receive propagated
FactHandleImpl.protected 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 void doCollectAncestors(NodeSet nodeSet)
doCollectAncestors in class BaseNodeprotected ObjectTypeNode getObjectTypeNode()
public long getDeclaredMask()
public boolean needsMaskUpdate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||