Package jmri.jmrix.loconet.uhlenbrock
Class UhlenbrockLnThrottleManager
java.lang.Object
jmri.jmrix.AbstractThrottleManager
jmri.jmrix.loconet.LnThrottleManager
jmri.jmrix.loconet.uhlenbrock.UhlenbrockLnThrottleManager
- All Implemented Interfaces:
EventListener,SlotListener,ThrottleManager
LocoNet implementation of a ThrottleManager for Uhlenbrock.
Works in cooperation with the SlotManager, which actually handles the communications.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class jmri.jmrix.loconet.LnThrottleManager
LnThrottleManager.ThrottleRequestNested classes/interfaces inherited from class jmri.jmrix.AbstractThrottleManager
AbstractThrottleManager.Addresses -
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class jmri.jmrix.loconet.LnThrottleManager
slotManager, tc, throttleIDFields inherited from class jmri.jmrix.AbstractThrottleManager
adapterMemo, userName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancelThrottleRequest(LocoAddress address, ThrottleListener l) Cancel a request for a throttle.voidfailedThrottleRequest(LocoAddress address, String reason) Cancels the loco acquisition process when throttle acquisition of a loco fails.voidSlotListener contract.voidrequestThrottleSetup(LocoAddress address, boolean control) The Intellibox-II doesn't always respond to a request loco message, therefore the system will not allow further requests to create a throttle to that address as one is already in process.Methods inherited from class jmri.jmrix.loconet.LnThrottleManager
addressTypeUnique, canBeLongAddress, canBeShortAddress, dispatchThrottle, dispose, disposeThrottle, enablePrefSilentStealOption, getThrottleID, hasDispatchFunction, isLongAddress, notifyComplete, notifyRefused, notifyStealRequest, processQueuedThrottleSetupRequest, releaseThrottle, responseThrottleDecision, singleUse, supportedSpeedModesMethods inherited from class jmri.jmrix.AbstractThrottleManager
addressReleased, addressStillRequired, addressStillRequired, addressStillRequired, addressStillRequired, attachListener, cancelThrottleRequest, cancelThrottleRequest, cancelThrottleRequest, enablePrefSilentShareOption, forceDisposeThrottle, getAddress, getAddress, getAddressProtocolTypes, getAddressTypes, getAddressTypeString, getProtocolFromString, getThrottleInfo, getThrottleUsageCount, getThrottleUsageCount, getThrottleUsageCount, getThrottleUsageCount, getUserName, hideStealNotifications, makeHardwareDecision, notifyDecisionRequest, notifyThrottleKnown, removeListener, requestThrottle, requestThrottle, requestThrottle, requestThrottle, requestThrottle, requestThrottle, requestThrottleSetup, responseThrottleDecision, responseThrottleDecision, showSessionCancelDialogue, updateNumUsers
-
Field Details
-
waitingForNotification
-
-
Constructor Details
-
UhlenbrockLnThrottleManager
-
-
Method Details
-
requestThrottleSetup
The Intellibox-II doesn't always respond to a request loco message, therefore the system will not allow further requests to create a throttle to that address as one is already in process. With the Intellibox throttle, it will make three attempts to connect if no response is received from the command station after 2 seconds. Otherwise it will send a failthrottlerequest message out.- Overrides:
requestThrottleSetupin classLnThrottleManager- Parameters:
address- locomotive address to be controlledcontrol- true if throttle wishes to control the speed and direction of the loco.
-
notifyChangedSlot
SlotListener contract. Get notification that an address has changed slot. This method creates a throttle for all ThrottleListeners of that address and notifies them via the ThrottleListener.notifyThrottleFound method.- Specified by:
notifyChangedSlotin interfaceSlotListener- Overrides:
notifyChangedSlotin classLnThrottleManager- Parameters:
s- LocoNet slot which has been changed
-
failedThrottleRequest
Description copied from class:LnThrottleManagerCancels the loco acquisition process when throttle acquisition of a loco fails.- Overrides:
failedThrottleRequestin classLnThrottleManager- Parameters:
address- loco address which could not be acquiredreason- for the failure
-
cancelThrottleRequest
Cancel a request for a throttle.- Specified by:
cancelThrottleRequestin interfaceThrottleManager- Overrides:
cancelThrottleRequestin classLnThrottleManager- Parameters:
address- The decoder address desired.l- The ThrottleListener cancelling request for a throttle.
-