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: package de.uka.ilkd.key.proof.proofevent;
09:
10: import de.uka.ilkd.key.logic.PosInOccurrence;
11:
12: /**
13: * An instance of this class informs the listerns if a formula has been
14: * tried to add to the sequent
15: */
16: public class NodeRedundantAddChange implements NodeChange {
17:
18: /** the PosInOccurrence of the formula that has been tried to add */
19: private final PosInOccurrence pio;
20:
21: /**
22: * creates an instance
23: * @param pio the PosInOccurrence of the formula that has been tried to add
24: */
25: public NodeRedundantAddChange(PosInOccurrence pio) {
26: this .pio = pio;
27: }
28:
29: /**
30: * returns the PosInOccurrence of the formula that has been tried to add
31: * @return the PosInOccurrrence
32: */
33: public PosInOccurrence getPos() {
34: return pio;
35: }
36:
37: /** toString */
38: public String toString() {
39: return "Redundant formula:" + pio;
40: }
41:
42: }
|