01: package org.drools.reteoo;
02:
03: import java.io.Serializable;
04:
05: import org.drools.common.InternalFactHandle;
06: import org.drools.common.InternalWorkingMemory;
07: import org.drools.spi.PropagationContext;
08:
09: public interface TupleSinkPropagator extends Serializable {
10: public void propagateAssertTuple(ReteTuple tuple,
11: InternalFactHandle handle, PropagationContext context,
12: InternalWorkingMemory workingMemory);
13:
14: public void propagateAssertTuple(ReteTuple tuple,
15: PropagationContext context,
16: InternalWorkingMemory workingMemory);
17:
18: public void propagateRetractTuple(ReteTuple tuple,
19: InternalFactHandle handle, PropagationContext context,
20: InternalWorkingMemory workingMemory);
21:
22: public void propagateRetractTuple(ReteTuple tuple,
23: PropagationContext context,
24: InternalWorkingMemory workingMemory);
25:
26: public void createAndPropagateAssertTuple(
27: InternalFactHandle handle, PropagationContext context,
28: InternalWorkingMemory workingMemory);
29:
30: public void createAndPropagateRetractTuple(
31: InternalFactHandle handle, PropagationContext context,
32: InternalWorkingMemory workingMemory);
33:
34: public TupleSink[] getSinks();
35:
36: // public void propagateNewTupleSink(TupleMatch tupleMatch,
37: // PropagationContext context,
38: // InternalWorkingMemory workingMemory);
39: //
40: // public void propagateNewTupleSink(InternalFactHandle handle,
41: // LinkedList list,
42: // PropagationContext context,
43: // InternalWorkingMemory workingMemory);
44: //
45: // public void propagateNewTupleSink(ReteTuple tuple,
46: // PropagationContext context,
47: // InternalWorkingMemory workingMemory);
48: //
49: // public List getPropagatedTuples(final Map memory,
50: // final InternalWorkingMemory workingMemory,
51: // final TupleSink sink);
52:
53: public int size();
54:
55: }
|