Commit Graph
1206 Commits
Author SHA1 Message Date
Armin Zamani 115deffab3 Merge branch 'master' into racecommittee_app 2013-05-21 22:40:53 +02:00
fmittag 28d569638a added the race rank caluculation in computeDTO() method of the AbstractSimpleLeaderboardImpl 2013-05-21 15:50:29 +02:00
Axel Uhl cd228d284c added Javadoc for Leaderboard.getLeaderboardDTO 2013-05-18 01:23:00 +02:00
Axel Uhl b3d1b55f0c initialize LeaderboardDTOCache lazily in AbstractSimpleLeaderboardImpl; during object construction, callbacks from LeaderboardDTOCache cause NPEs 2013-05-18 00:29:48 +02:00
Axel Uhl b25e4cde30 moved LeaderboardDTOCache into AbstractSimpleLeaderboardImpl and made specific to a single leaderboard 2013-05-18 00:06:17 +02:00
Axel Uhl 2290594a2b moved LiveLeaderboadUpdater to AbstractSimpleLeaderboardImpl 2013-05-17 22:37:45 +02:00
Axel Uhl 335863b3e1 moved LeaderboardDTOCache and LiveLeaderboardUpdater to domain bundle 2013-05-17 21:24:02 +02:00
Axel Uhl 336516d39c solved the unregistration of the cache invalidation listeners from the tracked races by introducing Leaderboard.destroy() 2013-05-17 21:14:56 +02:00
Axel Uhl 065274e01a Merge branch 'master' into bug1381
Conflicts:
	java/com.sap.sailing.simulator.test/src/com/sap/sailing/simulator/test/analysis/TestTimeComparison.java
2013-05-17 18:28:17 +02:00
Axel Uhl 69bb38d8e8 use Regatta ID as prefix for SwissTiming race ID to obtain a unique RaceDefinition ID although the SwissTiming raceIDs are not unique 2013-05-17 18:14:56 +02:00
Axel Uhl 7be163904d move CacheInvalidationListener removal to AbstractSimpleLeaderboardImpl's finalizer; won't work but compiles 2013-05-17 18:14:14 +02:00
Axel Uhl eee81238d1 moved leaderboard DTO computation to AbstractSimpleLeaderboardImpl; still lacking a solution for CacheInvalidationListener deregistration 2013-05-17 17:41:55 +02:00
Axel Uhl 1f465a24da working gradually towards moving leaderboard calculation and caching to domain bundle, away from GWT bundle 2013-05-17 16:29:18 +02:00
Lukas Niemeier 4ed2aa8af8 # change in DynamicTrackedRaceLogListener: pass change leads to new status and no start time 2013-05-16 17:01:24 +02:00
Lukas Niemeier 535258ece1 # comment fix 2013-05-16 15:55:50 +02:00
Lukas Niemeier 2f2416e973 # start time, course design and preparation for other status changes based on race log content 2013-05-16 15:54:26 +02:00
Lukas Niemeier 97ca5034fc # moved CourseDesignChanged Listener and Log Listener code to DynamicTrackedRace and its Impl 2013-05-16 15:28:32 +02:00
Axel Uhl b30bc8d755 added fix to set start time from race log also when tracked race is attached after the start time was set on the race log 2013-05-07 12:08:39 +02:00
Axel Uhl 21e43e7bdd hoping to fix bug 1370 with this, and hoping that asking the course read lock always before asking the mark passings lock doesn't cause more deadlocks yet 2013-04-29 02:48:36 +02:00
Axel Uhl 862d24ab86 fixed NPE in distance to stb side of start line 2013-04-28 20:12:58 +02:00
Axel Uhl f6e6e73524 added measure for distance to starboard end of start line at start 2013-04-26 20:43:30 +02:00
Axel Uhl 61a20b53f8 added another start analysis column, showing how far the boat is from the starboard end of the line 2013-04-26 18:39:47 +02:00
Axel Uhl afd449259b Merge branch 'master' into startanalysis
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_de.properties
2013-04-26 17:40:43 +02:00
Axel Uhl c5bb6761a5 use a serializable updateMonitor object; java.lang.Object wasn't... 2013-04-25 22:40:46 +02:00
Axel Uhl 060f6e32f3 with the excessive cnd redundant ourse updates sent by TracTrac, pulling the write lock only if the course actually changed;
This required adding a read lock around the check. To allow proper upgrading, the update(...) method uses
a monitor that serializes calls to update(...) and therefore allows the upgrade to happen atomically.
2013-04-25 21:21:47 +02:00
Axel Uhl 43328b2785 removed "synchronized" from CourseImpl.getWaypointForControlPoint; it uses the course's read lock instead 2013-04-25 20:44:46 +02:00
Axel Uhl 41145ca57a take over start time if received from Race Committee App 2013-04-25 05:47:06 +02:00
Armin Zamani 7e09008247 Merge branch 'master' into racecommittee_integrated 2013-04-23 19:11:29 +02:00
Lukas Niemeier dc63b554a5 # added RaceLogStartProcedureChangedEvent...
# ... and serializer...
# ... and deserializer...
# ... and persistence...
# ... and tests
2013-04-23 02:20:09 +02:00
Axel Uhl 1337e60f65 start analysis working in leaderboard; fixed Tack names and moved them to localization 2013-04-22 22:07:15 +02:00
Armin Zamani e6ddcadb36 Merge branch 'master' into racecommittee_integrated
Conflicts:
	java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/regattaoverview/FlagImageCell.java
