From 57c44d3305eebb5e75284ffb7616c091e6b56cea Mon Sep 17 00:00:00 2001 From: Axel Uhl Date: Thu, 8 Mar 2012 15:48:07 +0100 Subject: [PATCH] fixed caching in wind estimation track --- .../tracking/impl/EstimatedWindFixesAsNavigableSet.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/java/com.sap.sailing.domain/src/com/sap/sailing/domain/tracking/impl/EstimatedWindFixesAsNavigableSet.java b/java/com.sap.sailing.domain/src/com/sap/sailing/domain/tracking/impl/EstimatedWindFixesAsNavigableSet.java index 7e4407e90a9..44509069a69 100755 --- a/java/com.sap.sailing.domain/src/com/sap/sailing/domain/tracking/impl/EstimatedWindFixesAsNavigableSet.java +++ b/java/com.sap.sailing.domain/src/com/sap/sailing/domain/tracking/impl/EstimatedWindFixesAsNavigableSet.java @@ -26,6 +26,10 @@ public class EstimatedWindFixesAsNavigableSet extends VirtualWindFixesAsNavigabl this(track, trackedRace, null, null); } + protected TrackBasedEstimationWindTrackImpl getTrack() { + return (TrackBasedEstimationWindTrackImpl) super.getTrack(); + } + /** * @param from expected to be an integer multiple of {@link #getResolutionInMilliseconds()} or null * @param to expected to be an integer multiple of {@link #getResolutionInMilliseconds()} or null @@ -36,7 +40,7 @@ public class EstimatedWindFixesAsNavigableSet extends VirtualWindFixesAsNavigabl } protected Wind getWind(Position p, TimePoint timePoint) { - return getTrackedRace().getEstimatedWindDirection(p, timePoint); + return getTrack().getEstimatedWindDirection(p, timePoint); } @Override