public interface ThrottleListener extends EventListener
Implementing classes used the methods here as part of the throttle request and initilization process as described shown in
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.
|Modifier and Type||Method and Description|
Get notification that an attempt to request a throttle has failed
Get notification that a throttle request requires is in use by another device, and a "steal" may be required.
Get notification that a throttle has been found as you requested.
void notifyThrottleFound(DccThrottle t)
t- An instantiation of the DccThrottle with the address requested.
void notifyFailedThrottleRequest(DccLocoAddress address, String reason)
address- DccLocoAddress of the failed loco request.
reason- The reason why the throttle request failed.
void notifyStealThrottleRequired(DccLocoAddress address)
address- DccLocoAddress of the throttle that needs to be stolen.
Copyright © 1997-2017 JMRI Community.
JMRI®, DecoderPro®, PanelPro, SignalPro, SoundPro, DispatcherPro, TrainPro and associated logos are our trademarks.
Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: