|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Function
This is the general interface for functions with an arbitrary number of arguments. Arguments and results are always denotators. To implement a function, extend the AbstractFunction class or one of the specialized function classes like IntegerFunction.
Method Summary | |
---|---|
Function |
compose(Function f)
Returns a new function, the composition of this and f, i.e., this(f(x)). |
Denotator |
evaluate(Denotator... denotators)
Evaluates the function with a list of arguments. |
int |
getArity()
Returns the arity of the function. |
Form |
getInputForm(int i)
Returns the ith argument form. |
java.lang.String |
getName()
Returns the name of the function. |
Form |
getOutputForm()
Returns the result form. |
boolean |
hasSig(Form[] inputForms,
Form outputForm)
Checks if the function has the given signature. |
Method Detail |
---|
Denotator evaluate(Denotator... denotators) throws RubatoException
RubatoException
int getArity()
Function compose(Function f) throws RubatoException
RubatoException
- is composition failsjava.lang.String getName()
Form getInputForm(int i)
Form getOutputForm()
boolean hasSig(Form[] inputForms, Form outputForm)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |