|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.AbstractThrottleManager
jmri.jmrix.loconet.LnPr2ThrottleManager
public class LnPr2ThrottleManager
LocoNet implementation of a ThrottleManager for the PR2
Does direct "push" writes to the extended slot in the PR2.
The PR2 only allows a single locomotive address to be active, because it implements a single-slot command station.
AbstractThrottleManager| Constructor Summary | |
|---|---|
LnPr2ThrottleManager()
Constructor, works via superclass. |
|
| 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 |
DccLocoAddress |
getActiveAddress()
Make the active address available to the power manager, which needs it to turn on and off "neutral mode" in the locomotive |
boolean |
hasDispatchFunction()
PR2 does not have a Dispatch function |
void |
requestThrottleSetup(LocoAddress address)
Get a new Throttle object. |
protected boolean |
singleUse()
PR2 allows only one throttle |
| Methods inherited from class jmri.jmrix.AbstractThrottleManager |
|---|
cancelThrottleRequest, cancelThrottleRequest, notifyThrottleKnown, requestThrottle, requestThrottle, supportedSpeedModes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LnPr2ThrottleManager()
| 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 boolean canBeLongAddress(int address)
public boolean canBeShortAddress(int address)
public boolean addressTypeUnique()
public DccLocoAddress getActiveAddress()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||