Class SpeedTableStepSpeed

java.lang.Object
jmri.jmrix.bachrus.speedmatcher.speedStepScale.SpeedTableStepSpeed

public class SpeedTableStepSpeed extends Object
Wrapper class for a SpeedTableStep and its corresponding speed, including a toString override for use in a speed selector combobox.
  • Constructor Details

  • Method Details

    • getSpeedTableStep

      Gets this SpeedTableStepSpeed's SpeedTableStep
      Returns:
      this SpeedTableStepSpeed's SpeedTableStep
    • getSpeed

      public float getSpeed()
      Gets this SpeedTableStepSpeed's speed
      Returns:
      the Speed TableStepSpeed's speed
    • toString

      public String toString()
      Converts this SpeedTableStepSpeed to an I18N string.
      Overrides:
      toString in class Object
      Returns:
      a single decimal string of this SpeedTableStepSpeed's speed