Interface MaleAnalogActionSocket

    • Method Detail

      • setValue

        void setValue​(double value)
               throws JmriException
        Set an analog value.

        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:
        setValue in interface AnalogAction
        Parameters:
        value - the value. The male socket that holds this action ensures that this value is not Double.NaN or an infinite value.
        Throws:
        JmriException - when an exception occurs