|
|||||||||
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.IntegerFunction
public abstract class IntegerFunction
This class can be used to implement function on integers.
Constructor Summary | |
---|---|
IntegerFunction()
|
Method Summary | |
---|---|
Denotator |
evaluate(Denotator... denotators)
Evaluates the function with a list of arguments. |
abstract int |
evaluate(int... integers)
|
Denotator |
evaluate(SimpleDenotator... denotators)
|
abstract int |
getArity()
Returns the arity of the function. |
Form |
getInputForm(int i)
Returns the i th argument form. |
Form |
getOutputForm()
Returns the result form. |
Methods inherited from class org.rubato.logeo.functions.AbstractFunction |
---|
compose, getName, hasSig, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IntegerFunction()
Method Detail |
---|
public abstract int evaluate(int... integers)
public Denotator evaluate(Denotator... denotators) throws RubatoException
AbstractFunction
evaluate
in interface Function
evaluate
in class AbstractFunction
RubatoException
public Denotator evaluate(SimpleDenotator... denotators)
public abstract int getArity()
AbstractFunction
getArity
in interface Function
getArity
in class AbstractFunction
public Form getInputForm(int i)
AbstractFunction
i
th argument form.
Must be implemented in a subclass.
getInputForm
in interface Function
getInputForm
in class AbstractFunction
public Form getOutputForm()
AbstractFunction
getOutputForm
in interface Function
getOutputForm
in class AbstractFunction
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |