Interface MaleDigitalExpressionSocket

    • Method Detail

      • evaluate

        boolean evaluate()
                  throws JmriException
        Evaluate this expression.

        This method must ensure that the value is not a Double.NaN, negative infinity or positive infinity. If that is the case, it must throw an IllegalArgumentException before checking if an error has occured.

        Specified by:
        evaluate in interface DigitalExpression
        Returns:
        the result of the evaluation
        Throws:
        JmriException - when an exception occurs
      • getLastResult

        boolean getLastResult()
        Get the last result of the evaluation.
        Returns:
        the last result