Class Z21CanReporter

All Implemented Interfaces:
Comparable<NamedBean>, EventListener, PropertyChangeProvider, CollectingReporter, IdTagListener, AbstractMRListener, Z21Listener, NamedBean, PhysicalLocationReporter, Reporter

Z21CanReporter implements the Reporter Manager interface for Can connected reporters on Roco Z21 systems.

Reports from this reporter are of the type jmri.RailCom.

  • Constructor Details

    • Z21CanReporter

      public Z21CanReporter(String systemName, String userName, Z21SystemConnectionMemo memo)
      Create a new Z21CanReporter.
      Parameters:
      systemName - the system name of the new reporter.
      userName - the user name of the new reporter.
      memo - an instance of Z21SystemConnectionMemo this reporter is associated with.
  • Method Details

    • hasExitReports

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

      Specified by:
      hasExitReports in class AbstractRailComReporter
      Returns:
      true if hardware sends explicit exit/departure messages; false otherwise.
    • reply

      public void reply(Z21Reply msg)
      Member function that will be invoked by a z21Interface implementation to forward a z21 message from the layout.
      Specified by:
      reply in interface Z21Listener
      Parameters:
      msg - The received z21 reply. Note that this same object may be presented to multiple users. It should not be modified here.
    • message

      public void message(Z21Message msg)
      Member function that will be invoked by a z21Interface implementation to forward a z21 message sent to the layout. Normally, this function will do nothing.
      Specified by:
      message in interface Z21Listener
      Parameters:
      msg - The received z21 message. Note that this same object may be presented to multiple users. It should not be modified here.
    • getCollection

      Specified by:
      getCollection in interface CollectingReporter
      Returns:
      the collection of elements associated with this reporter.