mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-21 21:25:38 +00:00
bug5935: introduced "Discarded" as new dimension for race results
This commit is contained in:
+2
-1
@@ -271,4 +271,5 @@ CompetitorInLeaderboard=Competitor in Leaderboard
|
||||
CompetitorSailingDomainRetrieverChain=Competitors in Leaderboards
|
||||
SmoothedSpeed=Smoothed Speed
|
||||
RatioDistanceLongVsShortTack=Ratio distance long tack / short tack
|
||||
RatioDurationLongVsShortTack=Ratio duration long tack / short tack
|
||||
RatioDurationLongVsShortTack=Ratio duration long tack / short tack
|
||||
Discarded=Discarded
|
||||
+2
-1
@@ -269,4 +269,5 @@ CompetitorInLeaderboard=Teilnehmer aus Rangliste
|
||||
CompetitorSailingDomainRetrieverChain=Teilnehmer in Ranglisten
|
||||
SmoothedSpeed=Geglättete Geschwindigkeit
|
||||
RatioDistanceLongVsShortTack=Verhältnis gesegelte Distanz auf Streck- zu Holebug
|
||||
RatioDurationLongVsShortTack=Verhältnis gesegelte Dauer auf Streck- zu Holebug
|
||||
RatioDurationLongVsShortTack=Verhältnis gesegelte Dauer auf Streck- zu Holebug
|
||||
Discarded=Gestrichen
|
||||
+3
@@ -37,6 +37,9 @@ public interface HasRaceOfCompetitorContext {
|
||||
|
||||
@Dimension(messageKey="IRM")
|
||||
MaxPointsReason getMaxPointsReason();
|
||||
|
||||
@Dimension(messageKey="Discarded")
|
||||
boolean isDiscarded();
|
||||
|
||||
@Statistic(messageKey="DistanceAtStart", resultDecimals=2, ordinal=0)
|
||||
Distance getDistanceToStartLineAtStart();
|
||||
|
||||
+3
@@ -43,6 +43,9 @@ public interface HasRaceResultOfCompetitorContext {
|
||||
@Dimension(messageKey="IRM")
|
||||
public MaxPointsReason getMaxPointsReason();
|
||||
|
||||
@Dimension(messageKey="Discarded")
|
||||
boolean isDiscarded();
|
||||
|
||||
@Statistic(messageKey="NumberOfPodiumFinish", ordinal=3)
|
||||
public Boolean isPodiumFinish();
|
||||
|
||||
|
||||
+6
@@ -219,6 +219,12 @@ public class RaceOfCompetitorWithContext implements HasRaceOfCompetitorContext {
|
||||
return getTrackedRaceContext().getLeaderboardContext().getLeaderboard().getMaxPointsReason(competitor,
|
||||
getTrackedRaceContext().getRaceColumn(), MillisecondsTimePoint.now());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isDiscarded() {
|
||||
return getTrackedRaceContext().getLeaderboardContext().getLeaderboard().isDiscarded(competitor,
|
||||
getTrackedRaceContext().getRaceColumn(), MillisecondsTimePoint.now());
|
||||
}
|
||||
|
||||
@Override
|
||||
public Speed getSpeedWhenStarting() {
|
||||
|
||||
+6
@@ -293,6 +293,12 @@ public class RaceResultOfCompetitorWithContext implements HasRaceResultOfCompeti
|
||||
return getLeaderboard().getMaxPointsReason(competitor, raceColumn, MillisecondsTimePoint.now());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isDiscarded() {
|
||||
return getTrackedRaceContext().getLeaderboardContext().getLeaderboard().isDiscarded(competitor,
|
||||
getTrackedRaceContext().getRaceColumn(), MillisecondsTimePoint.now());
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean isPodiumFinish() {
|
||||
Leaderboard leaderboard = getLeaderboard();
|
||||
|
||||
Reference in New Issue
Block a user