jmri.jmrit.withrottle
Class ConsistFunctionController

java.lang.Object
  extended by jmri.jmrit.withrottle.ConsistFunctionController
All Implemented Interfaces:
EventListener, ThrottleListener

public class ConsistFunctionController
extends Object
implements ThrottleListener

Author:
Brett Hoffman Copyright (C) 2010, 2011

Constructor Summary
ConsistFunctionController(ThrottleController tc)
           
ConsistFunctionController(ThrottleController tc, RosterEntry re)
           
 
Method Summary
 void dispose()
           
 DccThrottle getThrottle()
           
 void notifyFailedThrottleRequest(DccLocoAddress address, 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsistFunctionController

public ConsistFunctionController(ThrottleController tc)

ConsistFunctionController

public ConsistFunctionController(ThrottleController tc,
                                 RosterEntry re)
Method Detail

notifyThrottleFound

public void notifyThrottleFound(DccThrottle t)
Description copied from interface: ThrottleListener
Get notification that a throttle has been found as you requested.

Specified by:
notifyThrottleFound in interface ThrottleListener
Parameters:
t - An instantiation of the DccThrottle with the address requested.

notifyFailedThrottleRequest

public void notifyFailedThrottleRequest(DccLocoAddress address,
                                        String reason)
Description copied from interface: ThrottleListener
Get notification that an attempt to request a throttle has failed

Specified by:
notifyFailedThrottleRequest in interface ThrottleListener
Parameters:
address - DccLocoAddress of the failed loco request.
reason - The reason why the throttle request failed.

dispose

public void dispose()

getThrottle

public DccThrottle getThrottle()


Copyright © 1997 - 2011 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