Class BasicSpeedMatcherConfig
- java.lang.Object
-
- jmri.jmrix.bachrus.speedmatcher.SpeedMatcherConfig
-
- jmri.jmrix.bachrus.speedmatcher.basic.BasicSpeedMatcherConfig
-
public class BasicSpeedMatcherConfig extends SpeedMatcherConfig
Configuration data for a basic speed matcher
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BasicSpeedMatcherConfig.SpeedTable
-
Field Summary
Fields Modifier and Type Field Description float
targetStartSpeed
float
targetTopSpeed
-
Fields inherited from class jmri.jmrix.bachrus.speedmatcher.SpeedMatcherConfig
dccLocoAddress, powerManager, speedUnit, startStopButton, statusLabel, trimReverseSpeed, warmUpForwardSeconds, warmUpReverseSeconds
-
-
Constructor Summary
Constructors Constructor Description BasicSpeedMatcherConfig(DccLocoAddress address, float targetStartSpeed, float targetTopSpeed, Speed.Unit speedUnit, boolean trimReverseSpeed, int warmUpForwardSeconds, int warmUpReverseSeconds, PowerManager powerManager, javax.swing.JLabel statusLabel, javax.swing.JButton startStopButton)
Create a config object for a Basic Speed Matcher
-
-
-
Field Detail
-
targetStartSpeed
public float targetStartSpeed
-
targetTopSpeed
public float targetTopSpeed
-
-
Constructor Detail
-
BasicSpeedMatcherConfig
public BasicSpeedMatcherConfig(DccLocoAddress address, float targetStartSpeed, float targetTopSpeed, Speed.Unit speedUnit, boolean trimReverseSpeed, int warmUpForwardSeconds, int warmUpReverseSeconds, PowerManager powerManager, javax.swing.JLabel statusLabel, javax.swing.JButton startStopButton)
Create a config object for a Basic Speed Matcher- Parameters:
address
- Address of locomotive to speed matchtargetStartSpeed
- Target speed at vStart in the given speedUnittargetTopSpeed
- Target speed at vHigh in the given speedUnitspeedUnit
- Speed.Unit to speed match the locomotive intrimReverseSpeed
- Set to true to trim the locomotive's reverse speed, false otherwisewarmUpForwardSeconds
- Number of seconds to warm up the locomotive before forward speed matching; set to 0 to skip the forward warm upwarmUpReverseSeconds
- Number of seconds to warm up the locomotive before trimming revers speed; set to 0 to skip the reverse warm uppowerManager
- PowerManager for turning on the DCC system powerstatusLabel
- JLabel status label in the SpeedoConsoleFramestartStopButton
- JButton for starting and stopping speed matching
-
-