public class ElementMinMax extends PostfixMathCommand implements JepComponent
| Modifier and Type | Class and Description |
|---|---|
static class |
ElementMinMax.Type
Flag indicating if the mix or max is calculated
|
curNumberOfParameters, name, NaN, numberOfParameters| Constructor and Description |
|---|
ElementMinMax(ElementMinMax.Type type,
FieldI f) |
| 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 ElementMinMax(ElementMinMax.Type type, 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