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
627e97d970
Merge branch 'master' into bug1018
...
Conflicts:
java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/client/StringMessages.java
java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/client/StringMessages.properties
java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/client/StringMessages_cn.properties
java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/client/StringMessages_de.properties
java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/client/StringMessages_ru.properties
2015-05-19 14:18:08 +02:00
Axel Uhl
c7589e4204
Merge remote-tracking branch 'server/master'
2015-05-19 12:58:28 +02:00
Axel Uhl
4a295068cb
fixing another null PassingInstruction issue after commit ec861bebba in SwissTimingReplayToDomainAdapter
2015-05-19 12:54:45 +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
9466219772
more formatting changes
2015-05-19 09:08:39 +02:00
Axel Uhl
25d3e25834
whitespace change only
2015-05-19 09:05:43 +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
e537d4e979
fixing SwissTimingAdapter DomainFactoryImpl which now has to use PassingInstruction.None to produce equal ControlPoint/PassingInstruction pairs
2015-05-19 08:40:32 +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
1b73732ab8
Merge branch 'master' into bug1018
2015-05-18 18:42:19 +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
1193fcd467
fixing bug 2847 by issuing a UUID for new GateDTO objects already in the client-side editor thanks to Lennart's fix allowing us to issue random UUIDs on the client
2015-05-18 14:40:29 +02:00
Axel Uhl
ec861bebba
fixing bug 2858 by comparing ControlPoint *and* PassingInstruction
2015-05-18 14:16:25 +02:00
Axel Uhl
8b6f420b73
fixed name for copied course
2015-05-18 13:10:22 +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
0262ae2657
trying to fix sporadically failing testStoreAndUpdateCompetitor test by adding a WriteConcern.SAFE to the competitor collection drop() method
2015-05-18 00:19:32 +02:00
Axel Uhl
8359e80f62
Merge branch 'master' into bug1018
2015-05-18 00:05:22 +02:00
Axel Uhl
f9b0b8a41c
some aftermath to bug 2846, factoring the race log analysis of the "from" race log out of the loop that copies it to the other race logs
2015-05-18 00:00:24 +02:00
Axel Uhl
df57dd1cb4
Merge branch 'master' into bug1018
2015-05-17 23:55:00 +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
059df3b17f
added columns to competitor table for handicap data
2015-05-14 21:09:54 +02:00
Axel Uhl
39c22eee86
fixed Double box creation in DataEntryDialog to also accept null/Double instead of double only
2015-05-14 20:30:05 +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
3e71dbe0a4
Merge remote-tracking branch 'server/master'
2015-05-13 18:51:30 +02:00
Axel Uhl
cb6168e7fa
use CONSTRUCTOR fields to avoid serialization problems in test fragments
2015-05-13 14:53:24 +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
Axel Uhl
744ea21d59
added ranking metric to the regatta creation dialog and map it through to the createRegatta call
2015-05-13 11:47:11 +02:00
Axel Uhl
7fd8e25083
fixed compile error (missing stringMessages)
2015-05-13 01:12:19 +02:00
Axel Uhl
1796bce690
use formatter for RankingMetric type name in RegattaListComposite column
2015-05-13 01:11:31 +02:00
Axel Uhl
d1ad77ea1a
fixed display of regatta detail panel by fixing the number of rows
2015-05-13 01:09:06 +02:00
Axel Uhl
19d570e49a
added formatter for ranking metrics and use it in regatta details panel
2015-05-13 00:56:34 +02:00
Axel Uhl
869967f5b6
Merge branch 'master' into bug1018
...
Conflicts:
java/com.sap.sailing.domain.test/src/com/sap/sailing/domain/test/mock/MockedTrackedRace.java
java/com.sap.sailing.domain.test/src/com/sap/sailing/domain/test/mock/MockedTrackedRaceWithStartTimeAndRanks.java
java/com.sap.sailing.domain/src/com/sap/sailing/domain/tracking/TrackedLeg.java
java/com.sap.sailing.domain/src/com/sap/sailing/domain/tracking/TrackedRace.java
java/com.sap.sailing.domain/src/com/sap/sailing/domain/tracking/impl/TrackedLegImpl.java
java/com.sap.sailing.gwt.ui.test/src/com/sap/sailing/gwt/ui/test/MockedTrackedRace.java
java/com.sap.sailing.server/src/com/sap/sailing/server/masterdata/DummyTrackedRace.java
The merge conflict was largely caused by the introduction of target time estimation which conflicted with a few
new methods introduced on branch bug1018
2015-05-13 00:21:21 +02:00
Axel Uhl
7542348d17
avoided the same locking issue previously fixed for revokeEvent now for closeOpenEndedDeviceMapping
2015-05-13 00:02:57 +02:00
Axel Uhl
06dfd7d56f
fixed a potential locking issue and avoided type cast problem
2015-05-12 23:52:32 +02:00
Axel Uhl
a8f19bddd8
fixing compile errors by exporting new package from shared.android bundle
2015-05-12 23:40:20 +02:00
Axel Uhl
e4e5b48b39
Merge branch 'master' into bug2686
2015-05-12 23:33:49 +02:00
Axel Uhl
7874d8a3e3
added 140x140px comment in BoatClassImageResolver
2015-05-12 23:30:20 +02:00
Axel Uhl
01e7fae911
fixed PIRAT.png image size (140x140 is the default size for boat class images)
2015-05-12 23:29:18 +02:00
Axel Uhl
a35a5909a2
added boat class PIRAT to BoatClassMasterData, also adding image, solving bug 2850
2015-05-12 23:21:06 +02:00
Axel Uhl
a9f43bf2f3
fixing bug 2849 by fixing the mismatch of username vs. e-mail address parameter semantics for MailService.sendMail
2015-05-12 22:19:31 +02:00
Axel Uhl
acb3b69878
added column to RegattaListComposite showing RankingMetric; moved a separate RankingMetrics enum to common to keep gwt.ui Java8-free
2015-05-12 22:04:45 +02:00
Axel Uhl
3b571bc17f
fixed test case; problem was that conversion from seconds to MillisecondDurationImpl was missing the factor 1000.
2015-05-12 13:38:04 +02:00
Axel Uhl
d66df2f633
fixed passing through of RankingMetricConstructor in test case
2015-05-12 13:32:57 +02:00
Axel Uhl
1a9ce82928
fixed NPE in handicap tests
2015-05-12 11:15:38 +02:00
Axel Uhl
b7e4b9bcbf
Merge branch 'master' into bug1018
2015-05-12 10:49:55 +02:00
Axel Uhl
33c63530c4
Merge remote-tracking branch 'server/master'
2015-05-12 10:40:52 +02:00
Axel Uhl
c576fafc98
fixing DynamicTrackedRaceImpl.recordWind interval check; avoid overflow in case endOfTracking equals end of time
2015-05-12 10:39:16 +02:00
Axel Uhl
3c0555eb0f
added persistence support for Regatta.getRankingMetric() and pulled the constructor parameter through many more constructor layers
2015-05-12 09:49:38 +02:00
Axel Uhl
e560191d82
wrote a test that compares the one-design metric's gap to leader in own time to the classic gap to leader, corrected to use average instead of current VMG
2015-05-11 19:49:58 +02:00
Axel Uhl
21f7f8491f
use average leg's VMG instead of current VMG to produce more robust results and generalize with other ranking metrics
2015-05-11 19:49:38 +02:00
Axel Uhl
870f38b9ba
fixed compilation error after refactoring from Map to Function
2015-05-11 16:18:32 +02:00
Axel Uhl
598aff2974
turned LeaderGetter into @FunctionalInterface and its implementations into lambdas
2015-05-11 08:21:14 +02:00
Axel Uhl
1990caec67
provided an efficient getRankingInfo implementation for one-design ranking
2015-05-11 08:09:33 +02:00
Axel Uhl
ada309e959
extracted interfaces for RankingInfo and CompetitorRankingInfo to prepare lazy implementation for OneDesignRankingMetric
2015-05-11 06:58:10 +02:00
Axel Uhl
8772c3a656
fixed calculation of gap in own time
2015-05-11 06:38:39 +02:00
Axel Uhl
38f9c9a411
use cache in TrackedRaceImpl.getOverallLeader
2015-05-11 06:38:29 +02:00
Axel Uhl
cfdac2743f
Merge branch 'master' into bug1018
2015-05-10 20:43:44 +02:00
Axel Uhl
4d73911ef4
Merge remote-tracking branch 'server/master'
2015-05-10 20:42:32 +02:00
Axel Uhl
9ac81241e7
use handicap setting event finders in BaseRegattaLikeImpl
2015-05-10 20:41:48 +02:00
Axel Uhl
b54bdccb16
added regatta log analyzers for handicap events
2015-05-10 20:38:15 +02:00
Axel Uhl
1dfc055e34
Merge branch 'master' into bug1018
...
Conflicts:
java/com.sap.sailing.domain/src/com/sap/sailing/domain/leaderboard/LeaderboardCacheManager.java
2015-05-08 18:27:39 +02:00
Axel Uhl
472ef70e18
added listener notification and leaderboard cache eviction for score correction comment / timepoint changes
2015-05-08 15:00:41 +02:00
Axel Uhl
7e50a5758f
Merge remote-tracking branch 'server/master'
2015-05-08 13:22:19 +02:00
Axel Uhl
704575bb2f
added persistence for regatta log handicap events; added regatta log handicap event implementations
2015-05-08 09:45:07 +02:00
Axel Uhl
ff4bb7e95e
added handicap methods also on IsRegattaLike implementations (delegation pattern); added RegattaLogEvents placeholders to override handicaps per regatta
2015-05-08 09:20:18 +02:00
Axel Uhl
e5b8da8e4b
removed unused RegattaLogEventImpl; added handicap methods on IsRegattaLike, with default implementations in BaseRegattaLikeImpl
2015-05-08 09:06:55 +02:00
Axel Uhl
c38bc10012
Merge remote-tracking branch 'origin/master'
2015-05-07 22:07:19 +02:00
Axel Uhl
ed2a106253
added some comments, preparing for using regatta log for overriding competitor handicap definitions
2015-05-07 10:06:23 +02:00
Axel Uhl
4768fe6682
Merge branch 'master' into bug1018
2015-05-07 09:57:04 +02:00
Axel Uhl
6e60ab622c
removed VideoGalleryShowcase.java; no idea how it slipped into commit d4012e2d44
2015-05-07 09:56:57 +02:00
Axel Uhl
26d178b3d9
added time-on-time and time-on-distance fields and listener pattern on Competitor/DynamicCompetitor
2015-05-07 09:56:16 +02:00
Axel Uhl
33c479260b
removed VideoGalleryShowcase.java; no idea how it slipped into commit d4012e2d44
2015-05-07 09:55:44 +02:00
Axel Uhl
ece7378c4f
Merge branch 'master' into bug1018
2015-05-07 09:26:04 +02:00
Axel Uhl
4ad561fda8
Merge remote-tracking branch 'server/master'
2015-05-07 09:20:26 +02:00
Axel Uhl
785072036e
whitespace removal only
2015-05-07 09:20:12 +02:00
Axel Uhl
083855695e
whitespace removal only
2015-05-07 09:19:43 +02:00
Axel Uhl
0baf7464d4
Merge remote-tracking branch 'server/master'
2015-05-06 15:48:26 +02:00
Axel Uhl
d4012e2d44
added an optional sample URL for the result providers
2015-05-06 15:47:42 +02:00