|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.AbstractThrottle
jmri.jmrix.ecos.EcosDccThrottle
public class EcosDccThrottle
An implementation of DccThrottle with code specific to an ECoS connection. Based on Glen Oberhauser's original LnThrottleManager implementation
| Field Summary | |
|---|---|
(package private) int |
ecosretry
|
(package private) static org.slf4j.Logger |
log
|
(package private) String |
objectNumber
Constructor. |
(package private) EcosPreferences |
p
|
(package private) int |
speedMessageSent
|
(package private) EcosTrafficController |
tc
|
| Fields inherited from class jmri.jmrix.AbstractThrottle |
|---|
active, adapterMemo, 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, SPEED_STEP_128_INCREMENT, SPEED_STEP_14_INCREMENT, SPEED_STEP_27_INCREMENT, SPEED_STEP_28_INCREMENT, speedIncrement, speedSetting, speedStepMode |
| Fields inherited from interface jmri.DccThrottle |
|---|
SpeedStepMode128, SpeedStepMode14, SpeedStepMode27, SpeedStepMode28, SpeedStepMode28Mot |
| Fields inherited from interface jmri.Throttle |
|---|
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 |
| Constructor Summary | |
|---|---|
EcosDccThrottle(DccLocoAddress address,
EcosSystemConnectionMemo memo,
boolean control)
|
|
| Method Summary | |
|---|---|
protected float |
floatSpeed(int lSpeed)
Convert a Ecos speed integer to a float speed value |
void |
forceControl()
|
(package private) void |
getInitialStates()
|
LocoAddress |
getLocoAddress()
Locomotive address. |
void |
message(EcosMessage m)
|
void |
reply(EcosReply m)
|
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. |
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. |
void |
setIsForward(boolean forward)
|
void |
setSpeedSetting(float speed)
Set the speed & direction. |
protected void |
throttleDispose()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
String objectNumber
int ecosretry
final EcosPreferences p
EcosTrafficController tc
int speedMessageSent
static org.slf4j.Logger log
| Constructor Detail |
|---|
public EcosDccThrottle(DccLocoAddress address,
EcosSystemConnectionMemo memo,
boolean control)
| Method Detail |
|---|
protected float floatSpeed(int lSpeed)
protected void sendFunctionGroup1()
sendFunctionGroup1 in class AbstractThrottleprotected void sendFunctionGroup2()
sendFunctionGroup2 in class AbstractThrottleprotected void sendFunctionGroup3()
sendFunctionGroup3 in class AbstractThrottleprotected void sendFunctionGroup4()
AbstractThrottleThis is used in the setFn implementations provided in this class, but a real implementation needs to be provided.
sendFunctionGroup4 in class AbstractThrottleprotected void sendFunctionGroup5()
AbstractThrottleThis is used in the setFn implementations provided in this class, but a real implementation needs to be provided.
sendFunctionGroup5 in class AbstractThrottlepublic void setSpeedSetting(float speed)
This intentionally skips the emergency stop value of 1.
setSpeedSetting in interface ThrottlesetSpeedSetting in class AbstractThrottlespeed - Number from 0 to 1; less than zero is emergency stoppublic void setIsForward(boolean forward)
setIsForward in interface ThrottlesetIsForward in class AbstractThrottlepublic LocoAddress getLocoAddress()
Throttle
getLocoAddress in interface Throttleprotected void throttleDispose()
throttleDispose in class AbstractThrottlepublic void reply(EcosReply m)
reply in interface EcosListenerpublic void message(EcosMessage m)
message in interface EcosListenerpublic void forceControl()
void getInitialStates()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||