Class SerialSensor

    • Constructor Detail

      • SerialSensor

        public SerialSensor​(java.lang.String systemName)
      • SerialSensor

        public SerialSensor​(java.lang.String systemName,
                            java.lang.String userName)
    • Method Detail

      • requestUpdateFromLayout

        public void requestUpdateFromLayout()
        Request an update on status.

        Since status is continually being updated, this isn't active now. Eventually, we may want to have this move the related AIU to the top of the polling queue.

      • compareSystemNameSuffix

        @CheckReturnValue
        public int compareSystemNameSuffix​(@Nonnull
                                           java.lang.String suffix1,
                                           @Nonnull
                                           java.lang.String suffix2,
                                           @Nonnull
                                           NamedBean n)
        Compare the suffix of this NamedBean's name with the suffix of the argument NamedBean's name for the NamedBean.compareTo(jmri.NamedBean) operation. This is intended to be a system-specific comparison that understands the various formats, etc. By default, does an alphanumeric-by-chunks comparison. Sorts by node number and then by bit
        Specified by:
        compareSystemNameSuffix in interface NamedBean
        Overrides:
        compareSystemNameSuffix in class AbstractNamedBean
        Parameters:
        suffix1 - The suffix for the 1st bean in the comparison
        suffix2 - The suffix for the 2nd bean in the comparison
        n - The other (second) NamedBean in the comparison
        Returns:
        -1,0,+1 for ordering if the names are well-formed; may not provide proper ordering if the names are not well-formed.