Package jmri.jmrix.loconet
Class Ib1Throttle
- java.lang.Object
-
- jmri.beans.PropertyChangeSupport
-
- jmri.jmrix.AbstractThrottle
-
- jmri.jmrix.loconet.LocoNetThrottle
-
- jmri.jmrix.loconet.Ib1Throttle
-
- All Implemented Interfaces:
java.util.EventListener
,PropertyChangeFirer
,PropertyChangeProvider
,DccThrottle
,SlotListener
,Throttle
public class Ib1Throttle extends LocoNetThrottle
A specialization of the LocoNet Throttle for Intellibox-I foibles.
-
-
Field Summary
-
Fields inherited from class jmri.jmrix.loconet.LocoNetThrottle
address, isDisposing, layout_dirf, layout_snd, layout_spd, layout_stat1, mRefreshTimer, network, new_isFwd, new_isFwd_lastupdated, new_spd, new_spd_lastupdated, slot, slotStatus, throttleManager
-
Fields inherited from class jmri.jmrix.AbstractThrottle
active, adapterMemo, FUNCTION_GROUPS, isForward, speedSetting, speedStepMode, start
-
Fields inherited from class jmri.beans.PropertyChangeSupport
propertyChangeSupport
-
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, ISFORWARD, SPEEDINCREMENT, SPEEDSETTING, SPEEDSTEPMODE, SPEEDSTEPS
-
-
Constructor Summary
Constructors Constructor Description Ib1Throttle(LocoNetSystemConnectionMemo memo, LocoNetSlot slot)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected float
floatSpeed(int lSpeed)
Convert a LocoNet speed integer to a float speed valueprotected int
intSpeed(float speed)
Computes the integer speed value from a float.protected void
sendFunctionGroup3()
Sends Function Group 3 values - F9 thru F12, using an "OPC_IMM_PACKET" LocoNet Message.protected void
sendFunctionGroup4()
Sends Function Group 4 values - F13 thru F20, using an "OPC_IMM_PACKET" LocoNet Message.protected void
sendFunctionGroup5()
Sends Function Group 5 values - F21 thru F28, using an "OPC_IMM_PACKET" LocoNet Message.-
Methods inherited from class jmri.jmrix.loconet.LocoNetThrottle
dispatchThrottle, getLocoAddress, getLocoNetSlot, notifyChangedSlot, notifyRefused, sendExpFunctionGroup1, sendExpFunctionGroup2, sendExpFunctionGroup3, sendExpFunctionGroup4, sendExpSpeedAndDirection, sendExpSpeedAndDirection, sendFunctionGroup, sendFunctionGroup1, sendFunctionGroup10, sendFunctionGroup2, sendFunctionGroup6, sendFunctionGroup7, sendFunctionGroup8, sendFunctionGroup9, setIsForward, setSpeedSetting, setSpeedSetting, setSpeedSettingAgain, setSpeedStepMode, startRefresh, throttleDispose, timeout, toString, updateFunctions
-
Methods inherited from class jmri.jmrix.AbstractThrottle
addPropertyChangeListener, dispatch, dispose, finishRecord, getFunction, getFunctionMomentary, getFunctionMomentaryNoWarn, getFunctionNoWarn, getFunctions, getFunctionsMomentary, getIsForward, getRosterEntry, getSpeedIncrement, getSpeedSetting, getSpeedStepMode, intSpeed, notifyThrottleDisconnect, notifyThrottleDispatchEnabled, notifyThrottleReleaseEnabled, record, release, removePropertyChangeListener, sendMomentaryFunctionGroup1, sendMomentaryFunctionGroup10, sendMomentaryFunctionGroup2, sendMomentaryFunctionGroup3, sendMomentaryFunctionGroup4, sendMomentaryFunctionGroup5, sendMomentaryFunctionGroup6, sendMomentaryFunctionGroup7, sendMomentaryFunctionGroup8, sendMomentaryFunctionGroup9, setFunction, setFunctionMomentary, setRosterEntry, startClock, updateFunction, updateFunctionMomentary
-
Methods inherited from class jmri.beans.PropertyChangeSupport
addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jmri.beans.PropertyChangeProvider
addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener
-
Methods inherited from interface jmri.Throttle
getF0, getF0Momentary, getF1, getF10, getF10Momentary, getF11, getF11Momentary, getF12, getF12Momentary, getF13, getF13Momentary, getF14, getF14Momentary, getF15, getF15Momentary, getF16, getF16Momentary, getF17, getF17Momentary, getF18, getF18Momentary, getF19, getF19Momentary, getF1Momentary, getF2, getF20, getF20Momentary, getF21, getF21Momentary, getF22, getF22Momentary, getF23, getF23Momentary, getF24, getF24Momentary, getF25, getF25Momentary, getF26, getF26Momentary, getF27, getF27Momentary, getF28, getF28Momentary, getF2Momentary, getF3, getF3Momentary, getF4, getF4Momentary, getF5, getF5Momentary, getF6, getF6Momentary, getF7, getF7Momentary, getF8, getF8Momentary, getF9, getF9Momentary, setF0, setF0Momentary, setF1, setF10, setF10Momentary, setF11, setF11Momentary, setF12, setF12Momentary, setF13, setF13Momentary, setF14, setF14Momentary, setF15, setF15Momentary, setF16, setF16Momentary, setF17, setF17Momentary, setF18, setF18Momentary, setF19, setF19Momentary, setF1Momentary, setF2, setF20, setF20Momentary, setF21, setF21Momentary, setF22, setF22Momentary, setF23, setF23Momentary, setF24, setF24Momentary, setF25, setF25Momentary, setF26, setF26Momentary, setF27, setF27Momentary, setF28, setF28Momentary, setF2Momentary, setF3, setF3Momentary, setF4, setF4Momentary, setF5, setF5Momentary, setF6, setF6Momentary, setF7, setF7Momentary, setF8, setF8Momentary, setF9, setF9Momentary
-
-
-
-
Constructor Detail
-
Ib1Throttle
public Ib1Throttle(LocoNetSystemConnectionMemo memo, LocoNetSlot slot)
Constructor.- Parameters:
memo
- system connection.slot
- The LocoNetSlot this throttle will talk on.
-
-
Method Detail
-
floatSpeed
protected float floatSpeed(int lSpeed)
Convert a LocoNet speed integer to a float speed value- Overrides:
floatSpeed
in classLocoNetThrottle
- Parameters:
lSpeed
- LocoNet style speed value- Returns:
- floatSpeed as float 0.0-1.0, or -1.0 to indicate E-Stop The IB provides an integer 0-127
-
intSpeed
protected int intSpeed(float speed)
Computes the integer speed value from a float.- Overrides:
intSpeed
in classLocoNetThrottle
- Parameters:
speed
- is the floating-point speed value to be converted- Returns:
- intSpeed an integer which represents the speed step value
-
sendFunctionGroup3
protected void sendFunctionGroup3()
Description copied from class:LocoNetThrottle
Sends Function Group 3 values - F9 thru F12, using an "OPC_IMM_PACKET" LocoNet Message.- Overrides:
sendFunctionGroup3
in classLocoNetThrottle
-
sendFunctionGroup4
protected void sendFunctionGroup4()
Description copied from class:LocoNetThrottle
Sends Function Group 4 values - F13 thru F20, using an "OPC_IMM_PACKET" LocoNet Message.- Overrides:
sendFunctionGroup4
in classLocoNetThrottle
-
sendFunctionGroup5
protected void sendFunctionGroup5()
Description copied from class:LocoNetThrottle
Sends Function Group 5 values - F21 thru F28, using an "OPC_IMM_PACKET" LocoNet Message.- Overrides:
sendFunctionGroup5
in classLocoNetThrottle
-
-