Class LocoNetThrottledTransmitter

  • All Implemented Interfaces:
    LocoNetInterface

    public class LocoNetThrottledTransmitter
    extends java.lang.Object
    implements LocoNetInterface
    Delay LocoNet messages that need to be throttled.

    A LocoNetThrottledTransmitter object sits in front of a LocoNetInterface (e.g. TrafficHandler) and meters out specific LocoNet messages.

    The internal Memo class is used to hold the pending message and the time it's to be sent. Time computations are in units of milliseconds, as that's all the accuracy that's needed here.