src/java/isac/util/tactics/Theorem.java
author wneuper
Wed, 15 Jun 2005 18:31:02 +0200
branchjava_rename_format
changeset 3922 fcd5648113ca
permissions -rw-r--r--
java: isac.util.tactics .. end renamed, formatted, inst_var_, import cleaned
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
import java.io.Serializable;
wneuper@3922
     7
wneuper@3922
     8
/**
wneuper@3922
     9
 * This is a helper class used by Rewrite Tactic and RewriteInst Tactic
wneuper@3922
    10
 * 
wneuper@3922
    11
 * @author richard
wneuper@3922
    12
 */
wneuper@3922
    13
wneuper@3922
    14
public class Theorem implements Serializable {
wneuper@3922
    15
    String id_, formula_;
wneuper@3922
    16
wneuper@3922
    17
    //Theorem consist of the ID, and
wneuper@3922
    18
    //the formula (still as a string -- waiting for MathML)
wneuper@3922
    19
wneuper@3922
    20
    /**
wneuper@3922
    21
     * Format the class to a string which can be used as SML-Input
wneuper@3922
    22
     * 
wneuper@3922
    23
     * @return
wneuper@3922
    24
     */
wneuper@3922
    25
    public String toSMLString() {
wneuper@3922
    26
        return "(\"" + id_ + "\",\"\")"; //formula may be empty at input
wneuper@3922
    27
    }
wneuper@3922
    28
wneuper@3922
    29
    public String getFormula() {
wneuper@3922
    30
        return formula_;
wneuper@3922
    31
    }
wneuper@3922
    32
wneuper@3922
    33
    public String getId() {
wneuper@3922
    34
        return id_;
wneuper@3922
    35
    }
wneuper@3922
    36
wneuper@3922
    37
    public void setFormula(String string) {
wneuper@3922
    38
        formula_ = string;
wneuper@3922
    39
    }
wneuper@3922
    40
wneuper@3922
    41
    public void setId(String string) {
wneuper@3922
    42
        id_ = string;
wneuper@3922
    43
    }
wneuper@3922
    44
wneuper@3922
    45
}