Class StringTerm
java.lang.Object
org.tweetyproject.logics.commons.syntax.TermAdapter<String>
org.tweetyproject.logics.commons.syntax.StringTerm
- All Implemented Interfaces:
LogicStructure
,Term<String>
This class represents terms which are objects identified by a
string. Subclasses are Variable and Constant.
- Author:
- Tim Janus, Thomas Vengels
-
Constructor Summary
ConstructorDescriptionStringTerm
(String value) Ctor: Creates a string term with the given String as value, uses the Sort "Thing"StringTerm
(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 org.tweetyproject.logics.commons.syntax.TermAdapter
clone, containsTermsOfType, equals, getSort, getTerms, getTerms, hashCode, substitute
-
Constructor Details
-
StringTerm
Ctor: Creates a string term with the given String as value, uses the Sort "Thing"- Parameters:
value
- The value for the string term.
-
StringTerm
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.
-
StringTerm
Copy-Ctor: Creates a deep copy of the StringTerm- Parameters:
other
- The StringTerm that acts as source for the copy
-
-
Method Details
-
set
Description copied from interface:Term
Changes the java-object representation of the term to the given value. -
get
-
toString
- Overrides:
toString
in classTermAdapter<String>
-