equal
deleted
inserted
replaced
|
1 /* |
|
2 * Created on Jun 25, 2004 |
|
3 */ |
|
4 package isac.util.tactics; |
|
5 |
|
6 /** |
|
7 * @author richard |
|
8 */ |
|
9 public class RewriteInst extends Tactic { |
|
10 String variable_, value_; |
|
11 |
|
12 Theorem theorem_; |
|
13 |
|
14 public RewriteInst() { |
|
15 } |
|
16 |
|
17 public String toSMLString() { |
|
18 return name_ + " ([\"(" + variable_ + "," + value_ + ")\"]," |
|
19 + theorem_.toSMLString() + ")"; |
|
20 } |
|
21 |
|
22 /** |
|
23 * @return |
|
24 */ |
|
25 public String getValue() { |
|
26 return value_; |
|
27 } |
|
28 |
|
29 /** |
|
30 * @return |
|
31 */ |
|
32 public String getVariable() { |
|
33 return variable_; |
|
34 } |
|
35 |
|
36 /** |
|
37 * @param string |
|
38 */ |
|
39 public void setValue(String string) { |
|
40 value_ = string; |
|
41 } |
|
42 |
|
43 /** |
|
44 * @param string |
|
45 */ |
|
46 public void setVariable(String string) { |
|
47 variable_ = string; |
|
48 } |
|
49 |
|
50 /** |
|
51 * @return |
|
52 */ |
|
53 public Theorem getTheorem() { |
|
54 return theorem_; |
|
55 } |
|
56 |
|
57 /** |
|
58 * @param theorem |
|
59 */ |
|
60 public void setTheorem(Theorem theorem) { |
|
61 this.theorem_ = theorem; |
|
62 } |
|
63 |
|
64 } |