01: package org.drools.reteoo;
02:
03: import org.drools.common.InternalFactHandle;
04: import org.drools.util.Entry;
05: import org.drools.util.Iterator;
06:
07: public interface TupleMemory {
08: public Iterator iterator();
09:
10: public Iterator iterator(InternalFactHandle handle);
11:
12: public void add(ReteTuple tuple);
13:
14: public ReteTuple remove(ReteTuple tuple);
15:
16: public boolean contains(ReteTuple tuple);
17:
18: public boolean isIndexed();
19:
20: public int size();
21:
22: public Entry[] getTable();
23:
24: public Entry[] toArray();
25:
26: }
|