01: package org.drools.spi;
02:
03: import java.io.Serializable;
04:
05: import org.drools.common.InternalWorkingMemory;
06: import org.drools.reteoo.ReteTuple;
07: import org.drools.rule.ContextEntry;
08: import org.drools.rule.Declaration;
09:
10: public interface Restriction extends Serializable {
11: Declaration[] getRequiredDeclarations();
12:
13: public boolean isAllowed(Extractor extractor, Object object,
14: InternalWorkingMemory workingMemory);
15:
16: public boolean isAllowedCachedLeft(ContextEntry context,
17: Object object);
18:
19: public boolean isAllowedCachedRight(ReteTuple tuple,
20: ContextEntry context);
21:
22: public ContextEntry getContextEntry();
23:
24: }
|