org.drools.reteoo
Class EmptyObjectSinkAdapter

java.lang.Object
  extended by org.drools.reteoo.AbstractObjectSinkAdapter
      extended by org.drools.reteoo.EmptyObjectSinkAdapter
All Implemented Interfaces:
Externalizable, Serializable, ObjectSinkPropagator

public class EmptyObjectSinkAdapter
extends AbstractObjectSinkAdapter

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.drools.reteoo.AbstractObjectSinkAdapter
partitionId
 
Constructor Summary
EmptyObjectSinkAdapter()
           
EmptyObjectSinkAdapter(RuleBasePartitionId partitionId)
           
 
Method Summary
 boolean equals(Object obj)
           
static EmptyObjectSinkAdapter getInstance()
           
 BaseNode getMatchingNode(BaseNode candidate)
           
 RuleBasePartitionId getPartitionId()
          Returns the partition to which this propagator belongs to
 ObjectSink[] getSinks()
           
 void propagateAssertObject(InternalFactHandle factHandle, PropagationContext context, InternalWorkingMemory workingMemory)
           
 void propagateModifyObject(InternalFactHandle factHandle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, InternalWorkingMemory workingMemory)
           
 void propagateRetractObject(InternalFactHandle handle, PropagationContext context, InternalWorkingMemory workingMemory, boolean useHash)
           
 void readExternal(ObjectInput in)
           
 int size()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.drools.reteoo.AbstractObjectSinkAdapter
setPartitionId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyObjectSinkAdapter

public EmptyObjectSinkAdapter()

EmptyObjectSinkAdapter

public EmptyObjectSinkAdapter(RuleBasePartitionId partitionId)
Method Detail

getInstance

public static EmptyObjectSinkAdapter getInstance()

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

getPartitionId

public RuleBasePartitionId getPartitionId()
Description copied from class: AbstractObjectSinkAdapter
Returns the partition to which this propagator belongs to

Specified by:
getPartitionId in interface ObjectSinkPropagator
Overrides:
getPartitionId in class AbstractObjectSinkAdapter
Returns:
the ID of the partition

propagateAssertObject

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

propagateRetractObject

public void propagateRetractObject(InternalFactHandle handle,
                                   PropagationContext context,
                                   InternalWorkingMemory workingMemory,
                                   boolean useHash)

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()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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