01: package org.drools.reteoo;
02:
03: import org.drools.common.InternalFactHandle;
04: import org.drools.common.InternalWorkingMemory;
05: import org.drools.spi.PropagationContext;
06:
07: public class EmptyTupleSinkAdapter implements TupleSinkPropagator {
08:
09: private static final EmptyTupleSinkAdapter instance = new EmptyTupleSinkAdapter();
10:
11: public static final EmptyTupleSinkAdapter getInstance() {
12: return instance;
13: }
14:
15: private EmptyTupleSinkAdapter() {
16: }
17:
18: public void propagateAssertTuple(final ReteTuple tuple,
19: final InternalFactHandle handle,
20: final PropagationContext context,
21: final InternalWorkingMemory workingMemory) {
22: }
23:
24: public void propagateAssertTuple(final ReteTuple tuple,
25: final PropagationContext context,
26: final InternalWorkingMemory workingMemory) {
27: }
28:
29: public void propagateRetractTuple(final ReteTuple tuple,
30: final InternalFactHandle handle,
31: final PropagationContext context,
32: final InternalWorkingMemory workingMemory) {
33: }
34:
35: public void propagateRetractTuple(final ReteTuple tuple,
36: final PropagationContext context,
37: final InternalWorkingMemory workingMemory) {
38: }
39:
40: public void createAndPropagateAssertTuple(
41: final InternalFactHandle handle,
42: final PropagationContext context,
43: final InternalWorkingMemory workingMemory) {
44: }
45:
46: public void createAndPropagateRetractTuple(
47: final InternalFactHandle handle,
48: final PropagationContext context,
49: final InternalWorkingMemory workingMemory) {
50: }
51:
52: public TupleSink[] getSinks() {
53: return new TupleSink[] {};
54: }
55:
56: public int size() {
57: return 0;
58: }
59: }
|