mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-08 21:30:57 +00:00
comment and whitespace changed only
This commit is contained in:
1 parent
09a95b75d5
commit
f20dc0f5c4
5 files changed
+17
-8
No files matched your search
+8
-7
@@ -24,16 +24,17 @@ public class RaceColumnDTO extends NamedDTO implements Serializable {
|
||||
private double effectiveFactor;
|
||||
|
||||
/**
|
||||
* If the column has tracked races attached, this field tells the latest time point when one of those races was
|
||||
* still running. It is necessary for the race to have GPS and wind data for the time point to be recorded here. If
|
||||
* a tracked race has started but hasn't ended yet, the query time point is used for this field if it is after the
|
||||
* time point when that race started, assuming that at the query time the race was still running. If the race hasn't
|
||||
* started at the query time, the race isn't considered for setting this field. If the end of the race is known, it
|
||||
* is used for this field if later than any other value set for this field.
|
||||
* For each fleet, if the column has a tracked races attached for that fleet, this field tells the latest time point
|
||||
* when that race was still running. It is necessary for the race to have GPS and wind data for the time point to be
|
||||
* recorded here. If a tracked race has started but hasn't ended yet, the query time point is used for this field if
|
||||
* it is after the time point when that race started, assuming that at the query time the race was still running. If
|
||||
* the race hasn't started at the query time, the race isn't considered for setting this field. If the end of the
|
||||
* race is known, it is used for this field if later than any other value set for this field.
|
||||
* <p>
|
||||
*
|
||||
* If no tracked race is attached to this column or none of the tracked races attached has started at the query time
|
||||
* point, this field is <code>null</code>.<p>
|
||||
* point, this field is <code>null</code>.
|
||||
* <p>
|
||||
*
|
||||
* Note that the {@link Date} objects in here are in "server time" and must never be directly compared to an
|
||||
* uncorrected client time because the client's clock may have a significant offset to the server time.
|
||||
|
||||
+1
@@ -1040,6 +1040,7 @@ public abstract class AbstractSimpleLeaderboardImpl implements Leaderboard, Race
|
||||
result.addRace(raceColumn.getName(), raceColumn.getExplicitFactor(), raceColumn.getFactor(), fleetDTO,
|
||||
raceColumn.isMedalRace(), raceIdentifier, race);
|
||||
if (latestTimePointAfterQueryTimePointWhenATrackedRaceWasLive != null) {
|
||||
// TODO Bug 1351: unify this with the similar calculation performed in StrippedLeaderboardDTO.createStrippedLeaderboardDTO
|
||||
raceColumnDTO.setWhenLastTrackedRaceWasLive(fleetDTO,
|
||||
latestTimePointAfterQueryTimePointWhenATrackedRaceWasLive.asDate());
|
||||
}
|
||||
|
||||
+6
@@ -182,6 +182,12 @@ DynamicTrackedRace, GPSTrackListener<Competitor, GPSFixMoving> {
|
||||
return (DynamicGPSFixTrack<Mark, GPSFix>) super.getOrCreateTrack(mark);
|
||||
}
|
||||
|
||||
/**
|
||||
* In addition to creating the track which is performed by the superclass implementation, this implementation registers
|
||||
* a {@link GPSTrackListener} with the mark's track and {@link #notifyListeners(GPSFix, Mark) notifies the listeners}
|
||||
* about updates. The {@link #updated(TimePoint)} method is <em>not</em> called with the mark fix's time point because
|
||||
* mark fixes may be received also from marks that don't belong to this race.
|
||||
*/
|
||||
@Override
|
||||
protected DynamicGPSFixTrackImpl<Mark> createMarkTrack(Mark mark) {
|
||||
DynamicGPSFixTrackImpl<Mark> result = super.createMarkTrack(mark);
|
||||
|
||||
+1
@@ -1762,6 +1762,7 @@ public class SailingServiceImpl extends ProxiedRemoteServiceServlet implements S
|
||||
final FleetDTO fleetDTO = baseDomainFactory.convertToFleetDTO(fleet);
|
||||
RaceColumnDTO raceColumnDTO = leaderboardDTO.addRace(raceColumn.getName(), raceColumn.getExplicitFactor(), raceColumn.getFactor(),
|
||||
fleetDTO, raceColumn.isMedalRace(), raceIdentifier, raceDTO);
|
||||
// TODO Bug 1351: unify this with the similar calculation performed in AbstractSimpleLeaderboardImpl.computeDTO
|
||||
if (latestTimePointAfterQueryTimePointWhenATrackedRaceWasLive != null) {
|
||||
raceColumnDTO.setWhenLastTrackedRaceWasLive(fleetDTO, latestTimePointAfterQueryTimePointWhenATrackedRaceWasLive.asDate());
|
||||
}
|
||||
|
||||
+1
-1
@@ -130,7 +130,7 @@ public class LeaderboardGroupPanel extends SimplePanel implements HasWelcomeWidg
|
||||
LeaderboardGroupPanel.this.leaderboardGroup = leaderboardGroupDTO;
|
||||
// in case there is a regatta leaderboard in the leaderboard group
|
||||
// we need to know the corresponding regatta structure
|
||||
if(leaderboardGroup.containsRegattaLeaderboard()) {
|
||||
if (leaderboardGroup.containsRegattaLeaderboard()) {
|
||||
sailingService.getRegattas(new AsyncCallback<List<RegattaDTO>>() {
|
||||
@Override
|
||||
public void onSuccess(List<RegattaDTO> regattaDTOs) {
|
||||
|
||||
Reference in new issue
Block a user