public abstract class Function extends Object implements NameBearer
| Constructor and Description |
|---|
Function(String name,
String argumentName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addParameter(String... paras)
Add a function configuration parameter.
|
abstract double |
call(FunctionCall call,
double arg)
Call the function.
|
boolean |
equals(Object obj) |
String |
getArgumentName()
Get the argument name.
|
String |
getName()
Get the function name.
|
String |
getNthParameter(int n)
Get the nth parameter.
|
int |
hashCode() |
int |
parameterCount()
Get the parameter count.
|
Collection<String> |
parameters()
Get the list of parameters
|
String |
toLogString() |
String |
toString() |
public String getName()
getName in interface NameBearerpublic String getArgumentName()
public void addParameter(String... paras)
paras - the parameter definition(s)public int parameterCount()
public String getNthParameter(int n)
n - positionpublic Collection<String> parameters()
public String toLogString()
public abstract double call(FunctionCall call, double arg)
call - the function call parametersarg - the argumentCopyright © 2013–2014. All rights reserved.