jmri.jmrix.rps
Class RpsBlock
java.lang.Object
jmri.jmrix.rps.RpsBlock
- All Implemented Interfaces:
- PropertyChangeListener, EventListener, ThrottleListener
public class RpsBlock
- extends Object
- implements PropertyChangeListener, ThrottleListener
Create a Block that can control a locomotive
within a specific Block based on an RpsSensor.
It sets speed based on aspect of a specific signal
- Author:
- Bob Jacobsen Copyright (C) 2007
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RpsBlock
public RpsBlock(RpsSensor sensor,
SignalHead signal,
float slow,
float fast)
RpsBlock
public RpsBlock(String sensorname,
String signalname,
float slow,
float fast)
propertyChange
public void propertyChange(PropertyChangeEvent e)
- Specified by:
propertyChange in interface PropertyChangeListener
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()
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: