Class SpeedStepScaleSpeedMatcherFactory
- java.lang.Object
-
- jmri.jmrix.bachrus.speedmatcher.speedStepScale.SpeedStepScaleSpeedMatcherFactory
-
public class SpeedStepScaleSpeedMatcherFactory extends java.lang.Object
Factory for creating the correct type of Speed Step Scale speed matcher for the given SpeedMatcherConfig
-
-
Constructor Summary
Constructors Constructor Description SpeedStepScaleSpeedMatcherFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SpeedMatcher
getSpeedMatcher(SpeedStepScaleSpeedMatcherConfig.SpeedTable speedTable, SpeedStepScaleSpeedMatcherConfig config)
Gets the correct Speed Step Scale Speed Matcher for the given speedTable
-
-
-
Constructor Detail
-
SpeedStepScaleSpeedMatcherFactory
public SpeedStepScaleSpeedMatcherFactory()
-
-
Method Detail
-
getSpeedMatcher
public static SpeedMatcher getSpeedMatcher(SpeedStepScaleSpeedMatcherConfig.SpeedTable speedTable, SpeedStepScaleSpeedMatcherConfig config)
Gets the correct Speed Step Scale Speed Matcher for the given speedTable- Parameters:
speedTable
- SpeedStepScaleSpeedMatcherConfig.SpeedTable to use for speed matchingconfig
- SpeedStepScaleSpeedMatcherConfig for initializing the speed matcher- Returns:
- the SpeedMatcher to use for speed matching
-
-