Class AbstractRailComReporter

All Implemented Interfaces:
Comparable<NamedBean>, PropertyChangeProvider, IdTagListener, NamedBean, PhysicalLocationReporter, Reporter
Direct Known Subclasses:
BiDiBReporter, CbusReporter, Dcc4PcReporter, Z21CanReporter, Z21Reporter

public abstract class AbstractRailComReporter extends AbstractIdTagReporter
Extend AbstractReporter for RailCom reporters

This class is based on RfidReporter

Since:
4.5.4
  • Constructor Details

  • Method Details

    • hasExitReports

      public abstract boolean hasExitReports()
      Indicates whether the underlying hardware sends messages determining when an Id is no longer in this reporter (e.g. RailCom block occupancy exit events).

      When false (e.g. RFID point detectors), seeing a tag elsewhere implies it has departed this reporter. When true, departure is strictly governed by hardware exit/clear messages.

      Overrides:
      hasExitReports in class AbstractIdTagReporter
      Returns:
      true if hardware sends explicit exit/departure messages; false otherwise.
    • getLocoAddress

      Get the locomotive address we're reporting about from the current report. Note: We ignore the string passed in, because RailCom Reporters don't send String type reports. Get the locomotive address we're reporting about from the current report.
      Specified by:
      getLocoAddress in interface PhysicalLocationReporter
      Overrides:
      getLocoAddress in class AbstractIdTagReporter
      Parameters:
      rep - ignored, IdTag Reporters don't send String type reports.