bug5918: correcting comments and tooltip

This commit is contained in:
Lisa
2023-12-01 17:54:33 +01:00
parent 8554c5a6d0
commit 73b0d95e24
5 changed files with 11 additions and 6 deletions
@@ -344,9 +344,10 @@ public interface TrackedLegOfCompetitor extends Serializable {
TimePoint getTimePointNotAfterFinishingOfLeg(TimePoint timePoint);
/**
* If the difference between COG and next waypoint direction is smaller than the one between COG and wind direction
* For upwind: If the difference between COG and next waypoint direction is smaller than the one between COG and wind direction
* {@link TackType#LONGTACK long tack} is returned; if it is greater or equal {@link TackType#SHORTTACK short tack}.
* For other cases {@code null} is returned.
* For downwind: Similar to upwind but instead of "wind direction", one use the opposite direction. So where the wind is blowing to.
* For reaching: Similar to upwind but instead of comparing to "COG and wind direction", one use 10°. To see more differences.
*
* @return {@code null} if {@link TimePoint} does not fit with current leg, or waypoint is {@code null}, or wind is
* {@code null}, or competitor position is {@code null}.
@@ -507,6 +507,8 @@ public class DetailTypeFormatter {
return stringMessages.degreesUnit();
case EXPEDITION_RACE_MAST_BUTT:
return stringMessages.millimetersUnit();
case LEG_TACKTYPE_LONGTACK_SHORTTACK:
return stringMessages.tackTypeUnit();
// Cases for detail types without unit, so that an empty string is returned.
case RACE_RANK:
case REGATTA_RANK:
@@ -596,7 +598,6 @@ public class DetailTypeFormatter {
case EXPEDITION_LEG_JIB_CAR_PORT:
case EXPEDITION_LEG_JIB_CAR_STBD:
case EXPEDITION_LEG_MAST_BUTT:
case LEG_TACKTYPE_LONGTACK_SHORTTACK:
return "";
}
// Throwing an exception to get notified if an implementation of
@@ -2441,6 +2441,7 @@ public interface StringMessages extends com.sap.sse.gwt.client.StringMessages,
String scoringSchemeLowPointWithEliminatingMedalSeriesPromotingOneToFinalAndTwoToSemifinalDescription();
String incrementalScoreCorrectionInPoints();
String errorObtainingCourseAreasForLeaderboard(String leaderboardName, String message);
String tackType();
String tackTypeUnit();
String tackTypeTooltip();
String tackType();
}
@@ -2479,4 +2479,5 @@ scoringSchemeLowPointWithEliminatingMedalSeriesPromotingOneToFinalAndTwoToSemifi
incrementalScoreCorrectionInPoints=Incremental score correction (points)
errorObtainingCourseAreasForLeaderboard=Error obtaining course areas for leaderboard {0}: {1}
tackType=Long / short tack
tackTypeTooltip=Showing long tack as 1.0, short tack as -1.0 and unknown as 0.0
tackTypeTooltip=For upwind: If the difference between COG and next waypoint direction is smaller than the one between COG and wind direction it is long tack (1.0); if it is smaller short tack (-1.0). For downwind: Similar to upwind but instead of "wind direction", one use the opposite direction. So where the wind is blowing to. For reaching: Similar to upwind but instead of comparing to "COG and wind direction", one use 10°.
tackTypeUnit=L=1.0, S=-1.0, Unknown=0.0
@@ -2475,4 +2475,5 @@ scoringSchemeLowPointWithEliminatingMedalSeriesPromotingOneToFinalAndTwoToSemifi
incrementalScoreCorrectionInPoints=Inkrementelle Punktestrafe
errorObtainingCourseAreasForLeaderboard=Fehler beim Abfragen der Bahnkreise zur Veranstaltung der Rangliste {0}: {1}
tackType=Streck-/Holebug
tackTypeTooltip=Zeigt Streckbug als Wert 1.0, Holebug als -1.0 und unbekannte Fälle als 0.0 an.
tackTypeTooltip=Für Amwind: Wenn der Unterschied zwischen KüG und Peilung zur nächsten Bahnmarke kleiner ist als KüG und Windrichtung, handelt es sich um Streckbug (1.0); wenn es kleiner ist Holebug (-1.0). Für Vorwind: Ähnlich wie zur Kreuz aber statt "Windrichtung" nutzt man die gegenteiligen Richtung. Also die, wo der Wind hin weht. Für Halbwind: Ähnlich wie zur Kreuz, aber statt "KüG und Windrichtung" nutzt man 10°.
tackTypeUnit=S=1.0, H=-1.0, Unbekannt=0.0