Class LnClockControl

  • All Implemented Interfaces:
    java.util.EventListener, ClockControl, SlotListener

    public class LnClockControl
    extends DefaultClockControl
    implements SlotListener
    Implementation of the Hardware Fast Clock for LocoNet.

    This module is based on a GUI module developed by Bob Jacobsen and Alex Shepherd to correct the LocoNet fast clock rate and synchronize it with the internal JMRI fast clock Timebase. The methods that actually send, correct, or receive information from the LocoNet hardware are repackaged versions of their code.

    The LocoNet Fast Clock is controlled by the user via the Fast Clock Setup GUI that is accessed from the JMRI Tools menu.

    For this implementation, "synchronize" implies "correct", since the two clocks run at a different rate.

    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.


    This file is part of JMRI.

    JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.

    JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.