org.drools.reteoo
Interface ObjectSink

All Known Subinterfaces:
ObjectSinkNode
All Known Implementing Classes:
AccumulateNode, AlphaNode, CollectNode, ExistsNode, JoinNode, LeftInputAdapterNode, NotNode, ObjectTypeNode, Rete

public interface ObjectSink

Receiver of propagated FactHandleImpls from a ObjectSource.

Author:
Mark Proctor, Bob McWhirter
See Also:
ObectSource

Method Summary
 void assertObject(InternalFactHandle handle, PropagationContext context, InternalWorkingMemory workingMemory)
          Assert a new FactHandleImpl.
 boolean isObjectMemoryEnabled()
           
 void retractObject(InternalFactHandle handle, PropagationContext context, InternalWorkingMemory workingMemory)
          Retract an existing FactHandleImpl.
 void setObjectMemoryEnabled(boolean objectMemoryOn)
           
 

Method Detail

assertObject

void assertObject(InternalFactHandle handle,
                  PropagationContext context,
                  InternalWorkingMemory workingMemory)
Assert a new FactHandleImpl.

Parameters:
handle - The asserted FactHandle/code>.
context - The PropagationContext of the WorkingMemory action.
workingMemory - the WorkingMemory session.

retractObject

void retractObject(InternalFactHandle handle,
                   PropagationContext context,
                   InternalWorkingMemory workingMemory)
Retract an existing FactHandleImpl.

Parameters:
handle - The FactHandle/code> to retract.
context - The PropagationContext of the WorkingMemory action.
workingMemory - the WorkingMemory session.

isObjectMemoryEnabled

boolean isObjectMemoryEnabled()

setObjectMemoryEnabled

void setObjectMemoryEnabled(boolean objectMemoryOn)