jmri.jmrix.xpa
Class XpaThrottleManager

java.lang.Object
  extended by jmri.jmrix.AbstractThrottleManager
      extended by jmri.jmrix.xpa.XpaThrottleManager
All Implemented Interfaces:
ThrottleManager

public class XpaThrottleManager
extends AbstractThrottleManager
implements ThrottleManager

XPA implementation of a ThrottleManager

Author:
Paul Bender Copyright (C) 2004

Nested Class Summary
 
Nested classes/interfaces inherited from class jmri.jmrix.AbstractThrottleManager
AbstractThrottleManager.Addresses
 
Constructor Summary
XpaThrottleManager()
          Constructor.
 
Method Summary
 boolean addressTypeUnique()
          Are there any ambiguous addresses (short vs long) on this system?
 boolean canBeLongAddress(int address)
          Address 100 and above is a long address
 boolean canBeShortAddress(int address)
          Address 99 and below is a short address
 boolean hasDispatchFunction()
          Check to see if the Dispatch Button should be enabled or not Default to true, override if necessary
 void requestThrottleSetup(LocoAddress address, boolean control)
          Request a new throttle object be creaetd for the address, and let the throttle listeners know about it.
 
Methods inherited from class jmri.jmrix.AbstractThrottleManager
addressReleased, addressStillRequired, attachListener, cancelThrottleRequest, cancelThrottleRequest, dispatchThrottle, disposeThrottle, failedThrottleRequest, getThrottleInfo, notifyThrottleKnown, releaseThrottle, removeListener, requestThrottle, requestThrottle, requestThrottle, requestThrottleSetup, singleUse, supportedSpeedModes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jmri.ThrottleManager
addressStillRequired, attachListener, cancelThrottleRequest, cancelThrottleRequest, dispatchThrottle, disposeThrottle, getThrottleInfo, releaseThrottle, removeListener, requestThrottle, requestThrottle, requestThrottle, supportedSpeedModes
 

Constructor Detail

XpaThrottleManager

public XpaThrottleManager()
Constructor.

Method Detail

requestThrottleSetup

public void requestThrottleSetup(LocoAddress address,
                                 boolean control)
Request a new throttle object be creaetd for the address, and let the throttle listeners know about it.

Specified by:
requestThrottleSetup in class AbstractThrottleManager

hasDispatchFunction

public boolean hasDispatchFunction()
Description copied from class: AbstractThrottleManager
Check to see if the Dispatch Button should be enabled or not Default to true, override if necessary

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

canBeLongAddress

public boolean canBeLongAddress(int address)
Address 100 and above is a long address

Specified by:
canBeLongAddress in interface ThrottleManager

canBeShortAddress

public boolean canBeShortAddress(int address)
Address 99 and below is a short address

Specified by:
canBeShortAddress in interface ThrottleManager

addressTypeUnique

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

Specified by:
addressTypeUnique in interface ThrottleManager


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