diff --git a/java/com.sap.sailing.domain.common/src/com/sap/sailing/domain/common/dto/RaceColumnDTO.java b/java/com.sap.sailing.domain.common/src/com/sap/sailing/domain/common/dto/RaceColumnDTO.java index b9adc6ed4ec..c83a963198c 100755 --- a/java/com.sap.sailing.domain.common/src/com/sap/sailing/domain/common/dto/RaceColumnDTO.java +++ b/java/com.sap.sailing.domain.common/src/com/sap/sailing/domain/common/dto/RaceColumnDTO.java @@ -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. *
*
* 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 null.
+ * point, this field is null.
+ *
*
* 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.
diff --git a/java/com.sap.sailing.domain/src/com/sap/sailing/domain/leaderboard/impl/AbstractSimpleLeaderboardImpl.java b/java/com.sap.sailing.domain/src/com/sap/sailing/domain/leaderboard/impl/AbstractSimpleLeaderboardImpl.java
index 58068f80a9d..33957e276da 100755
--- a/java/com.sap.sailing.domain/src/com/sap/sailing/domain/leaderboard/impl/AbstractSimpleLeaderboardImpl.java
+++ b/java/com.sap.sailing.domain/src/com/sap/sailing/domain/leaderboard/impl/AbstractSimpleLeaderboardImpl.java
@@ -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());
}
diff --git a/java/com.sap.sailing.domain/src/com/sap/sailing/domain/tracking/impl/DynamicTrackedRaceImpl.java b/java/com.sap.sailing.domain/src/com/sap/sailing/domain/tracking/impl/DynamicTrackedRaceImpl.java
index 3f0f880cb38..13434095aab 100755
--- a/java/com.sap.sailing.domain/src/com/sap/sailing/domain/tracking/impl/DynamicTrackedRaceImpl.java
+++ b/java/com.sap.sailing.domain/src/com/sap/sailing/domain/tracking/impl/DynamicTrackedRaceImpl.java
@@ -182,6 +182,12 @@ DynamicTrackedRace, GPSTrackListener>() {
@Override
public void onSuccess(List