Class SpeedStepScaleSpeedMatcherFactory
java.lang.Object
jmri.jmrix.bachrus.speedmatcher.speedStepScale.SpeedStepScaleSpeedMatcherFactory
Factory for creating the correct type of Speed Step Scale speed matcher for
the given SpeedMatcherConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SpeedMatchergetSpeedMatcher(SpeedStepScaleSpeedMatcherConfig.SpeedTable speedTable, SpeedStepScaleSpeedMatcherConfig config) Gets the correct Speed Step Scale Speed Matcher for the given speedTable
-
Constructor Details
-
SpeedStepScaleSpeedMatcherFactory
public SpeedStepScaleSpeedMatcherFactory()
-
-
Method Details
-
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
-