Now, the getAllPathsEvenTimed method "ignores" the "7#GPS Track".

This commit is contained in:
I077899 committed 2012-12-11 20:30:55 +02:00
1 parent fc10104731
commit c60b84301a
1 file changed
+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;