public class FunctionalTerm extends TermAdapter<net.sf.tweety.commons.util.Pair<Functor,List<Term<?>>>>
value| Constructor and Description |
|---|
FunctionalTerm(FunctionalTerm other) |
FunctionalTerm(Functor functor)
Creates a new functional term with the given functor.
|
FunctionalTerm(Functor functor,
List<Term<?>> arguments)
Creates a new functional term with the given functor and the given list
of arguments.
|
FunctionalTerm(Functor functor,
Term<?>... terms) |
| Modifier and Type | Method and Description |
|---|---|
FunctionalTerm |
addArgument(Term<?> term)
Appends the given argument to this term's
arguments and returns itself.
|
FunctionalTerm |
clone()
Creates a deep copy of the term
|
List<Term<?>> |
getArguments() |
Functor |
getFunctor() |
boolean |
isComplete()
Checks whether this term is complete, i.e.
|
String |
toString() |
containsTermsOfType, equals, get, getSort, getTerms, getTerms, hashCode, set, substitutepublic FunctionalTerm(Functor functor, List<Term<?>> arguments)
functor - the functor of this termarguments - the list of arguments of this functional termpublic FunctionalTerm(FunctionalTerm other)
public FunctionalTerm(Functor functor)
functor - public Functor getFunctor()
public boolean isComplete()
public FunctionalTerm addArgument(Term<?> term) throws IllegalArgumentException
term - an argument to be addedIllegalArgumentException - if the given term does not correspond
to the expected sort or the argument list is complete.public String toString()
toString in class TermAdapter<net.sf.tweety.commons.util.Pair<Functor,List<Term<?>>>>Copyright © 2016. All rights reserved.