mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-17 01:31:01 +00:00
Now, the getAllPathsEvenTimed method "ignores" the "7#GPS Track".
This commit is contained in:
1 parent
fc10104731
commit
c60b84301a
1 file changed
+6
-18
+6
-18
@@ -209,22 +209,6 @@ public class SailingSimulatorImpl implements SailingSimulator {
|
||||
return allPaths;
|
||||
}
|
||||
|
||||
// @Override
|
||||
// public Map<String, List<TimedPositionWithSpeed>> getAllPathsEvenTimed(final long millisecondsStep) {
|
||||
//
|
||||
// final Map<String, List<TimedPositionWithSpeed>> allTimedPaths = new TreeMap<String,
|
||||
// List<TimedPositionWithSpeed>>();
|
||||
//
|
||||
// final Map<String, Path> allPaths = this.getAllPaths();
|
||||
// for (final Entry<String, Path> entry : allPaths.entrySet()) {
|
||||
// final String key = entry.getKey();
|
||||
// final Path value = entry.getValue();
|
||||
// allTimedPaths.put(key, value.getEvenTimedPath(millisecondsStep));
|
||||
// }
|
||||
//
|
||||
// return allTimedPaths;
|
||||
// }
|
||||
|
||||
@Override
|
||||
public Path getRaceCourse() {
|
||||
return this.racecourse;
|
||||
@@ -238,10 +222,14 @@ public class SailingSimulatorImpl implements SailingSimulator {
|
||||
|
||||
for (final Entry<String, Path> entry : allPaths.entrySet()) {
|
||||
|
||||
final String key = entry.getKey();
|
||||
final String pathName = entry.getKey();
|
||||
final Path value = entry.getValue();
|
||||
|
||||
allTimedPaths.put(key, value.getEvenTimedPath(millisecondsStep));
|
||||
if (pathName.equals("7#GPS Track")) {
|
||||
allTimedPaths.put(pathName, value);
|
||||
} else {
|
||||
allTimedPaths.put(pathName, value.getEvenTimedPath(millisecondsStep));
|
||||
}
|
||||
}
|
||||
|
||||
return allTimedPaths;
|
||||
|
||||
Reference in new issue
Block a user