Merge remote-tracking branch 'server/master'

This commit is contained in:
Axel Uhl committed 2012-07-19 17:18:32 +02:00
commit 1b6187e058
9 files changed
+53 -3

No files matched your search

@@ -1362,7 +1362,8 @@ public class SailingServiceImpl extends RemoteServiceServlet implements SailingS
speedWithBearing==null?null:createSpeedWithBearingDTO(speedWithBearing), windDTO, tack, legType, extrapolated);
}
@Override
@SuppressWarnings("deprecation")
@Override
public RaceTimesInfoDTO getRaceTimesInfo(RaceIdentifier raceIdentifier) {
RaceTimesInfoDTO raceTimesInfo = null;
TrackedRace trackedRace = getExistingTrackedRace(raceIdentifier);
@@ -1424,7 +1425,30 @@ public class SailingServiceImpl extends RemoteServiceServlet implements SailingS
legNumber++;
}
}
}
}
// special instrumentation for strange race times
if(raceTimesInfo.startOfTracking != null) {
boolean allDatesAtSameDay = true;
int initialDay = raceTimesInfo.startOfTracking.getDay();
if(raceTimesInfo.startOfRace != null && raceTimesInfo.startOfRace.getDay() != initialDay) {
allDatesAtSameDay = false;
}
if(raceTimesInfo.newestTrackingEvent != null && raceTimesInfo.newestTrackingEvent.getDay() != initialDay) {
allDatesAtSameDay = false;
}
if(raceTimesInfo.endOfTracking != null && raceTimesInfo.endOfTracking.getDay() != initialDay) {
allDatesAtSameDay = false;
}
if(raceTimesInfo.endOfRace != null && raceTimesInfo.endOfRace.getDay() != initialDay) {
allDatesAtSameDay = false;
}
if(!allDatesAtSameDay) {
logger.warning("Not all raceTimeInfos times are at the same day.");
logger.warning(raceTimesInfo.toString());
}
}
return raceTimesInfo;
}
@@ -4,6 +4,7 @@ import com.google.gwt.user.client.rpc.IsSerializable;
import com.sap.sailing.domain.common.LegType;
public class LegInfoDTO extends NamedDTO implements IsSerializable {
public int legNumber;
public LegType legType;
@@ -15,4 +16,11 @@ public class LegInfoDTO extends NamedDTO implements IsSerializable {
public LegInfoDTO(int legNumber) {
this.legNumber = legNumber;
}
@Override
public String toString() {
return "LegInfoDTO [name=" + name + ", legNumber=" + legNumber
+ ", legType=" + legType + ", legBearingInDegrees="
+ legBearingInDegrees + "]";
}
}
@@ -19,4 +19,11 @@ public class MarkPassingTimesDTO extends NamedDTO implements IsSerializable {
public MarkPassingTimesDTO(String name) {
this.name = name;
}
@Override
public String toString() {
return "MarkPassingTimesDTO [firstPassingDate=" + firstPassingDate
+ ", lastPassingDate=" + lastPassingDate + ", name=" + name
+ "]";
}
}
@@ -8,7 +8,7 @@ import com.google.gwt.user.client.rpc.IsSerializable;
import com.sap.sailing.domain.common.RaceIdentifier;
public class RaceTimesInfoDTO implements IsSerializable {
private RaceIdentifier raceIdentifier;
private RaceIdentifier raceIdentifier;
public List<LegInfoDTO> legInfos;
@@ -103,4 +103,15 @@ public class RaceTimesInfoDTO implements IsSerializable {
public void setMarkPassingTimes(List<MarkPassingTimesDTO> markPassingTimes) {
this.markPassingTimes = markPassingTimes;
}
@Override
public String toString() {
return "RaceTimesInfoDTO [raceIdentifier=" + raceIdentifier
+ ", legInfos=" + legInfos + ", markPassingTimes="
+ markPassingTimes + ", startOfRace=" + startOfRace
+ ", startOfTracking=" + startOfTracking + ", endOfTracking="
+ endOfTracking + ", endOfRace=" + endOfRace
+ ", newestTrackingEvent=" + newestTrackingEvent
+ ", delayToLiveInMs=" + delayToLiveInMs + "]";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB