Class Variable
java.lang.Object
org.tweetyproject.logics.commons.syntax.TermAdapter<String>
org.tweetyproject.logics.commons.syntax.StringTerm
org.tweetyproject.logics.commons.syntax.Variable
- All Implemented Interfaces:
LogicStructure
,Term<String>
A Variable is a placeholder for Constants in a generic formula of
a logic language. For example, wife_of(X,Y) represents all wifes X and their
specific husbands Y using the two Variables X,Y.
It is implemented as a specialized StringTerm which only allows names
which have an upper-case character as first letter.
- Author:
- Tim Janus, Anna Gessler
-
Constructor Summary
-
Method Summary
Methods inherited from class org.tweetyproject.logics.commons.syntax.StringTerm
get, toString
Methods inherited from class org.tweetyproject.logics.commons.syntax.TermAdapter
containsTermsOfType, equals, getSort, getTerms, getTerms, hashCode, substitute
-
Constructor Details
-
Variable
Ctor: Creates a new Variable with the given name and the default Sort "Thing".- Parameters:
name
- The name of the Variable has to start with an upper-case character.
-
Variable
-
Variable
Copy-Ctor: Creates a deep copy of the given Variable- Parameters:
other
- The Variable that acts as source for the copy.
-
-
Method Details
-
set
-
clone
-