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