Commit Graph
2643 Commits
Author SHA1 Message Date
Axel Uhl 9c5bf2c3b1 switched from "windward distance to leader" to "windward distance to competitor farthest ahead" 2015-05-28 17:10:04 +02:00
Axel Uhl f522527d65 accelerated chart calculations by pre-calculating RankingInfo beforehand, then sharing 2015-05-28 16:12:09 +02:00
Axel Uhl c9a43c5781 cache leg info about boat farthest ahead and calculate and cache the leader by calculated time for the leg in RankingInfo 2015-05-28 15:15:36 +02:00
Axel Uhl f11c534892 compute current VMG only if average VMG is not available 2015-05-28 14:33:09 +02:00
Axel Uhl e4e00fa228 turned competitorTracksOrderedByRank into a ConcurrentHashMap, avoiding synchronization 2015-05-28 14:32:35 +02:00
Axel Uhl 30a3b66c53 default time-on-time and time-on-distance values to 1.0 / 0.0, respectively, in BaseRegattaLinkImpl 2015-05-28 11:41:45 +02:00
Axel Uhl 82757a685c pass RankingInfo through to getLegGapToLegLeaderInOwnTime as a preparation for a performance fix 2015-05-28 10:54:39 +02:00
Axel Uhl 38d757e9ff Merge branch 'master' into bug1018 2015-05-28 10:18:12 +02:00
Axel Uhl df3deb1a15 fixed bracing/indentation after cherry-picking commit 8cf239e31a 2015-05-27 17:59:22 +02:00
Axel Uhl 6a20efa1d9 fixing bug 2906: wind listeners didn't get de-registered proprely when removing a race and when re-starting the wind status servlet;
this should solve the problem with duplicate key exceptions hammering the DB

Conflicts:
	java/com.sap.sailing.domain/src/com/sap/sailing/domain/markpassingcalculation/impl/WaypointPositionAndDistanceCache.java
	java/com.sap.sailing.domain/src/com/sap/sailing/domain/ranking/AbstractRankingMetric.java
2015-05-27 17:57:20 +02:00
Axel Uhl a6fa795f1f enhanced Javadoc and REST API doc for target time estimation 2015-05-27 17:29:07 +02:00
Axel Uhl 19c54b8076 started to work on bug 1447 by adding Series.addRaceColumn flavor that accepts an insert index
Conflicts:
	java/com.sap.sailing.gwt.ui/.settings/com.google.gwt.eclipse.core.prefs
	java/com.sap.sailing.gwt.ui/SailingGWT sdm.launch
