Class StringTerm
- java.lang.Object
- 
- net.sf.tweety.logics.commons.syntax.TermAdapter<java.lang.String>
- 
- net.sf.tweety.logics.commons.syntax.StringTerm
 
 
- 
- All Implemented Interfaces:
- LogicStructure,- Term<java.lang.String>
 
 public abstract class StringTerm extends TermAdapter<java.lang.String> This class represents terms which are objects identified by a string. Subclasses are Variable and Constant.- Author:
- Tim Janus, Thomas Vengels
 
- 
- 
Constructor SummaryConstructors Constructor Description StringTerm(java.lang.String value)Ctor: Creates a string term with the given String as value, uses the Sort "Thing"StringTerm(java.lang.String value, Sort sort)Ctor: Create a string term with the given value and sort.StringTerm(StringTerm other)Copy-Ctor: Creates a deep copy of the StringTerm
 - 
Method Summary- 
Methods inherited from class net.sf.tweety.logics.commons.syntax.TermAdapterclone, containsTermsOfType, equals, getSort, getTerms, getTerms, hashCode, substitute
 
- 
 
- 
- 
- 
Constructor Detail- 
StringTermpublic StringTerm(java.lang.String value) Ctor: Creates a string term with the given String as value, uses the Sort "Thing"- Parameters:
- value- The value for the string term.
 
 - 
StringTermpublic StringTerm(java.lang.String value, Sort sort)Ctor: Create a string term with the given value and sort.- Parameters:
- value- The value of for the string term.
- sort- The sort representing the type of the StringTerm.
 
 - 
StringTermpublic StringTerm(StringTerm other) Copy-Ctor: Creates a deep copy of the StringTerm- Parameters:
- other- The StringTerm that acts as source for the copy
 
 
- 
 - 
Method Detail- 
setpublic abstract void set(java.lang.String value) Description copied from interface:TermChanges the java-object representation of the term to the given value.- Specified by:
- setin interface- Term<java.lang.String>
- Overrides:
- setin class- TermAdapter<java.lang.String>
- Parameters:
- value- The new java-object representation of the term.
 
 - 
getpublic java.lang.String get() - Specified by:
- getin interface- Term<java.lang.String>
- Overrides:
- getin class- TermAdapter<java.lang.String>
- Returns:
- the java-object representation of the term.
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- TermAdapter<java.lang.String>
 
 
- 
 
-