01: package org.drools.common;
02:
03: import java.io.Serializable;
04:
05: import org.drools.RuleBaseConfiguration;
06: import org.drools.reteoo.BetaMemory;
07: import org.drools.reteoo.ReteTuple;
08: import org.drools.util.LinkedList;
09:
10: public interface BetaConstraints extends Serializable {
11:
12: public void updateFromTuple(InternalWorkingMemory workingMemory,
13: ReteTuple tuple);
14:
15: public void updateFromFactHandle(
16: InternalWorkingMemory workingMemory,
17: InternalFactHandle handle);
18:
19: public boolean isAllowedCachedLeft(Object object);
20:
21: public boolean isAllowedCachedRight(ReteTuple tuple);
22:
23: public LinkedList getConstraints();
24:
25: public boolean isIndexed();
26:
27: public int getIndexCount();
28:
29: public boolean isEmpty();
30:
31: public BetaMemory createBetaMemory(
32: final RuleBaseConfiguration config);
33: }
|