mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-21 21:25:38 +00:00
bug6069: added sailor profile connector to two more data mining types
This commit is contained in:
+5
@@ -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;
|
||||
|
||||
|
||||
+5
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user