bug6069: added sailor profile connector to two more data mining types

This commit is contained in:
Axel Uhl
2024-11-13 18:07:58 +01:00
parent e7ff455676
commit 976138e970
2 changed files with 10 additions and 0 deletions
@@ -23,6 +23,11 @@ public interface HasRaceOfCompetitorContext {
@Statistic(messageKey="Competitor")
Competitor getCompetitor();
@Connector(messageKey="SailorProfile")
default public SailorProfile getSailorProfile() {
return getTrackedRaceContext().getLeaderboardContext().getLeaderboardGroupContext().getSailorProfiles().getProfileForCompetitor(getCompetitor());
}
@Dimension(messageKey="TackAtStart", ordinal=12)
Tack getTackAtStart() throws NoWindException;
@@ -19,6 +19,11 @@ public interface HasRaceResultOfCompetitorContext {
@Connector(messageKey="Competitor", ordinal=2)
public Competitor getCompetitor();
@Connector(messageKey="SailorProfile")
default public SailorProfile getSailorProfile() {
return getTrackedRaceContext().getLeaderboardContext().getLeaderboardGroupContext().getSailorProfiles().getProfileForCompetitor(getCompetitor());
}
@Connector(messageKey="Boat")
public Boat getBoat();