Javadoc and refactoring of windinference,util,preprocessing,model.store

This commit is contained in:
Vladislav Chumak
2019-02-11 22:00:13 +01:00
parent 9146140e4c
commit f2204b2c20
67 changed files with 650 additions and 365 deletions
@@ -45,7 +45,7 @@ import com.sap.sailing.windestimation.data.RaceWithEstimationData;
import com.sap.sailing.windestimation.data.WindQuality;
import com.sap.sailing.windestimation.data.transformer.CompleteManeuverCurveWithEstimationDataToManeuverForEstimationTransformer;
import com.sap.sailing.windestimation.model.exception.ModelPersistenceException;
import com.sap.sailing.windestimation.model.store.ClassPathReadOnlyModelStore;
import com.sap.sailing.windestimation.model.store.ClassPathReadOnlyModelStoreImpl;
import com.sap.sailing.windestimation.preprocessing.RaceElementsFilteringPreprocessingPipelineImpl;
import com.sap.sailing.windestimation.windinference.DummyBasedTwsCalculatorImpl;
import com.sap.sailing.windestimation.windinference.MiddleCourseBasedTwdCalculatorImpl;
@@ -75,14 +75,14 @@ public class IncrementalMstHmmWindEstimationForTrackedRaceTest extends OnlineTra
protected final SimpleDateFormat dateFormat;
private final WindEstimationFactoryServiceImpl windEstimationFactoryService;
private ClassPathReadOnlyModelStore modelStore;
private ClassPathReadOnlyModelStoreImpl modelStore;
public IncrementalMstHmmWindEstimationForTrackedRaceTest()
throws MalformedURLException, URISyntaxException, ModelPersistenceException {
dateFormat = new SimpleDateFormat("MM/dd/yyyy-HH:mm:ss");
dateFormat.setTimeZone(TimeZone.getTimeZone("GMT+2")); // will result in CEST
windEstimationFactoryService = new WindEstimationFactoryServiceImpl();
modelStore = new ClassPathReadOnlyModelStore("trained_wind_estimation_models", getClass().getClassLoader(),
modelStore = new ClassPathReadOnlyModelStoreImpl("trained_wind_estimation_models", getClass().getClassLoader(),
modelFilesNames);
windEstimationFactoryService.importAllModelsFromModelStore(modelStore);
}
@@ -37,7 +37,7 @@ import com.sap.sailing.windestimation.model.classifier.maneuver.ManeuverClassifi
import com.sap.sailing.windestimation.model.classifier.maneuver.ManeuverFeatures;
import com.sap.sailing.windestimation.model.exception.ModelPersistenceException;
import com.sap.sailing.windestimation.model.regressor.twdtransition.GaussianBasedTwdTransitionDistributionCache;
import com.sap.sailing.windestimation.model.store.ClassPathReadOnlyModelStore;
import com.sap.sailing.windestimation.model.store.ClassPathReadOnlyModelStoreImpl;
import com.sap.sse.common.TimePoint;
import com.sap.sse.common.Util.Pair;
import com.sap.sse.common.impl.MillisecondsTimePoint;
@@ -52,13 +52,13 @@ import com.tractrac.subscription.lib.api.SubscriberInitializationException;
public class IncrementalMstManeuverGraphGeneratorTest extends OnlineTracTracBasedTest {
protected final SimpleDateFormat dateFormat;
private ClassPathReadOnlyModelStore modelStore;
private ClassPathReadOnlyModelStoreImpl modelStore;
public IncrementalMstManeuverGraphGeneratorTest()
throws MalformedURLException, URISyntaxException, ModelPersistenceException {
dateFormat = new SimpleDateFormat("MM/dd/yyyy-HH:mm:ss");
dateFormat.setTimeZone(TimeZone.getTimeZone("GMT+2")); // will result in CEST
modelStore = new ClassPathReadOnlyModelStore("trained_wind_estimation_models", getClass().getClassLoader(),
modelStore = new ClassPathReadOnlyModelStoreImpl("trained_wind_estimation_models", getClass().getClassLoader(),
IncrementalMstHmmWindEstimationForTrackedRaceTest.modelFilesNames);
}