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.proof.mgt;
12:
13: import de.uka.ilkd.key.logic.SetOfChoice;
14:
15: public class RuleConfig {
16:
17: private SetOfChoice activatedChoices;
18:
19: public RuleConfig(SetOfChoice ruleOpts) {
20: this .activatedChoices = ruleOpts;
21: }
22:
23: public SetOfChoice getChoices() {
24: return activatedChoices;
25: }
26:
27: public boolean equals(Object o) {
28: if (!(o instanceof RuleConfig))
29: return false;
30: return activatedChoices.equals(((RuleConfig) o).getChoices());
31: }
32:
33: public int hashCode() {
34: return activatedChoices.hashCode();
35: }
36:
37: public String description() {
38: return activatedChoices.toString();
39: }
40: }
|