Class BasicSpeedMatcherFactory
java.lang.Object
jmri.jmrix.bachrus.speedmatcher.basic.BasicSpeedMatcherFactory
Factory for creating the correct type of Basic speed matcher for the given
SpeedMatcherConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SpeedMatchergetSpeedMatcher(BasicSpeedMatcherConfig.SpeedTable speedTable, BasicSpeedMatcherConfig config) Gets the correct Basic Speed Matcher for the given speedTable
-
Constructor Details
-
BasicSpeedMatcherFactory
public BasicSpeedMatcherFactory()
-
-
Method Details
-
getSpeedMatcher
public static SpeedMatcher getSpeedMatcher(BasicSpeedMatcherConfig.SpeedTable speedTable, BasicSpeedMatcherConfig config) Gets the correct Basic Speed Matcher for the given speedTable- Parameters:
speedTable- BasicSpeedMatcherConfig.SpeedTable to use for speed matchingconfig- BasicSpeedMatcherConfig for initializing the speed matcher- Returns:
- the SpeedMatcher to use for speed matching
-