Package jmri.jmrit.logixng.util.parser
Interface Function
- All Known Implementing Classes:
AbstractFunction
public interface Function
Definition of a function used in expressions.
-
Method Summary
Modifier and TypeMethodDescriptioncalculate(SymbolTable symbolTable, List<ExpressionNode> parameterList) Calculate the functionGet the descriptions of the constants in the module.Get the description of the function in Markdown formatGet the module of the function, for example "Math" or "Conversion".getName()Get name of the function, for example "sin" or "int"
-
Method Details
-
getModule
Get the module of the function, for example "Math" or "Conversion".- Returns:
- the module name
-
getConstantDescriptions
Get the descriptions of the constants in the module.- Returns:
- the description of the constants
-
getName
Get name of the function, for example "sin" or "int"- Returns:
- the name
-
calculate
Calculate the function- Parameters:
symbolTable- the symbol tableparameterList- a list of parameters for the function- Returns:
- the result
- Throws:
JmriException- in case of an error
-
getDescription
Get the description of the function in Markdown format- Returns:
- the description
-