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;
12:
13: import de.uka.ilkd.key.proof.Goal;
14: import de.uka.ilkd.key.rule.RuleApp;
15:
16: /**
17: * Instances of this class are immutable
18: */
19: public class NoFindTacletAppContainer extends TacletAppContainer {
20:
21: /**
22: * @param p_app
23: * @param p_cost
24: */
25: NoFindTacletAppContainer(RuleApp p_app, RuleAppCost p_cost,
26: long p_age) {
27: super (p_app, p_cost, p_age);
28: }
29:
30: /**
31: * @return true iff the stored rule app is applicable for the given sequent,
32: * i.e. always true since NoFindTaclets are not bound to a find-position
33: * (if-formulas are not considered)
34: */
35: protected boolean isStillApplicable(Goal p_goal) {
36: if (!p_goal.proof().mgt().ruleApplicable(getRuleApp(), p_goal)) {
37: return false;
38: }
39: return true;
40: }
41:
42: }
|