Package jmri

Interface StringIO

    • Method Detail

      • setCommandedStringValue

        void setCommandedStringValue​(@Nonnull
                                     java.lang.String value)
                              throws JmriException
        Change the commanded value, which results in the relevant command(s) being sent to the hardware. The exception is thrown if there are problems communicating with the layout hardware.
        Parameters:
        value - the desired string value
        Throws:
        JmriException - general error when setting the value fails
      • getCommandedStringValue

        @Nonnull
        java.lang.String getCommandedStringValue()
        Query the commanded string. This is a bound parameter, so you can also register a listener to be informed of changes.
        Returns:
        the string value
      • getKnownStringValue

        @Nonnull
        default java.lang.String getKnownStringValue()
        Query the known string value. This is a bound parameter, so you can also register a listener to be informed of changes. A result is always returned; if no other feedback method is available, the commanded value will be used.
        Returns:
        the known string value
      • getMaximumLength

        default int getMaximumLength()
        Get the maximum length of string that this StringIO can handle.
        Returns:
        the maximum length or 0 if arbitrary lengths are accepted.
      • requestUpdateFromLayout

        default void requestUpdateFromLayout()
        Request an update from the layout soft/hardware. May not even happen, and if it does it will happen later; listen for the result.