|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.AbstractThrottle
public abstract class AbstractThrottle
An abstract implementation of DccThrottle. Based on Glen Oberhauser's original LnThrottleManager implementation.
Note that this implements DccThrottle, not Throttle directly, so it has some DCC-specific content.
| Field Summary | |
|---|---|
protected boolean |
active
Is this object still usable? |
protected boolean |
f0
|
protected boolean |
f0Momentary
|
protected boolean |
f1
|
protected boolean |
f10
|
protected boolean |
f10Momentary
|
protected boolean |
f11
|
protected boolean |
f11Momentary
|
protected boolean |
f12
|
protected boolean |
f12Momentary
|
protected boolean |
f13
|
protected boolean |
f13Momentary
|
protected boolean |
f14
|
protected boolean |
f14Momentary
|
protected boolean |
f15
|
protected boolean |
f15Momentary
|
protected boolean |
f16
|
protected boolean |
f16Momentary
|
protected boolean |
f17
|
protected boolean |
f17Momentary
|
protected boolean |
f18
|
protected boolean |
f18Momentary
|
protected boolean |
f19
|
protected boolean |
f19Momentary
|
protected boolean |
f1Momentary
|
protected boolean |
f2
|
protected boolean |
f20
|
protected boolean |
f20Momentary
|
protected boolean |
f21
|
protected boolean |
f21Momentary
|
protected boolean |
f22
|
protected boolean |
f22Momentary
|
protected boolean |
f23
|
protected boolean |
f23Momentary
|
protected boolean |
f24
|
protected boolean |
f24Momentary
|
protected boolean |
f25
|
protected boolean |
f25Momentary
|
protected boolean |
f26
|
protected boolean |
f26Momentary
|
protected boolean |
f27
|
protected boolean |
f27Momentary
|
protected boolean |
f28
|
protected boolean |
f28Momentary
|
protected boolean |
f2Momentary
|
protected boolean |
f3
|
protected boolean |
f3Momentary
|
protected boolean |
f4
|
protected boolean |
f4Momentary
|
protected boolean |
f5
|
protected boolean |
f5Momentary
|
protected boolean |
f6
|
protected boolean |
f6Momentary
|
protected boolean |
f7
|
protected boolean |
f7Momentary
|
protected boolean |
f8
|
protected boolean |
f8Momentary
|
protected boolean |
f9
|
protected boolean |
f9Momentary
|
protected boolean |
isForward
|
protected float |
speedIncrement
|
protected float |
speedSetting
|
protected int |
speedStepMode
|
| Fields inherited from interface jmri.DccThrottle |
|---|
SpeedStepMode128, SpeedStepMode14, SpeedStepMode27, SpeedStepMode28 |
| Constructor Summary | |
|---|---|
AbstractThrottle()
|
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
|
void |
dispatch()
Finished with this Throttle, tell the layout that the locomotive is available for reuse/reallocation by somebody else. |
void |
dispose()
Dispose when finished with this object. |
boolean |
getF0()
|
boolean |
getF0Momentary()
|
boolean |
getF1()
|
boolean |
getF10()
|
boolean |
getF10Momentary()
|
boolean |
getF11()
|
boolean |
getF11Momentary()
|
boolean |
getF12()
|
boolean |
getF12Momentary()
|
boolean |
getF13()
|
boolean |
getF13Momentary()
|
boolean |
getF14()
|
boolean |
getF14Momentary()
|
boolean |
getF15()
|
boolean |
getF15Momentary()
|
boolean |
getF16()
|
boolean |
getF16Momentary()
|
boolean |
getF17()
|
boolean |
getF17Momentary()
|
boolean |
getF18()
|
boolean |
getF18Momentary()
|
boolean |
getF19()
|
boolean |
getF19Momentary()
|
boolean |
getF1Momentary()
|
boolean |
getF2()
|
boolean |
getF20()
|
boolean |
getF20Momentary()
|
boolean |
getF21()
|
boolean |
getF21Momentary()
|
boolean |
getF22()
|
boolean |
getF22Momentary()
|
boolean |
getF23()
|
boolean |
getF23Momentary()
|
boolean |
getF24()
|
boolean |
getF24Momentary()
|
boolean |
getF25()
|
boolean |
getF25Momentary()
|
boolean |
getF26()
|
boolean |
getF26Momentary()
|
boolean |
getF27()
|
boolean |
getF27Momentary()
|
boolean |
getF28()
|
boolean |
getF28Momentary()
|
boolean |
getF2Momentary()
|
boolean |
getF3()
|
boolean |
getF3Momentary()
|
boolean |
getF4()
|
boolean |
getF4Momentary()
|
boolean |
getF5()
|
boolean |
getF5Momentary()
|
boolean |
getF6()
|
boolean |
getF6Momentary()
|
boolean |
getF7()
|
boolean |
getF7Momentary()
|
boolean |
getF8()
|
boolean |
getF8Momentary()
|
boolean |
getF9()
|
boolean |
getF9Momentary()
|
boolean |
getIsForward()
direction This is an bound parameter. |
float |
getSpeedIncrement()
to handle quantized speed. |
float |
getSpeedSetting()
speed - expressed as a value 0.0 -> 1.0. |
int |
getSpeedStepMode()
|
protected void |
notifyPropertyChangeListener(String property,
Object oldValue,
Object newValue)
Trigger the notification of all PropertyChangeListeners |
void |
release()
Finished with this Throttle, tell the layout that the locomotive is available for reuse/reallocation by somebody else. |
void |
removePropertyChangeListener(PropertyChangeListener l)
|
protected void |
sendFunctionGroup1()
Send the message to set the state of functions F0, F1, F2, F3, F4. |
protected void |
sendFunctionGroup2()
Send the message to set the state of functions F5, F6, F7, F8. |
protected 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. |
protected void |
sendFunctionGroup4()
Send the message to set the state of functions F13, F14, F15, F16, F17, F18, F19, F20 This is used in the setFn implementations provided in this class, but a real implementation needs to be provided. |
protected void |
sendFunctionGroup5()
Send the message to set the state of functions F21, F22, F23, F24, F25, F26, F27, F28 This is used in the setFn implementations provided in this class, but a real implementation needs to be provided. |
protected void |
sendMomentaryFunctionGroup1()
Send the message to set the momentary state of functions F0, F1, F2, F3, F4. |
protected void |
sendMomentaryFunctionGroup2()
Send the message to set the momentary state of functions F5, F6, F7, F8. |
protected void |
sendMomentaryFunctionGroup3()
Send the message to set the Momentary state of functions F9, F10, F11, F12 This is used in the setFnMomentary implementations provided in this class, but a real implementation needs to be provided if the hardware supports setting functions momentary. |
protected void |
sendMomentaryFunctionGroup4()
Send the message to set the Momentary state of functions F13, F14, F15, F16, F17, F18, F19, F20 This is used in the setFnMomentary implementations provided in this class, but a real implementation needs to be provided if the hardware supports setting functions momentary. |
protected void |
sendMomentaryFunctionGroup5()
Send the message to set the Momentary state of functions F21, F22, F23, F24, F25, F26, F27, F28 This is used in the setFnMomentary implementations provided in this class, but a real implementation needs to be provided if the hardware supports setting functions momentary. |
void |
setF0(boolean f0)
|
void |
setF0Momentary(boolean f0Momentary)
|
void |
setF1(boolean f1)
|
void |
setF10(boolean f10)
|
void |
setF10Momentary(boolean f10Momentary)
|
void |
setF11(boolean f11)
|
void |
setF11Momentary(boolean f11Momentary)
|
void |
setF12(boolean f12)
|
void |
setF12Momentary(boolean f12Momentary)
|
void |
setF13(boolean f13)
|
void |
setF13Momentary(boolean f13Momentary)
|
void |
setF14(boolean f14)
|
void |
setF14Momentary(boolean f14Momentary)
|
void |
setF15(boolean f15)
|
void |
setF15Momentary(boolean f15Momentary)
|
void |
setF16(boolean f16)
|
void |
setF16Momentary(boolean f16Momentary)
|
void |
setF17(boolean f17)
|
void |
setF17Momentary(boolean f17Momentary)
|
void |
setF18(boolean f18)
|
void |
setF18Momentary(boolean f18Momentary)
|
void |
setF19(boolean f19)
|
void |
setF19Momentary(boolean f19Momentary)
|
void |
setF1Momentary(boolean f1Momentary)
|
void |
setF2(boolean f2)
|
void |
setF20(boolean f20)
|
void |
setF20Momentary(boolean f20Momentary)
|
void |
setF21(boolean f21)
|
void |
setF21Momentary(boolean f21Momentary)
|
void |
setF22(boolean f22)
|
void |
setF22Momentary(boolean f22Momentary)
|
void |
setF23(boolean f23)
|
void |
setF23Momentary(boolean f23Momentary)
|
void |
setF24(boolean f24)
|
void |
setF24Momentary(boolean f24Momentary)
|
void |
setF25(boolean f25)
|
void |
setF25Momentary(boolean f25Momentary)
|
void |
setF26(boolean f26)
|
void |
setF26Momentary(boolean f26Momentary)
|
void |
setF27(boolean f27)
|
void |
setF27Momentary(boolean f27Momentary)
|
void |
setF28(boolean f28)
|
void |
setF28Momentary(boolean f28Momentary)
|
void |
setF2Momentary(boolean f2Momentary)
|
void |
setF3(boolean f3)
|
void |
setF3Momentary(boolean f3Momentary)
|
void |
setF4(boolean f4)
|
void |
setF4Momentary(boolean f4Momentary)
|
void |
setF5(boolean f5)
|
void |
setF5Momentary(boolean f5Momentary)
|
void |
setF6(boolean f6)
|
void |
setF6Momentary(boolean f6Momentary)
|
void |
setF7(boolean f7)
|
void |
setF7Momentary(boolean f7Momentary)
|
void |
setF8(boolean f8)
|
void |
setF8Momentary(boolean f8Momentary)
|
void |
setF9(boolean f9)
|
void |
setF9Momentary(boolean f9Momentary)
|
void |
setSpeedStepMode(int Mode)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jmri.Throttle |
|---|
getLocoAddress, setIsForward, setSpeedSetting |
| Field Detail |
|---|
protected float speedSetting
protected float speedIncrement
protected int speedStepMode
protected boolean isForward
protected boolean f0
protected boolean f1
protected boolean f2
protected boolean f3
protected boolean f4
protected boolean f5
protected boolean f6
protected boolean f7
protected boolean f8
protected boolean f9
protected boolean f10
protected boolean f11
protected boolean f12
protected boolean f13
protected boolean f14
protected boolean f15
protected boolean f16
protected boolean f17
protected boolean f18
protected boolean f19
protected boolean f20
protected boolean f21
protected boolean f22
protected boolean f23
protected boolean f24
protected boolean f25
protected boolean f26
protected boolean f27
protected boolean f28
protected boolean f0Momentary
protected boolean f1Momentary
protected boolean f2Momentary
protected boolean f3Momentary
protected boolean f4Momentary
protected boolean f5Momentary
protected boolean f6Momentary
protected boolean f7Momentary
protected boolean f8Momentary
protected boolean f9Momentary
protected boolean f10Momentary
protected boolean f11Momentary
protected boolean f12Momentary
protected boolean f13Momentary
protected boolean f14Momentary
protected boolean f15Momentary
protected boolean f16Momentary
protected boolean f17Momentary
protected boolean f18Momentary
protected boolean f19Momentary
protected boolean f20Momentary
protected boolean f21Momentary
protected boolean f22Momentary
protected boolean f23Momentary
protected boolean f24Momentary
protected boolean f25Momentary
protected boolean f26Momentary
protected boolean f27Momentary
protected boolean f28Momentary
protected boolean active
| Constructor Detail |
|---|
public AbstractThrottle()
| Method Detail |
|---|
public float getSpeedSetting()
getSpeedSetting in interface Throttlepublic boolean getIsForward()
getIsForward in interface Throttlepublic boolean getF0()
getF0 in interface Throttlepublic boolean getF1()
getF1 in interface Throttlepublic boolean getF2()
getF2 in interface Throttlepublic boolean getF3()
getF3 in interface Throttlepublic boolean getF4()
getF4 in interface Throttlepublic boolean getF5()
getF5 in interface Throttlepublic boolean getF6()
getF6 in interface Throttlepublic boolean getF7()
getF7 in interface Throttlepublic boolean getF8()
getF8 in interface Throttlepublic boolean getF9()
getF9 in interface Throttlepublic boolean getF10()
getF10 in interface Throttlepublic boolean getF11()
getF11 in interface Throttlepublic boolean getF12()
getF12 in interface Throttlepublic boolean getF13()
getF13 in interface Throttlepublic boolean getF14()
getF14 in interface Throttlepublic boolean getF15()
getF15 in interface Throttlepublic boolean getF16()
getF16 in interface Throttlepublic boolean getF17()
getF17 in interface Throttlepublic boolean getF18()
getF18 in interface Throttlepublic boolean getF19()
getF19 in interface Throttlepublic boolean getF20()
getF20 in interface Throttlepublic boolean getF21()
getF21 in interface Throttlepublic boolean getF22()
getF22 in interface Throttlepublic boolean getF23()
getF23 in interface Throttlepublic boolean getF24()
getF24 in interface Throttlepublic boolean getF25()
getF25 in interface Throttlepublic boolean getF26()
getF26 in interface Throttlepublic boolean getF27()
getF27 in interface Throttlepublic boolean getF28()
getF28 in interface Throttlepublic boolean getF0Momentary()
getF0Momentary in interface Throttlepublic boolean getF1Momentary()
getF1Momentary in interface Throttlepublic boolean getF2Momentary()
getF2Momentary in interface Throttlepublic boolean getF3Momentary()
getF3Momentary in interface Throttlepublic boolean getF4Momentary()
getF4Momentary in interface Throttlepublic boolean getF5Momentary()
getF5Momentary in interface Throttlepublic boolean getF6Momentary()
getF6Momentary in interface Throttlepublic boolean getF7Momentary()
getF7Momentary in interface Throttlepublic boolean getF8Momentary()
getF8Momentary in interface Throttlepublic boolean getF9Momentary()
getF9Momentary in interface Throttlepublic boolean getF10Momentary()
getF10Momentary in interface Throttlepublic boolean getF11Momentary()
getF11Momentary in interface Throttlepublic boolean getF12Momentary()
getF12Momentary in interface Throttlepublic boolean getF13Momentary()
getF13Momentary in interface Throttlepublic boolean getF14Momentary()
getF14Momentary in interface Throttlepublic boolean getF15Momentary()
getF15Momentary in interface Throttlepublic boolean getF16Momentary()
getF16Momentary in interface Throttlepublic boolean getF17Momentary()
getF17Momentary in interface Throttlepublic boolean getF18Momentary()
getF18Momentary in interface Throttlepublic boolean getF19Momentary()
getF19Momentary in interface Throttlepublic boolean getF20Momentary()
getF20Momentary in interface Throttlepublic boolean getF21Momentary()
getF21Momentary in interface Throttlepublic boolean getF22Momentary()
getF22Momentary in interface Throttlepublic boolean getF23Momentary()
getF23Momentary in interface Throttlepublic boolean getF24Momentary()
getF24Momentary in interface Throttlepublic boolean getF25Momentary()
getF25Momentary in interface Throttlepublic boolean getF26Momentary()
getF26Momentary in interface Throttlepublic boolean getF27Momentary()
getF27Momentary in interface Throttlepublic boolean getF28Momentary()
getF28Momentary in interface Throttlepublic void removePropertyChangeListener(PropertyChangeListener l)
removePropertyChangeListener in interface Throttlepublic void addPropertyChangeListener(PropertyChangeListener l)
addPropertyChangeListener in interface Throttle
protected void notifyPropertyChangeListener(String property,
Object oldValue,
Object newValue)
public void dispose()
dispose in interface Throttlepublic void dispatch()
ThrottleAfter this, further usage of this Throttle object will result in a JmriException.
Normally, dispatch ends with a call to dispose.
dispatch in interface Throttlepublic void release()
ThrottleAfter this, further usage of this Throttle object will result in a JmriException. Do not call dispose after release.
Normally, release ends with a call to dispose.
release in interface Throttlepublic float getSpeedIncrement()
getSpeedIncrement in interface DccThrottlepublic void setF0(boolean f0)
setF0 in interface Throttlepublic void setF1(boolean f1)
setF1 in interface Throttlepublic void setF2(boolean f2)
setF2 in interface Throttlepublic void setF3(boolean f3)
setF3 in interface Throttlepublic void setF4(boolean f4)
setF4 in interface Throttlepublic void setF5(boolean f5)
setF5 in interface Throttlepublic void setF6(boolean f6)
setF6 in interface Throttlepublic void setF7(boolean f7)
setF7 in interface Throttlepublic void setF8(boolean f8)
setF8 in interface Throttlepublic void setF9(boolean f9)
setF9 in interface Throttlepublic void setF10(boolean f10)
setF10 in interface Throttlepublic void setF11(boolean f11)
setF11 in interface Throttlepublic void setF12(boolean f12)
setF12 in interface Throttlepublic void setF13(boolean f13)
setF13 in interface Throttlepublic void setF14(boolean f14)
setF14 in interface Throttlepublic void setF15(boolean f15)
setF15 in interface Throttlepublic void setF16(boolean f16)
setF16 in interface Throttlepublic void setF17(boolean f17)
setF17 in interface Throttlepublic void setF18(boolean f18)
setF18 in interface Throttlepublic void setF19(boolean f19)
setF19 in interface Throttlepublic void setF20(boolean f20)
setF20 in interface Throttlepublic void setF21(boolean f21)
setF21 in interface Throttlepublic void setF22(boolean f22)
setF22 in interface Throttlepublic void setF23(boolean f23)
setF23 in interface Throttlepublic void setF24(boolean f24)
setF24 in interface Throttlepublic void setF25(boolean f25)
setF25 in interface Throttlepublic void setF26(boolean f26)
setF26 in interface Throttlepublic void setF27(boolean f27)
setF27 in interface Throttlepublic void setF28(boolean f28)
setF28 in interface Throttleprotected void sendFunctionGroup1()
This is used in the setFn implementations provided in this class, but a real implementation needs to be provided.
protected void sendFunctionGroup2()
This is used in the setFn implementations provided in this class, but a real implementation needs to be provided.
protected void sendFunctionGroup3()
This is used in the setFn implementations provided in this class, but a real implementation needs to be provided.
protected void sendFunctionGroup4()
This is used in the setFn implementations provided in this class, but a real implementation needs to be provided.
protected void sendFunctionGroup5()
This is used in the setFn implementations provided in this class, but a real implementation needs to be provided.
public void setF0Momentary(boolean f0Momentary)
setF0Momentary in interface Throttlepublic void setF1Momentary(boolean f1Momentary)
setF1Momentary in interface Throttlepublic void setF2Momentary(boolean f2Momentary)