|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.AbstractThrottleManager
jmri.jmrix.loconet.LnThrottleManager
public class LnThrottleManager
LocoNet implementation of a ThrottleManager.
Works in cooperation with the SlotManager, which actually handles the communications.
SlotManager| Constructor Summary | |
|---|---|
LnThrottleManager()
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
addressTypeUnique()
Are there any ambiguous addresses (short vs long) on this system? |
boolean |
canBeLongAddress(int address)
Address 128 and above is a long address |
boolean |
canBeShortAddress(int address)
Address 127 and below is a short address |
boolean |
hasDispatchFunction()
LocoNet does have a Dispatch function |
void |
notifyChangedSlot(LocoNetSlot s)
SlotListener contract. |
void |
requestThrottleSetup(LocoAddress address)
Start creating a Throttle object. |
protected boolean |
singleUse()
LocoNet allows multiple throttles for the same device |
| Methods inherited from class jmri.jmrix.AbstractThrottleManager |
|---|
cancelThrottleRequest, cancelThrottleRequest, failedThrottleRequest, lostThrottle, notifyThrottleKnown, requestThrottle, requestThrottle, 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 |
|---|
cancelThrottleRequest, cancelThrottleRequest, requestThrottle, requestThrottle, supportedSpeedModes |
| Constructor Detail |
|---|
public LnThrottleManager()
| Method Detail |
|---|
protected boolean singleUse()
singleUse in class AbstractThrottleManagerpublic void requestThrottleSetup(LocoAddress address)
requestThrottleSetup in class AbstractThrottleManagerpublic boolean hasDispatchFunction()
hasDispatchFunction in interface ThrottleManagerhasDispatchFunction in class AbstractThrottleManagerpublic void notifyChangedSlot(LocoNetSlot s)
notifyChangedSlot in interface SlotListenerpublic boolean canBeLongAddress(int address)
canBeLongAddress in interface ThrottleManagerpublic boolean canBeShortAddress(int address)
canBeShortAddress in interface ThrottleManagerpublic boolean addressTypeUnique()
addressTypeUnique in interface ThrottleManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||