Class SpeedMatcherConfig

java.lang.Object
jmri.jmrix.bachrus.speedmatcher.SpeedMatcherConfig
Direct Known Subclasses:
BasicSpeedMatcherConfig, SpeedStepScaleSpeedMatcherConfig

public abstract class SpeedMatcherConfig extends Object
Shared configuration data for a speed matcher
  • Field Details

  • Constructor Details

    • SpeedMatcherConfig

      public SpeedMatcherConfig(DccLocoAddress address, Speed.Unit speedUnit, boolean trimReverseSpeed, int warmUpForwardSeconds, int warmUpReverseSeconds, PowerManager powerManager, JLabel statusLabel, JButton startStopButton)
      Constructor for the abstract SpeedMatcherConfig at the core of any Speed Matcher Config
      Parameters:
      address - Address of locomotive to speed match
      speedUnit - Speed.Unit to speed match the locomotive in
      trimReverseSpeed - Set to true to trim the locomotive's reverse speed, false otherwise
      warmUpForwardSeconds - Number of seconds to warm up the locomotive before forward speed matching; set to 0 to skip the forward warm up
      warmUpReverseSeconds - Number of seconds to warm up the locomotive before trimming revers speed; set to 0 to skip the reverse warm up
      powerManager - PowerManager for turning on the DCC system power
      statusLabel - JLabel status label in the SpeedoConsoleFrame
      startStopButton - JButton for starting and stopping speed matching