Class SerialSensor

All Implemented Interfaces:
Comparable<NamedBean>, PropertyChangeProvider, DigitalIO, NamedBean, Sensor

public class SerialSensor
extends AbstractSensor
Extend jmri.AbstractSensor for Maple systems.
  • Constructor Details

    • SerialSensor

      public SerialSensor​(String systemName)
      Create a Sensor object, with only system name.

      'systemName' has already been validated in SerialSensorManager

      Parameters:
      systemName - the system name for this Sensor
    • SerialSensor

      public SerialSensor​(String systemName, String userName)
      Create a Sensor object, with both system and user names.

      'systemName' has already been validated in SerialSensorManager

      Parameters:
      systemName - the system name for this Sensor
      userName - the user name for this Sensor
  • Method Details

    • 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.