01: // This file is part of KeY - Integrated Deductive Software Design
02: // Copyright (C) 2001-2007 Universitaet Karlsruhe, Germany
03: // Universitaet Koblenz-Landau, Germany
04: // Chalmers University of Technology, Sweden
05: //
06: // The KeY system is protected by the GNU General Public License.
07: // See LICENSE.TXT for details.
08: //
09: //
10:
11: package de.uka.ilkd.key.strategy.feature;
12:
13: import de.uka.ilkd.key.logic.PosInOccurrence;
14: import de.uka.ilkd.key.proof.AnyRuleSetTacletFilter;
15: import de.uka.ilkd.key.proof.Goal;
16: import de.uka.ilkd.key.rule.TacletApp;
17:
18: /**
19: * This feature checks if a rule may be applied automatically. Currently this
20: * does not apply to rules which are not member of any rule set.
21: */
22: public class AutomatedRuleFeature extends BinaryTacletAppFeature {
23:
24: public static final Feature INSTANCE = new AutomatedRuleFeature();
25:
26: private AutomatedRuleFeature() {
27: }
28:
29: protected boolean filter(TacletApp app, PosInOccurrence pos,
30: Goal goal) {
31: return AnyRuleSetTacletFilter.INSTANCE.filter(app.rule());
32: }
33:
34: }
|