mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-08 05:11:04 +00:00
added missing file QuickRanksDTO
This commit is contained in:
1 parent
53f1e1b7d6
commit
01f3c3050b
1 file changed
+39
Executable
+39
@@ -0,0 +1,39 @@
|
||||
package com.sap.sailing.gwt.ui.shared;
|
||||
|
||||
import com.sap.sailing.domain.common.dto.CompetitorDTO;
|
||||
|
||||
/**
|
||||
* Combines a list of {@link QuickRankDTO} objects telling about the (calculated, according to any handicap ranking metric
|
||||
* in place)) ranks of the competitors with an information about the boat farthest ahead in the race. The latter is useful,
|
||||
* e.g., to draw an advantage line on this boat leading the race without considering any handicap ranking metric.
|
||||
*
|
||||
* @author Axel Uhl (D043530)
|
||||
*
|
||||
*/
|
||||
public class QuickRanksDTO {
|
||||
/**
|
||||
* Lists the competitors in the order of estimated calculated time when reaching the competitor farthest ahead.
|
||||
* This is the prediction for the ultimate calculated ranking.
|
||||
*/
|
||||
private final Iterable<QuickRankDTO> quickRanksAfterCalculatedTime;
|
||||
|
||||
/**
|
||||
* Lists the competitors according to their windward distance traveled. The first boat (rank 1) is the
|
||||
* competitor farthest ahead.
|
||||
*/
|
||||
private final Iterable<CompetitorDTO> competitorsInOrderOfWindwardDistanceTraveledFarthestFirst;
|
||||
|
||||
public QuickRanksDTO(Iterable<QuickRankDTO> quickRanks, Iterable<CompetitorDTO> competitorsInOrderOfWindwardDistanceTraveledFarthestFirst) {
|
||||
super();
|
||||
this.quickRanksAfterCalculatedTime = quickRanks;
|
||||
this.competitorsInOrderOfWindwardDistanceTraveledFarthestFirst = competitorsInOrderOfWindwardDistanceTraveledFarthestFirst;
|
||||
}
|
||||
|
||||
public Iterable<QuickRankDTO> getQuickRanks() {
|
||||
return quickRanksAfterCalculatedTime;
|
||||
}
|
||||
|
||||
public Iterable<CompetitorDTO> getCompetitorsInOrderOfWindwardDistanceTraveledFarthestFirst() {
|
||||
return competitorsInOrderOfWindwardDistanceTraveledFarthestFirst;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user