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 Nov 13, 2003 |
wneuper@3922 | 3 |
*/ |
wneuper@3922 | 4 |
package isac.util.tactics; |
wneuper@3922 | 5 |
|
wneuper@3922 | 6 |
import java.util.Iterator; |
wneuper@3922 | 7 |
import java.util.Vector; |
wneuper@3922 | 8 |
|
wneuper@3922 | 9 |
/** |
wneuper@3922 | 10 |
* @author rgradisc |
wneuper@3922 | 11 |
*/ |
wneuper@3922 | 12 |
public class SubProblemTactic extends Tactic { |
wneuper@3922 | 13 |
|
wneuper@3922 | 14 |
private String theory_ID_; |
wneuper@3922 | 15 |
|
wneuper@3922 | 16 |
private Vector problem_ID_ = new Vector(); |
wneuper@3922 | 17 |
|
wneuper@3922 | 18 |
public SubProblemTactic() { |
wneuper@3922 | 19 |
} |
wneuper@3922 | 20 |
|
wneuper@3922 | 21 |
public void addProblemString(String string) { |
wneuper@3922 | 22 |
this.problem_ID_.add(string); |
wneuper@3922 | 23 |
} |
wneuper@3922 | 24 |
|
wneuper@3922 | 25 |
public String toSMLString() { |
wneuper@3922 | 26 |
StringBuffer sb = new StringBuffer(); |
wneuper@3922 | 27 |
sb.append(name_ + " (\"" + theory_ID_ + "\", ["); |
wneuper@3922 | 28 |
Iterator it = problem_ID_.iterator(); |
wneuper@3922 | 29 |
while (it.hasNext()) { |
wneuper@3922 | 30 |
sb.append("\"" + it.next() + "\","); |
wneuper@3922 | 31 |
} |
wneuper@3922 | 32 |
sb.deleteCharAt(sb.length() - 1); // remove last "," |
wneuper@3922 | 33 |
sb.append("])"); |
wneuper@3922 | 34 |
return sb.toString(); |
wneuper@3922 | 35 |
} |
wneuper@3922 | 36 |
|
wneuper@3922 | 37 |
public Vector getProblemID() { |
wneuper@3922 | 38 |
return problem_ID_; |
wneuper@3922 | 39 |
} |
wneuper@3922 | 40 |
|
wneuper@3922 | 41 |
public String getTheoryID() { |
wneuper@3922 | 42 |
return theory_ID_; |
wneuper@3922 | 43 |
} |
wneuper@3922 | 44 |
|
wneuper@3922 | 45 |
public void setProblemID(Vector vector) { |
wneuper@3922 | 46 |
problem_ID_ = vector; |
wneuper@3922 | 47 |
} |
wneuper@3922 | 48 |
|
wneuper@3922 | 49 |
public void setTheoryID(String string) { |
wneuper@3922 | 50 |
theory_ID_ = string; |
wneuper@3922 | 51 |
} |
wneuper@3922 | 52 |
} |