2013-04-22 18:34:40 +02:00
Axel Uhl 426cebc599 fixed naming of Tack.PORT and Tack.STARBOARD by swapping the two literals, also in tests and boat visualization 2013-04-22 16:35:52 +02:00
Axel Uhl d1e464b832 added race detail columns for distance to line, speed at race start and speed when starting 2013-04-22 16:16:34 +02:00
Axel Uhl b70db297b7 compute distance to start line in TrackedRace 2013-04-22 15:06:09 +02:00
Fabian Tschirschnitz 3437581122 added gate line opening time feature to app. event post to server does still not work correctly. 2013-04-22 00:53:04 +02:00
Fabian Tschirschnitz 8e45e3a1b6 added gate start specific buttons (pathfinder and gatelineopeningtime) to ui. added pathfinder-event to domain. some other fixes. SORRY: serialization-test does not work. 2013-04-20 19:56:41 +02:00
Axel Uhl e261b745c4 avoid unnecessary use of expensive atan2 by doingi a simple wind speed scaling by direct multiplication 2013-04-19 13:33:39 +02:00
Axel Uhl c1d179e9ce bug 1348: use a fetcher pattern for the size of Leaderboard.getCompetitors() so it doesn't get computed unnecessarily;
this isn't the full solution to bug 1348 which would require smart caching with tricky cache invalidation,
particularly for meta-leaderboards. But it helps for all LowPoint scoring schemes.
2013-04-19 12:17:53 +02:00
Axel Uhl 0087190814 put SwissTiming races into state LOADING for scripted tests and TRACKING after script has finished to avoid excessive cache recalculations 2013-04-18 17:02:24 +02:00
Axel Uhl 0bf63c7530 fixing bug 1349; DynamicTrackedRace held back triggers for the maneuver cache when the race was in state LOADING;
This was superceded by the change to suspend and resume the caches while the race is in state LOADING.
However, when suspended, triggers need to be sent to the cache, or else it won't start an update for
those keys when resumed.

Note that this commit does not fix the "side-show" issue of prematurely switching a race to TRACKING state
even if there are events left in its queue.
2013-04-18 13:17:07 +02:00
Axel Uhl a67b6ce953 commented logging, surrounded possible FINEST logging with check for log level before assembling message 2013-04-18 13:12:52 +02:00
Axel Uhl a28cc9d26d comment change only 2013-04-18 13:06:55 +02:00
Axel Uhl a7dda22c09 towards solving bug 1348, prepare for caching of getCompetitors() in AbstractSimpleLeaderboardImpl 2013-04-18 13:05:42 +02:00
Axel Uhl ac02cea823 increased core pool size for thread pools; max pool size is only considered when queue is full, but we use unbounded queues... 2013-04-18 00:02:16 +02:00
Axel Uhl d8a7fabdd2 made SmartFutureCache's lock propagation robust against concurrent get() calls 2013-04-15 10:57:04 +02:00
Axel Uhl aaf1faad2c fixed logging in SmartFutureCache for lock propagation; so far, NPEs were likely to happen due to the logging 2013-04-14 13:24:27 +02:00
Axel Uhl 33204ccf4a Merge branch 'master' into smartfuturecachelockpropagation 2013-04-14 12:15:14 +02:00
Simon Pamies cdbcd1f9b6 Catching a NoWindException earlier than it normally would've been.
Comment explains why this is a no brainer and safe.
2013-04-14 00:46:28 +08:00
Axel Uhl 7604fa4956 provide what looks like a fix for bug 1344 2013-04-13 01:21:44 +02:00
Axel Uhl b704a21b81 changed name for mark passings locks 2013-04-12 13:05:07 +02:00