Class SpeedTableStepSpeed
- java.lang.Object
-
- jmri.jmrix.bachrus.speedmatcher.speedStepScale.SpeedTableStepSpeed
-
public class SpeedTableStepSpeed extends java.lang.Object
Wrapper class for a SpeedTableStep and its corresponding speed, including a toString override for use in a speed selector combobox.
-
-
Constructor Summary
Constructors Constructor Description SpeedTableStepSpeed(SpeedMatcher.SpeedTableStep speedTableStep)
Creates a SpeedTableStepSpeed from the given speedTableStep
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getSpeed()
Gets this SpeedTableStepSpeed's speedSpeedMatcher.SpeedTableStep
getSpeedTableStep()
Gets this SpeedTableStepSpeed's SpeedTableStepjava.lang.String
toString()
Converts this SpeedTableStepSpeed to a string
-
-
-
Constructor Detail
-
SpeedTableStepSpeed
public SpeedTableStepSpeed(SpeedMatcher.SpeedTableStep speedTableStep)
Creates a SpeedTableStepSpeed from the given speedTableStep- Parameters:
speedTableStep
- the SpeedTableStep to use
-
-
Method Detail
-
getSpeedTableStep
public SpeedMatcher.SpeedTableStep 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 java.lang.String toString()
Converts this SpeedTableStepSpeed to a string- Overrides:
toString
in classjava.lang.Object
- Returns:
- a single decimal string of this SpeedTableStepSpeed's speed
-
-