public class PtCalFunction extends java.lang.Object implements Function
Function objects that provides the Ptolemy II
ptolemy.data.Function interface. It allows them to be
seamlessly used with Ptolemy II-generated function objects.Context,
Function| Red (cxh) |
| Red (cxh) |
| Constructor and Description |
|---|
PtCalFunction(caltrop.interpreter.Function function)
Construct a PtCalFunction.
|
| Modifier and Type | Method and Description |
|---|---|
Token |
apply(Token[] args)
Apply tokens arguments to the function.
|
caltrop.interpreter.Function |
getFunction()
Return Function object wrapped by this object.
|
int |
getNumberOfArguments()
Return the number of arguments.
|
boolean |
isCongruent(Function function)
Always return false, because the Function token is not congruent.
|
public PtCalFunction(caltrop.interpreter.Function function)
function - The Function.public Token apply(Token[] args) throws IllegalActionException
apply in interface Functionargs - Argument that are applied to the function.IllegalActionException - If thrown by applying the function.public int getNumberOfArguments()
getNumberOfArguments in interface Functionpublic boolean isCongruent(Function function)
isCongruent in interface Functionfunction - The function (currently ignored).public caltrop.interpreter.Function getFunction()
Function