- All Superinterfaces:
- All Known Implementing Classes:
public interface ThrottleListener extends EventListener
Implementing classes used the methods here as part of the throttle request and initialization process as described shown in
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.
Nested Class Summary
Nested Classes Modifier and Type Interface Description
ThrottleListener.DecisionTypeA decision type requested from ThrottleManager to ThrottleListener, or decision made from ThrottleListener to ThrottleManager
Modifier and Type Method Description
notifyDecisionRequired(LocoAddress address, ThrottleListener.DecisionType question)Get notification that a throttle request is in use by another device, and a "steal", "share", or "steal/share" decision may be required.
notifyFailedThrottleRequest(LocoAddress address, String reason)Get notification that an attempt to request a throttle has failed.
notifyThrottleFound(DccThrottle t)Get notification that a throttle has been found as requested.
Get notification that a throttle has been found as requested.
t- the throttle with the requested address
Get notification that an attempt to request a throttle has failed.
address- address of the failed request
reason- failure cause
Get notification that a throttle request is in use by another device, and a "steal", "share", or "steal/share" decision may be required.
address- The LocoAddress that needs the decision.
question- The question being asked, steal / cancel, share / cancel, steal / share / cancel