01: package org.drools.reteoo;
02:
03: import java.io.Serializable;
04:
05: import org.drools.util.ObjectHashMap;
06:
07: public class BetaMemory implements Serializable {
08:
09: private static final long serialVersionUID = 400L;
10:
11: private TupleMemory tupleMemory;
12: private FactHandleMemory factHandleMemory;
13: private ObjectHashMap createdHandles;
14:
15: public BetaMemory(final TupleMemory tupleMemory,
16: final FactHandleMemory objectMemory) {
17: this .tupleMemory = tupleMemory;
18: this .factHandleMemory = objectMemory;
19: }
20:
21: public FactHandleMemory getFactHandleMemory() {
22: return this .factHandleMemory;
23: }
24:
25: public TupleMemory getTupleMemory() {
26: return this .tupleMemory;
27: }
28:
29: public ObjectHashMap getCreatedHandles() {
30: if (this .createdHandles == null) {
31: this .createdHandles = new ObjectHashMap();
32: }
33: return this.createdHandles;
34: }
35: }
|