Package jmri.jmrix.bachrus.speedmatcher
Class SpeedMatcherConfig
- java.lang.Object
-
- jmri.jmrix.bachrus.speedmatcher.SpeedMatcherConfig
-
- Direct Known Subclasses:
BasicSpeedMatcherConfig
,SpeedStepScaleSpeedMatcherConfig
public abstract class SpeedMatcherConfig extends java.lang.Object
Shared configuration data for a speed matcher
-
-
Field Summary
Fields Modifier and Type Field Description DccLocoAddress
dccLocoAddress
PowerManager
powerManager
Speed.Unit
speedUnit
javax.swing.JButton
startStopButton
javax.swing.JLabel
statusLabel
boolean
trimReverseSpeed
int
warmUpForwardSeconds
int
warmUpReverseSeconds
-
Constructor Summary
Constructors Constructor Description SpeedMatcherConfig(DccLocoAddress address, Speed.Unit speedUnit, boolean trimReverseSpeed, int warmUpForwardSeconds, int warmUpReverseSeconds, PowerManager powerManager, javax.swing.JLabel statusLabel, javax.swing.JButton startStopButton)
Constructor for the abstract SpeedMatcherConfig at the core of any Speed Matcher Config
-
-
-
Field Detail
-
dccLocoAddress
public DccLocoAddress dccLocoAddress
-
powerManager
public PowerManager powerManager
-
speedUnit
public Speed.Unit speedUnit
-
trimReverseSpeed
public boolean trimReverseSpeed
-
warmUpForwardSeconds
public int warmUpForwardSeconds
-
warmUpReverseSeconds
public int warmUpReverseSeconds
-
statusLabel
public javax.swing.JLabel statusLabel
-
startStopButton
public javax.swing.JButton startStopButton
-
-
Constructor Detail
-
SpeedMatcherConfig
public SpeedMatcherConfig(DccLocoAddress address, Speed.Unit speedUnit, boolean trimReverseSpeed, int warmUpForwardSeconds, int warmUpReverseSeconds, PowerManager powerManager, javax.swing.JLabel statusLabel, javax.swing.JButton startStopButton)
Constructor for the abstract SpeedMatcherConfig at the core of any Speed Matcher Config- Parameters:
address
- Address of locomotive to speed matchspeedUnit
- 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
-
-