org.drools.reteoo
Class SingleObjectSinkAdapter

java.lang.Object
  extended by org.drools.reteoo.AbstractObjectSinkAdapter
      extended by org.drools.reteoo.SingleObjectSinkAdapter
All Implemented Interfaces:
Externalizable, Serializable, ObjectSinkPropagator
Direct Known Subclasses:
AsyncSingleObjectSinkAdapter

public class SingleObjectSinkAdapter
extends AbstractObjectSinkAdapter

See Also:
Serialized Form

Field Summary
protected  ObjectSink sink
           
 
Fields inherited from class org.drools.reteoo.AbstractObjectSinkAdapter
partitionId
 
Constructor Summary
SingleObjectSinkAdapter()
           
SingleObjectSinkAdapter(RuleBasePartitionId partitionId, ObjectSink sink)
           
 
Method Summary
 BaseNode getMatchingNode(BaseNode candidate)
           
 ObjectSink[] getSinks()
           
 void propagateAssertObject(InternalFactHandle factHandle, PropagationContext context, InternalWorkingMemory workingMemory)
           
 void propagateModifyObject(InternalFactHandle factHandle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, InternalWorkingMemory workingMemory)
           
 void readExternal(ObjectInput in)
           
 int size()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.drools.reteoo.AbstractObjectSinkAdapter
getPartitionId, setPartitionId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sink

protected ObjectSink sink
Constructor Detail

SingleObjectSinkAdapter

public SingleObjectSinkAdapter()

SingleObjectSinkAdapter

public SingleObjectSinkAdapter(RuleBasePartitionId partitionId,
                               ObjectSink sink)
Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class AbstractObjectSinkAdapter
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class AbstractObjectSinkAdapter
Throws:
IOException

propagateAssertObject

public void propagateAssertObject(InternalFactHandle factHandle,
                                  PropagationContext context,
                                  InternalWorkingMemory workingMemory)

propagateModifyObject

public void propagateModifyObject(InternalFactHandle factHandle,
                                  ModifyPreviousTuples modifyPreviousTuples,
                                  PropagationContext context,
                                  InternalWorkingMemory workingMemory)

getMatchingNode

public BaseNode getMatchingNode(BaseNode candidate)

getSinks

public ObjectSink[] getSinks()

size

public int size()


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.