|
||||||||||
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 FactHandle
s for an ObjectSink
.
Nodes that propagate FactHandleImpl
extend this class.
ObjectSource
,
DefaultFactHandle
,
Serialized FormField Summary | |
---|---|
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 . |
protected void |
doRemove(RuleRemovalContext context,
ReteooBuilder builder,
BaseNode node,
InternalWorkingMemory[] workingMemories)
Removes the node from teh network. |
ObjectSource |
getParentObjectSource()
|
ObjectSinkPropagator |
getSinkPropagator()
|
boolean |
isInUse()
Returns true in case the current node is in use (is referenced by any other node) |
void |
networkUpdated()
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 |
abstract void |
updateSink(ObjectSink sink,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class org.drools.common.BaseNode |
---|
addAssociation, attach, attach, getAssociations, getId, getPartitionId, hashCode, remove, removeAssociation, setPartitionId, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected ObjectSinkPropagator sink
FactHandleImpl
.
protected ObjectSource source
Constructor Detail |
---|
public ObjectSource()
Method Detail |
---|
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class BaseNode
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class BaseNode
IOException
public ObjectSource getParentObjectSource()
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 removepublic abstract void updateSink(ObjectSink sink, PropagationContext context, InternalWorkingMemory workingMemory)
public void networkUpdated()
BaseNode
networkUpdated
in class BaseNode
public ObjectSinkPropagator getSinkPropagator()
public boolean isInUse()
BaseNode
isInUse
in class BaseNode
protected void doRemove(RuleRemovalContext context, ReteooBuilder builder, BaseNode node, InternalWorkingMemory[] workingMemories)
BaseNode
ObjectSource
or TupleSource
doRemove
in class BaseNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |