public class Mode extends PostfixMathCommand implements JepComponent
curNumberOfParameters, name, NaN, numberOfParameters| Modifier and Type | Method and Description |
|---|---|
boolean |
checkNumberOfParameters(int n)
Checks the number of parameters of the function.
|
JepComponent |
getLightWeightInstance()
Gets a light-weight instance suitable for using in multiple threads.
|
void |
init(Jep jep)
Initialize the component.
|
void |
run(java.util.Stack<java.lang.Object> stack)
Throws an exception because this method should never be called under
normal circumstances.
|
asArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, getName, getNumberOfParameters, setCurNumberOfParameters, setName, toString, toStringpublic Mode(FieldI f)
public boolean checkNumberOfParameters(int n)
PostfixMathCommandcheckNumberOfParameters in interface PostfixMathCommandIcheckNumberOfParameters in class PostfixMathCommandn - number of parameters function will be called with.public void run(java.util.Stack<java.lang.Object> stack)
throws EvaluationException
PostfixMathCommandrun in interface PostfixMathCommandIrun in class PostfixMathCommandstack - arguments for functionEvaluationException - if function cannot be evaluatedpublic void init(Jep jep)
JepComponentinit in interface JepComponentjep - the current Jep instancepublic JepComponent getLightWeightInstance()
JepComponentgetLightWeightInstance in interface JepComponentCopyright © 2018 Singular Systems http://www.singularsys.com/jep