2015-05-27 17:28:14 +02:00
Axel Uhl c0e55a5b56 added Javadoc to TrackedRace 2015-05-21 16:05:02 +02:00
Axel Uhl 6304504e3c added column for correctedTimeAtEstimatedArrivalAtCompetitorFarthestAhead (see bug 2862) 2015-05-21 12:58:46 +02:00
Axel Uhl 51f7f9f0c4 one more usage of WindLegTypeAndLegBearingCache 2015-05-21 12:57:17 +02:00
Axel Uhl d3073529ff fixed gap change in own time, making a distinction between first and other legs 2015-05-21 08:39:02 +02:00
Axel Uhl 378d5f48cb fixing severe bug in time traveled on TrackedLegOfCompetitorImpl; the column kept counting, even after leg finishing time 2015-05-20 23:34:15 +02:00
Axel Uhl f7d72e7ab3 added corrected time columns (see bug 2862) 2015-05-20 22:45:42 +02:00
Axel Uhl 9bc3fddebc avoid reducing windward distance traveled in case a competitor is at the mark rounding and has a negative windward distance traveled for the current leg 2015-05-20 18:03:58 +02:00
Axel Uhl 2d11ab9a31 fixed calculation bug in TimeOnTimeAndDistanceRankingMetric 2015-05-20 17:50:17 +02:00
Axel Uhl cf09647e00 fixed issues with competitors who didn't start a leg yet; added toString() for TrackedLeg and TrackedLegOfCompetitor 2015-05-20 17:07:05 +02:00
Axel Uhl 96988ae292 an untested attempt to compute the gap to leader for a leg for TimeOnTimeAndDistanceRankingMetric; still square effort; extraction of pre-calculation still missing 2015-05-20 16:13:09 +02:00
Axel Uhl 132061a181 fixed some aspects of already finished legs and race 2015-05-19 18:24:07 +02:00
Axel Uhl 0ad2425617 also adapted gap chart to gap in own time 2015-05-19 16:01:19 +02:00
Axel Uhl 53ba99f9aa added null safety in gap in own time calculation; no need to pass RankingInfo for gap change calculation 2015-05-19 15:13:01 +02:00
Axel Uhl 3654444570 renamed method that returns a Duration so it isn't called ...AsSeconds 2015-05-19 12:54:24 +02:00
Axel Uhl 775f01a7f6 gap to leader and gap at end of previous leg are now defined through the ranking metric's gap to leader in own time 2015-05-19 12:46:49 +02:00
Axel Uhl 7b0409497c omitted redundant outer class name 2015-05-19 10:10:06 +02:00
Axel Uhl 958ecaba1a added cache to gap calculation for LegEntryDTO 2015-05-19 10:07:13 +02:00
Axel Uhl 5e257f3cb5 Merge branch 'master' into bug1018 2015-05-19 08:57:21 +02:00
Axel Uhl 8679fb4450 use PassingInstruction.None during TracTrac control point construction 2015-05-19 08:50:38 +02:00
Axel Uhl f948ce36c3 consolidated imports to avoid warnings 2015-05-19 02:19:10 +02:00
Axel Uhl 963664727d when overstaying the lay lines, count at most the leg's windward distance 2015-05-19 02:09:56 +02:00
Axel Uhl e3d3d2c906 eliminated a few more NPEs and ranking/farthest-along inconsistencies 2015-05-19 01:32:34 +02:00
Axel Uhl b31fb1be1b using a separate comparator to determine "farthest ahead"; RaceRankComparator is slightly inconsistent with TimeOnTimeAndDistance's notion of windward distance traveled 2015-05-19 00:35:10 +02:00
Axel Uhl ff5b049cda trying to fix bug 2860 by first obtaining the course read lock before obtaining the mark passing lock 2015-05-18 18:41:12 +02:00
Axel Uhl 470d6fe805 added symmetrical absolute/signed windward distance methods on tracked leg and AbstractRankingMetric 2015-05-18 18:40:05 +02:00
Axel Uhl e4b724142a trying to fix bug 2860 by first obtaining the course read lock before obtaining the mark passing lock 2015-05-18 18:39:00 +02:00
Axel Uhl 0e972c67e3 use absolute instead of signed windward distance to determine how far a competitor traveled 2015-05-18 17:57:34 +02:00
Axel Uhl fe368b66f3 use LeaderboardDTOCalculationReuseCache instead of NoCachingWindLegTypeAndLegBearingCache to really utilize the benefits of caching 2015-05-18 16:17:07 +02:00
Axel Uhl 10faa84ca3 Merge branch 'master' into bug1018 2015-05-18 14:41:27 +02:00
Axel Uhl ec861bebba fixing bug 2858 by comparing ControlPoint *and* PassingInstruction 2015-05-18 14:16:25 +02:00
Axel Uhl 0923fb203d added some null-safety to CandidateFinderImpl; see also bug 2857 2015-05-18 12:48:05 +02:00
Axel Uhl 3511a1f978 added more null-safety to TimeOnTimeAndDistanceRankingMetric 2015-05-18 12:47:47 +02:00
Axel Uhl e36ba93827 avoid NPE in time-on-time/time-on-distance leg comparator if no competitor is in that leg yet 2015-05-16 20:04:10 +02:00
Axel Uhl 1b15c463ec handled a bunch of null cases for TimeOnTimeAndDistance... ranking metric; there are more, e.g., in case no boats are in a leg for which a comparator is needed 2015-05-14 23:36:39 +02:00
Axel Uhl ba1fceecaa added fields to capture time-on-time / time-on-distance on competitor and pass values through all constructors and operations and JSON serialization 2015-05-14 20:10:20 +02:00
Axel Uhl 5885a03e33 Merge branch 'master' into bug1018 2015-05-13 18:52:43 +02:00
Axel Uhl 0c72ff9619 introduced fields for RankingMetric subclass constructors to avoid class loader issues in test fragments 2015-05-13 14:49:19 +02:00
Jens Rommel 7a2c02716f - Added filter logic to exclude media tracks not related to the scope of the current master data export.
- Extended tests.
2015-05-13 13:53:44 +02:00