made compilable by adding all necessary implementations of waypointAdded/waypointRemoved in all RaceChangeListeners

This commit is contained in:
Axel Uhl committed 2014-06-21 22:38:12 +02:00
1 parent bed511e75b
commit 62d9632980
4 files changed
+40

No files matched your search

@@ -103,6 +103,16 @@ public class LeaderboardCacheManager {
removeFromCache(leaderboard);
}
@Override
public void waypointAdded(int zeroBasedIndex, Waypoint waypointThatGotAdded) {
removeFromCache(leaderboard);
}
@Override
public void waypointRemoved(int zeroBasedIndex, Waypoint waypointThatGotRemoved) {
removeFromCache(leaderboard);
}
@Override
public void delayToLiveChanged(long delayToLiveInMillis) {
removeFromCache(leaderboard);
@@ -677,6 +677,16 @@ public class TrackBasedEstimationWindTrackImpl extends VirtualWindTrackImpl impl
clearCache();
}
@Override
public void waypointAdded(int zeroBasedIndex, Waypoint waypointThatGotAdded) {
clearCache();
}
@Override
public void waypointRemoved(int zeroBasedIndex, Waypoint waypointThatGotRemoved) {
clearCache();
}
@Override
public void markPositionChanged(GPSFix fix, Mark mark) {
assert fix != null && fix.getTimePoint() != null;
@@ -198,6 +198,16 @@ public class TrackedLegImpl implements TrackedLeg, RaceChangeListener {
clearCaches();
}
@Override
public void waypointAdded(int zeroBasedIndex, Waypoint waypointThatGotAdded) {
clearCaches(); // necessary because the competitor tracks ordered by rank may change for legs adjacent to the waypoint added
}
@Override
public void waypointRemoved(int zeroBasedIndex, Waypoint waypointThatGotRemoved) {
clearCaches(); // necessary because the competitor tracks ordered by rank may change for legs adjacent to the waypoint removed
}
@Override
public void statusChanged(TrackedRaceStatus newStatus) {
// no-op; the leg doesn't mind the tracked race's status being updated
@@ -1328,6 +1328,16 @@ public class RacingEventServiceImpl implements RacingEventServiceWithTestSupport
public void raceTimesChanged(TimePoint startOfTracking, TimePoint endOfTracking, TimePoint startTimeReceived) {
replicate(new UpdateRaceTimes(getRaceIdentifier(), startOfTracking, endOfTracking, startTimeReceived));
}
@Override
public void waypointAdded(int zeroBasedIndex, Waypoint waypointThatGotAdded) {
// no-op; the course change is replicated by the separate CourseChangeReplicator
}
@Override
public void waypointRemoved(int zeroBasedIndex, Waypoint waypointThatGotRemoved) {
// no-op; the course change is replicated by the separate CourseChangeReplicator
}
@Override
public void delayToLiveChanged(long delayToLiveInMillis) {