Class LnReporter

  • All Implemented Interfaces:
    java.lang.Comparable<NamedBean>, PropertyChangeProvider, CollectingReporter, IdTagListener, NamedBean, PhysicalLocationReporter, Reporter

    public class LnReporter
    extends AbstractIdTagReporter
    implements CollectingReporter
    Extend jmri.AbstractIdTagReporter for LocoNet layouts.

    This implementation reports Transponding messages from LocoNet-based "Reporters". For LocoNet connections, a "Reporter" represents either a Digitrax "transponding zone" or a Lissy "measurement zone". The messages from these Reporters are handled by this code. The LnReporterManager is responsible for decode of appropriate LocoNet messages and passing only those messages to the Reporter which match its Reporter address.

    Each transponding message creates a new current report. The last report is always available, and is the same as the contents of the last transponding message received.

    Reports are Strings, formatted as

    • NNNN enter - locomotive address NNNN entered the transponding zone. Short vs long address is indicated by the NNNN value
    • NNNN exits - locomotive address NNNN left the transponding zone.
    • NNNN seen northbound - LISSY measurement
    • NNNN seen southbound - LISSY measurement
    Some of the message formats used in this class are Copyright Digitrax, Inc. and used with permission as part of the JMRI project. That permission does not extend to uses in other software products. If you wish to use this code, algorithm or these message formats outside of JMRI, please contact Digitrax Inc for separate permission.