prepared passing through of finishedTime from RaceLog through RaceState, RaceStateChangedListener to DynamicTrackedRaceLogListener into DynamicTrackedRace;

this as preparation for filtering the candidates in the CandidateFinder for a range a bit before start and a bit after finish

Change-Id: I8115950f041c9816def938cdf98b191525fbc426
This commit is contained in:
Axel Uhl committed 2016-04-29 15:56:21 +02:00
1 parent 3e055eeaff
commit e3866789d1
16 files changed
+252 -25

No files matched your search

@@ -1630,6 +1630,12 @@ public class RacingEventServiceImpl implements RacingEventService, ClearStateTes
// see raceTimesChanged(TimePoint, TimePoint, TimePoint).
}
@Override
public void finishedTimeChanged(TimePoint oldFinishedTime, TimePoint newFinishedTime) {
// no action required; the update signaled by this call is implicit; the race log
// updates that led to this change are replicated separately
}
@Override
public void waypointAdded(int zeroBasedIndex, Waypoint waypointThatGotAdded) {
// no-op; the course change is replicated by the separate CourseChangeReplicator
@@ -106,6 +106,11 @@ public class DummyTrackedRace extends TrackedRaceWithWindEssentials {
return null;
}
@Override
public TimePoint getFinishedTime() {
return null;
}
@Override
public TimePoint getEndOfRace() {
return null;
@@ -176,6 +176,12 @@ public class SimulationServiceImpl implements SimulationService {
// TODO: update leg 1
}
@Override
public void finishedTimeChanged(TimePoint oldFinishedTime, TimePoint newFinishedTime) {
// relevant for simulation? for last leg?
// TODO: update last leg?
}
@Override
public void windSourcesToExcludeChanged(Iterable<? extends WindSource> windSourcesToExclude) {
// relevant for simulation: update all legs when wind changes overall