public interface Function extends Term
Term in which it denotes a mapping
of one or more elements in a set (called the domain of the function) into a
unique element of another set (the range of the function).
A function expression is a function symbol followed by its arguments. The
arguments are elements from the domain of the function; the number of
arguments is equal to the arity of the function. The arguments are
enclosed in parentheses and separated by commas, e.g.,
f(X,Y)
father(david)
price(apple)
are all well-formed function expressions.
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsTerm(Term t) |
int |
getArity()
Get the number of terms (or arguments) in the function symbol.
|
Predicate |
getFunctionSymbol()
Get the function symbol.
|
Term |
getTerm(int index) |
List<Term> |
getTerms()
Get a list of terms (or arguments) that are contained in the function
symbol.
|
Set<Variable> |
getVariables() |
boolean |
isDataFunction() |
boolean |
isDataTypeFunction()
Deprecated.
|
boolean |
isOperation() |
void |
setPredicate(Predicate p) |
void |
setTerm(int index,
Term term) |
void |
updateTerms(List<Term> literals) |
List<Term> getTerms()
Predicate getFunctionSymbol()
int getArity()
Term getTerm(int index)
void setTerm(int index,
Term term)
void setPredicate(Predicate p)
boolean containsTerm(Term t)
boolean isDataFunction()
boolean isOperation()
@Deprecated boolean isDataTypeFunction()
Copyright © 2009–2020 Free University of Bozen-Bolzano. All rights reserved.