|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Throttle
A Throttle object can be manipulated to change the speed, direction and functions of a single locomotive.
A Throttle implementation provides the actual control mechanism.
These are obtained via a ThrottleManager.
With some control systems, there are only a limited number of Throttle's available.
On DCC systems, Throttles are often actually
DccThrottle objects, which have some additional
DCC-specific capabilities.
JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.
JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener p)
|
void |
dispatch()
Deprecated. Calls to dispose of a throttle should now be made via the throttle manager, or by using dispatch(ThrottleListener l) |
void |
dispatch(ThrottleListener l)
Finished with this Throttle, tell the layout that the locomotive is available for reuse/reallocation by somebody else. |
void |
dispose()
Deprecated. Calls to dispose of a throttle should now be made via the throttle manager or by using dispose(ThrottleListener l). |
void |
dispose(ThrottleListener l)
Not for general use, see release(ThrottleListener l) and dispatch(ThrottleListener l). |
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 property. |
Vector<PropertyChangeListener> |
getListeners()
|
LocoAddress |
getLocoAddress()
Locomotive address. |
BasicRosterEntry |
getRosterEntry()
|
float |
getSpeedSetting()
Speed - expressed as a value 0.0 -> 1.0. |
void |
release()
Deprecated. Calls to dispose of a throttle should now be made via the throttle manager or by using release(ThrottleListener l) |
void |
release(ThrottleListener l)
Finished with this Throttle, tell the layout that the locomotive is available for reuse/reallocation by somebody else. |
void |
removePropertyChangeListener(PropertyChangeListener p)
|
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 |
setIsForward(boolean forward)
|
void |
setRosterEntry(BasicRosterEntry re)
|
void |
setSpeedSetting(float speed)
|
| Field Detail |
|---|
static final String F0
static final String F1
static final String F2
static final String F3
static final String F4
static final String F5
static final String F6
static final String F7
static final String F8
static final String F9
static final String F10
static final String F11
static final String F12
static final String F13
static final String F14
static final String F15
static final String F16
static final String F17
static final String F18
static final String F19
static final String F20
static final String F21
static final String F22
static final String F23
static final String F24
static final String F25
static final String F26
static final String F27
static final String F28
static final String F0Momentary
static final String F1Momentary
static final String F2Momentary
static final String F3Momentary
static final String F4Momentary
static final String F5Momentary
static final String F6Momentary
static final String F7Momentary
static final String F8Momentary
static final String F9Momentary
static final String F10Momentary
static final String F11Momentary
static final String F12Momentary
static final String F13Momentary
static final String F14Momentary
static final String F15Momentary
static final String F16Momentary
static final String F17Momentary
static final String F18Momentary
static final String F19Momentary
static final String F20Momentary
static final String F21Momentary
static final String F22Momentary
static final String F23Momentary
static final String F24Momentary
static final String F25Momentary
static final String F26Momentary
static final String F27Momentary
static final String F28Momentary
| Method Detail |
|---|
float getSpeedSetting()
void setSpeedSetting(float speed)
boolean getIsForward()
void setIsForward(boolean forward)
boolean getF0()
void setF0(boolean f0)
boolean getF1()
void setF1(boolean f1)
boolean getF2()
void setF2(boolean f2)
boolean getF3()
void setF3(boolean f3)
boolean getF4()
void setF4(boolean f4)
boolean getF5()
void setF5(boolean f5)
boolean getF6()
void setF6(boolean f6)
boolean getF7()
void setF7(boolean f7)
boolean getF8()
void setF8(boolean f8)
boolean getF9()
void setF9(boolean f9)
boolean getF10()
void setF10(boolean f10)
boolean getF11()
void setF11(boolean f11)
boolean getF12()
void setF12(boolean f12)
boolean getF13()
void setF13(boolean f13)
boolean getF14()
void setF14(boolean f14)
boolean getF15()
void setF15(boolean f15)
boolean getF16()
void setF16(boolean f16)
boolean getF17()
void setF17(boolean f17)
boolean getF18()
void setF18(boolean f18)
boolean getF19()
void setF19(boolean f19)
boolean getF20()
void setF20(boolean f20)
boolean getF21()
void setF21(boolean f21)
boolean getF22()
void setF22(boolean f22)
boolean getF23()
void setF23(boolean f23)
boolean getF24()
void setF24(boolean f24)
boolean getF25()
void setF25(boolean f25)
boolean getF26()
void setF26(boolean f26)
boolean getF27()
void setF27(boolean f27)
boolean getF28()
void setF28(boolean f28)
boolean getF0Momentary()
void setF0Momentary(boolean f0Momentary)
boolean getF1Momentary()
void setF1Momentary(boolean f1Momentary)
boolean getF2Momentary()
void setF2Momentary(boolean f2Momentary)
boolean getF3Momentary()
void setF3Momentary(boolean f3Momentary)
boolean getF4Momentary()
void setF4Momentary(boolean f4Momentary)
boolean getF5Momentary()
void setF5Momentary(boolean f5Momentary)
boolean getF6Momentary()
void setF6Momentary(boolean f6Momentary)
boolean getF7Momentary()
void setF7Momentary(boolean f7Momentary)
boolean getF8Momentary()
void setF8Momentary(boolean f8Momentary)
boolean getF9Momentary()
void setF9Momentary(boolean f9Momentary)
boolean getF10Momentary()
void setF10Momentary(boolean f10Momentary)
boolean getF11Momentary()
void setF11Momentary(boolean f11Momentary)
boolean getF12Momentary()
void setF12Momentary(boolean f12Momentary)
boolean getF13Momentary()
void setF13Momentary(boolean f13Momentary)
boolean getF14Momentary()
void setF14Momentary(boolean f14Momentary)
boolean getF15Momentary()
void setF15Momentary(boolean f15Momentary)
boolean getF16Momentary()
void setF16Momentary(boolean f16Momentary)
boolean getF17Momentary()
void setF17Momentary(boolean f17Momentary)
boolean getF18Momentary()
void setF18Momentary(boolean f18Momentary)
boolean getF19Momentary()
void setF19Momentary(boolean f19Momentary)
boolean getF20Momentary()
void setF20Momentary(boolean f20Momentary)
boolean getF21Momentary()
void setF21Momentary(boolean f21Momentary)
boolean getF22Momentary()
void setF22Momentary(boolean f22Momentary)
boolean getF23Momentary()
void setF23Momentary(boolean f23Momentary)
boolean getF24Momentary()
void setF24Momentary(boolean f24Momentary)
boolean getF25Momentary()
void setF25Momentary(boolean f25Momentary)
boolean getF26Momentary()
void setF26Momentary(boolean f26Momentary)
boolean getF27Momentary()
void setF27Momentary(boolean f27Momentary)
boolean getF28Momentary()
void setF28Momentary(boolean f28Momentary)
LocoAddress getLocoAddress()
void removePropertyChangeListener(PropertyChangeListener p)
void addPropertyChangeListener(PropertyChangeListener p)
Vector<PropertyChangeListener> getListeners()
@Deprecated void dispose()
dispose(ThrottleListener l).
release() and dispatch().
Dispose of object when finished it. This does not free any hardware resources used; rather, it just cleans up the software implementation.
Used for handling certain internal error conditions, where the object still exists but hardware is not associated with it.
After this, further usage of this Throttle object will result in a JmriException.
@Deprecated void release()
release(ThrottleListener l)
After 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.
@Deprecated void dispatch()
dispatch(ThrottleListener l)
After this, further usage of this Throttle object will result in a JmriException.
Normally, dispatch ends with a call to dispose.
void dispose(ThrottleListener l)
release(ThrottleListener l) and dispatch(ThrottleListener l).
Dispose of object when finished it. This does not free any hardware resources used; rather, it just cleans up the software implementation.
Used for handling certain internal error conditions, where the object still exists but hardware is not associated with it.
After this, further usage of this Throttle object will result in a JmriException.
void release(ThrottleListener l)
After 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.
void dispatch(ThrottleListener l)
After this, further usage of this Throttle object will result in a JmriException.
Normally, dispatch ends with a call to dispose.
void setRosterEntry(BasicRosterEntry re)
BasicRosterEntry getRosterEntry()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||