|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.AbstractThrottle
jmri.jmrix.xpa.XpaThrottle
public class XpaThrottle
An XPA+Modem implementation of the Throttle for XPressNet Systems
| Field Summary |
|---|
| Fields inherited from class jmri.jmrix.AbstractThrottle |
|---|
active, f0, f0Momentary, f1, f10, f10Momentary, f11, f11Momentary, f12, f12Momentary, f13, f13Momentary, f14, f14Momentary, f15, f15Momentary, f16, f16Momentary, f17, f17Momentary, f18, f18Momentary, f19, f19Momentary, f1Momentary, f2, f20, f20Momentary, f21, f21Momentary, f22, f22Momentary, f23, f23Momentary, f24, f24Momentary, f25, f25Momentary, f26, f26Momentary, f27, f27Momentary, f28, f28Momentary, f2Momentary, f3, f3Momentary, f4, f4Momentary, f5, f5Momentary, f6, f6Momentary, f7, f7Momentary, f8, f8Momentary, f9, f9Momentary, isForward, speedIncrement, speedSetting, speedStepMode |
| Fields inherited from interface jmri.DccThrottle |
|---|
SpeedStepMode128, SpeedStepMode14, SpeedStepMode27, SpeedStepMode28 |
| Constructor Summary | |
|---|---|
XpaThrottle(LocoAddress address)
Constructor |
|
| Method Summary | |
|---|---|
LocoAddress |
getLocoAddress()
Locomotive address. |
void |
sendFunctionGroup1()
Send the message to set the state of functions F0, F1, F2, F3, F4. |
void |
sendFunctionGroup2()
Send the message to set the state of functions F5, F6, F7, F8. |
void |
sendFunctionGroup3()
Send the message to set the state of functions F9, F10, F11, F12 This is used in the setFn implementations provided in this class, but a real implementation needs to be provided. |
void |
setF0(boolean f0)
|
void |
setF1(boolean f1)
|
void |
setF10(boolean f10)
|
void |
setF11(boolean f11)
|
void |
setF12(boolean f12)
|
void |
setF2(boolean f2)
|
void |
setF3(boolean f3)
|
void |
setF4(boolean f4)
|
void |
setF5(boolean f5)
|
void |
setF6(boolean f6)
|
void |
setF7(boolean f7)
|
void |
setF8(boolean f8)
|
void |
setF9(boolean f9)
|
void |
setIsForward(boolean forward)
|
void |
setSpeedSetting(float speed)
Set the speed & direction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XpaThrottle(LocoAddress address)
| Method Detail |
|---|
public void setSpeedSetting(float speed)
This intentionally skips the emergency stop value of 1.
speed - Number from 0 to 1; less than zero is emergency stoppublic void setIsForward(boolean forward)
public void setF0(boolean f0)
setF0 in interface ThrottlesetF0 in class AbstractThrottlepublic void setF1(boolean f1)
setF1 in interface ThrottlesetF1 in class AbstractThrottlepublic void setF2(boolean f2)
setF2 in interface ThrottlesetF2 in class AbstractThrottlepublic void setF3(boolean f3)
setF3 in interface ThrottlesetF3 in class AbstractThrottlepublic void setF4(boolean f4)
setF4 in interface ThrottlesetF4 in class AbstractThrottlepublic void setF5(boolean f5)
setF5 in interface ThrottlesetF5 in class AbstractThrottlepublic void setF6(boolean f6)
setF6 in interface ThrottlesetF6 in class AbstractThrottlepublic void setF7(boolean f7)
setF7 in interface ThrottlesetF7 in class AbstractThrottlepublic void setF8(boolean f8)
setF8 in interface ThrottlesetF8 in class AbstractThrottlepublic void setF9(boolean f9)
setF9 in interface ThrottlesetF9 in class AbstractThrottlepublic void setF10(boolean f10)
setF10 in interface ThrottlesetF10 in class AbstractThrottlepublic void setF11(boolean f11)
setF11 in interface ThrottlesetF11 in class AbstractThrottlepublic void setF12(boolean f12)
setF12 in interface ThrottlesetF12 in class AbstractThrottlepublic void sendFunctionGroup1()
AbstractThrottleThis is used in the setFn implementations provided in this class, but a real implementation needs to be provided.
sendFunctionGroup1 in class AbstractThrottlepublic void sendFunctionGroup2()
AbstractThrottleThis is used in the setFn implementations provided in this class, but a real implementation needs to be provided.
sendFunctionGroup2 in class AbstractThrottlepublic void sendFunctionGroup3()
AbstractThrottleThis is used in the setFn implementations provided in this class, but a real implementation needs to be provided.
sendFunctionGroup3 in class AbstractThrottlepublic LocoAddress getLocoAddress()
Throttle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||