mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-21 21:25:38 +00:00
allow users to filter/group polar data by sailor profile
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@ import com.sap.sse.datamining.shared.impl.dto.ClusterDTO;
|
||||
* @author Axel Uhl (d043530)
|
||||
*
|
||||
*/
|
||||
public interface AbstractHasTrackedLegSliceOfCompetitorContext extends HasWindOnTrackedLeg, HasSomethingOfCompetitorContext {
|
||||
public interface AbstractHasTrackedLegSliceOfCompetitorContext extends HasWindOnTrackedLeg, HasSomethingOfCompetitorContextWithTrackedRaceContext {
|
||||
@Connector(scanForStatistics=false)
|
||||
HasTrackedLegContext getTrackedLegContext();
|
||||
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ import com.sap.sse.datamining.annotations.Dimension;
|
||||
import com.sap.sse.datamining.annotations.Statistic;
|
||||
import com.sap.sse.datamining.shared.impl.dto.ClusterDTO;
|
||||
|
||||
public interface HasRaceOfCompetitorContext extends HasSomethingOfCompetitorContext {
|
||||
public interface HasRaceOfCompetitorContext extends HasSomethingOfCompetitorContextWithTrackedRaceContext {
|
||||
@Override
|
||||
@Connector(scanForStatistics=false)
|
||||
HasTrackedRaceContext getTrackedRaceContext();
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ import com.sap.sse.datamining.annotations.Dimension;
|
||||
import com.sap.sse.datamining.annotations.Statistic;
|
||||
import com.sap.sse.datamining.shared.impl.dto.ClusterDTO;
|
||||
|
||||
public interface HasRaceResultOfCompetitorContext extends HasSomethingOfCompetitorContext {
|
||||
public interface HasRaceResultOfCompetitorContext extends HasSomethingOfCompetitorContextWithTrackedRaceContext {
|
||||
@Connector(scanForStatistics=false)
|
||||
HasLeaderboardContext getLeaderboardContext();
|
||||
|
||||
|
||||
+2
-2
@@ -4,13 +4,13 @@ import com.sap.sailing.domain.base.Competitor;
|
||||
import com.sap.sse.datamining.annotations.Connector;
|
||||
|
||||
public interface HasSomethingOfCompetitorContext {
|
||||
HasTrackedRaceContext getTrackedRaceContext();
|
||||
HasLeaderboardGroupContext getLeaderboardGroupContext();
|
||||
|
||||
@Connector(messageKey="Competitor", ordinal=2)
|
||||
Competitor getCompetitor();
|
||||
|
||||
@Connector(messageKey="SailorProfile")
|
||||
default SailorProfile getSailorProfile() {
|
||||
return getTrackedRaceContext().getLeaderboardContext().getLeaderboardGroupContext().getSailorProfiles().getProfileForCompetitor(getCompetitor());
|
||||
return getLeaderboardGroupContext().getSailorProfiles().getProfileForCompetitor(getCompetitor());
|
||||
}
|
||||
}
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package com.sap.sailing.datamining.data;
|
||||
|
||||
public interface HasSomethingOfCompetitorContextWithTrackedRaceContext extends HasSomethingOfCompetitorContext {
|
||||
HasTrackedRaceContext getTrackedRaceContext();
|
||||
|
||||
@Override
|
||||
default HasLeaderboardGroupContext getLeaderboardGroupContext() {
|
||||
return getTrackedRaceContext().getLeaderboardContext().getLeaderboardGroupContext();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user