jmri.jmrix.nce
Class NceThrottleManager

java.lang.Object
  extended by jmri.jmrix.AbstractThrottleManager
      extended by jmri.jmrix.nce.NceThrottleManager
All Implemented Interfaces:
ThrottleManager

public class NceThrottleManager
extends AbstractThrottleManager

NCE implementation of a ThrottleManager.

Author:
Bob Jacobsen Copyright (C) 2001

Nested Class Summary
 
Nested classes/interfaces inherited from class jmri.jmrix.AbstractThrottleManager
AbstractThrottleManager.Addresses
 
Constructor Summary
NceThrottleManager(NceTrafficController tc, String prefix)
          Constructor.
 
Method Summary
 boolean addressTypeUnique()
          Are there any ambiguous addresses (short vs long) on this system?
 boolean canBeLongAddress(int address)
          Address 1 and above can be long
 boolean canBeShortAddress(int address)
          The full range of short addresses are available
 void requestThrottleSetup(LocoAddress a, boolean control)
          Abstract member to actually do the work of configuring a new throttle, usually via interaction with the DCC system
 int supportedSpeedModes()
          What speed modes are supported by this system?
 
Methods inherited from class jmri.jmrix.AbstractThrottleManager
addressReleased, addressStillRequired, attachListener, cancelThrottleRequest, cancelThrottleRequest, dispatchThrottle, disposeThrottle, failedThrottleRequest, getThrottleInfo, hasDispatchFunction, notifyThrottleKnown, releaseThrottle, removeListener, requestThrottle, requestThrottle, requestThrottle, requestThrottleSetup, singleUse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NceThrottleManager

public NceThrottleManager(NceTrafficController tc,
                          String prefix)
Constructor.

Method Detail

requestThrottleSetup

public void requestThrottleSetup(LocoAddress a,
                                 boolean control)
Description copied from class: AbstractThrottleManager
Abstract member to actually do the work of configuring a new throttle, usually via interaction with the DCC system

Specified by:
requestThrottleSetup in class AbstractThrottleManager

canBeLongAddress

public boolean canBeLongAddress(int address)
Address 1 and above can be long


canBeShortAddress

public boolean canBeShortAddress(int address)
The full range of short addresses are available


addressTypeUnique

public boolean addressTypeUnique()
Are there any ambiguous addresses (short vs long) on this system?


supportedSpeedModes

public int supportedSpeedModes()
Description copied from class: AbstractThrottleManager
What speed modes are supported by this system? value should be xor of possible modes specifed by the DccThrottle interface

Specified by:
supportedSpeedModes in interface ThrottleManager
Overrides:
supportedSpeedModes in class AbstractThrottleManager


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