jmri
Interface ThrottleListener

Show UML class diagram
All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
AddressPanel, AutoActiveTrain, ConsistFunctionController, JsonThrottle, LocoNetConsist, MultiThrottleController, RpsBlock, SpeedoConsoleFrame, SpeedProfilePanel, ThrottleController, Transmitter, Warrant

public interface ThrottleListener
extends java.util.EventListener

A listener interface for a class requesting a DccThrottle from the ThrottleManager.


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.


Method Summary
 void notifyFailedThrottleRequest(DccLocoAddress address, java.lang.String reason)
          Get notification that an attempt to request a throttle has failed
 void notifyThrottleFound(DccThrottle t)
          Get notification that a throttle has been found as you requested.
 

Method Detail

notifyThrottleFound

void notifyThrottleFound(DccThrottle t)
Get notification that a throttle has been found as you requested.

Parameters:
t - An instantiation of the DccThrottle with the address requested.

notifyFailedThrottleRequest

void notifyFailedThrottleRequest(DccLocoAddress address,
                                 java.lang.String reason)
Get notification that an attempt to request a throttle has failed

Parameters:
address - DccLocoAddress of the failed loco request.
reason - The reason why the throttle request failed.


Copyright © 1997-2014 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads