|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rubato.logeo.functions.AbstractFunction
org.rubato.logeo.functions.CompositeFunction
public class CompositeFunction
A function that is the composition of two functions.
Constructor Summary | |
---|---|
CompositeFunction(Function f,
Function g)
Creates a composed function h from f and g, i.e., h(x) = f(g(x)). |
|
CompositeFunction(Function f,
Function[] g)
Creates a composed function h from f and a list g. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.rubato.logeo.functions.AbstractFunction |
---|
compose, hasSig, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CompositeFunction(Function f, Function g)
public CompositeFunction(Function f, Function[] g) throws RubatoException
g
- must be of length > 0
RubatoException
Method Detail |
---|
public Denotator evaluate(Denotator... denotators) throws RubatoException
evaluate
in interface Function
evaluate
in class AbstractFunction
RubatoException
public int getArity()
getArity
in interface Function
getArity
in class AbstractFunction
public java.lang.String getName()
getName
in interface Function
getName
in class AbstractFunction
public Form getInputForm(int i)
getInputForm
in interface Function
getInputForm
in class AbstractFunction
public Form getOutputForm()
getOutputForm
in interface Function
getOutputForm
in class AbstractFunction
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |