Interface ExpressionNodeWithParameter

    • Method Detail

      • calculate

        java.lang.Object calculate​(java.lang.Object parameter,
                                   SymbolTable symbolTable)
                            throws JmriException
        Calculate the expression from a parameter.
        Parameters:
        parameter - the parameter
        symbolTable - the symbol table
        Returns:
        the result
        Throws:
        JmriException - if an error occurs
      • assignValue

        default void assignValue​(java.lang.Object parameter,
                                 SymbolTable symbolTable,
                                 java.lang.Object value)
                          throws JmriException
        Assign a value to this expression from a parameter.
        Parameters:
        parameter - the parameter
        symbolTable - the symbol table
        value - the value to assign
        Throws:
        JmriException - if an error occurs