mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-18 02:00:58 +00:00
cleaned up dashboard dto
This commit is contained in:
1 parent
dda5ba2086
commit
e98ab30f8e
17 files changed
+14
-120
No files matched your search
+1
-1
@@ -8,7 +8,7 @@ import com.sap.sailing.dashboards.gwt.server.util.actions.startanalysis.StartAna
|
||||
import com.sap.sailing.dashboards.gwt.shared.dispatch.DashboardAction;
|
||||
import com.sap.sailing.dashboards.gwt.shared.dispatch.DashboardDispatchContext;
|
||||
import com.sap.sailing.dashboards.gwt.shared.dto.StartAnalysesDTO;
|
||||
import com.sap.sailing.dashboards.gwt.shared.dto.startanalysis.StartAnalysisDTO;
|
||||
import com.sap.sailing.dashboards.gwt.shared.dto.StartAnalysisDTO;
|
||||
import com.sap.sailing.domain.base.Competitor;
|
||||
import com.sap.sailing.domain.base.Fleet;
|
||||
import com.sap.sailing.domain.base.RaceColumn;
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package com.sap.sailing.dashboards.gwt.client.widgets.startanalysis;
|
||||
|
||||
import com.sap.sailing.dashboards.gwt.shared.dto.startanalysis.StartAnalysisDTO;
|
||||
import com.sap.sailing.dashboards.gwt.shared.dto.StartAnalysisDTO;
|
||||
|
||||
public interface StartAnalysisPageChangeListener {
|
||||
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@ import com.sap.sailing.dashboards.gwt.client.widgets.startanalysis.card.StartAna
|
||||
import com.sap.sailing.dashboards.gwt.shared.DashboardURLParameters;
|
||||
import com.sap.sailing.dashboards.gwt.shared.dto.LeaderboardCompetitorsDTO;
|
||||
import com.sap.sailing.dashboards.gwt.shared.dto.StartAnalysesDTO;
|
||||
import com.sap.sailing.dashboards.gwt.shared.dto.startanalysis.StartAnalysisDTO;
|
||||
import com.sap.sailing.dashboards.gwt.shared.dto.StartAnalysisDTO;
|
||||
import com.sap.sailing.domain.common.dto.CompetitorDTO;
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import com.sap.sailing.dashboards.gwt.client.widgets.startanalysis.StartAnalysis
|
||||
import com.sap.sailing.dashboards.gwt.client.widgets.startanalysis.StartAnalysisWidgetResources;
|
||||
import com.sap.sailing.dashboards.gwt.client.widgets.startanalysis.rankingtable.StartAnalysisStartRankTable;
|
||||
import com.sap.sailing.dashboards.gwt.shared.StartlineAdvantageType;
|
||||
import com.sap.sailing.dashboards.gwt.shared.dto.startanalysis.StartAnalysisDTO;
|
||||
import com.sap.sailing.dashboards.gwt.shared.dto.StartAnalysisDTO;
|
||||
import com.sap.sailing.domain.common.racelog.RacingProcedureType;
|
||||
import com.sap.sailing.gwt.ui.client.CompetitorColorProvider;
|
||||
import com.sap.sailing.gwt.ui.client.CompetitorColorProviderImpl;
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ import com.google.gwt.user.cellview.client.CellTable;
|
||||
import com.google.gwt.user.cellview.client.HasKeyboardSelectionPolicy.KeyboardSelectionPolicy;
|
||||
import com.google.gwt.user.cellview.client.TextColumn;
|
||||
import com.google.gwt.user.client.ui.AbsolutePanel;
|
||||
import com.sap.sailing.dashboards.gwt.shared.dto.startanalysis.StartAnalysisCompetitorDTO;
|
||||
import com.sap.sailing.dashboards.gwt.shared.dto.StartAnalysisCompetitorDTO;
|
||||
import com.sap.sailing.gwt.ui.client.CompetitorSelectionModel;
|
||||
import com.sap.sailing.gwt.ui.client.StringMessages;
|
||||
import com.sap.sse.common.Util.Pair;
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import com.google.gwt.core.shared.GwtIncompatible;
|
||||
import com.sap.sailing.dashboards.gwt.shared.dispatch.DashboardDispatchContext;
|
||||
import com.sap.sailing.dashboards.gwt.shared.dto.startanalysis.StartAnalysisDTO;
|
||||
import com.sap.sailing.dashboards.gwt.shared.dto.StartAnalysisDTO;
|
||||
import com.sap.sailing.domain.base.Competitor;
|
||||
import com.sap.sailing.domain.tracking.TrackedRace;
|
||||
|
||||
|
||||
+4
-4
@@ -10,11 +10,11 @@ import java.util.logging.Logger;
|
||||
import com.google.gwt.core.shared.GwtIncompatible;
|
||||
import com.sap.sailing.dashboards.gwt.shared.StartlineAdvantageType;
|
||||
import com.sap.sailing.dashboards.gwt.shared.dispatch.DashboardDispatchContext;
|
||||
import com.sap.sailing.dashboards.gwt.shared.dto.StartAnalysisCompetitorDTO;
|
||||
import com.sap.sailing.dashboards.gwt.shared.dto.StartAnalysisDTO;
|
||||
import com.sap.sailing.dashboards.gwt.shared.dto.StartAnalysisRankingTableEntryDTO;
|
||||
import com.sap.sailing.dashboards.gwt.shared.dto.StartLineAdvantageDTO;
|
||||
import com.sap.sailing.dashboards.gwt.shared.dto.startanalysis.StartAnalysisCompetitorDTO;
|
||||
import com.sap.sailing.dashboards.gwt.shared.dto.startanalysis.StartAnalysisDTO;
|
||||
import com.sap.sailing.dashboards.gwt.shared.dto.startanalysis.StartAnalysisRankingTableEntryDTO;
|
||||
import com.sap.sailing.dashboards.gwt.shared.dto.startanalysis.WindAndAdvantagesInfoForStartLineDTO;
|
||||
import com.sap.sailing.dashboards.gwt.shared.dto.WindAndAdvantagesInfoForStartLineDTO;
|
||||
import com.sap.sailing.domain.base.Competitor;
|
||||
import com.sap.sailing.domain.base.Waypoint;
|
||||
import com.sap.sailing.domain.common.LegType;
|
||||
|
||||
-15
@@ -1,15 +0,0 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package com.sap.sailing.dashboards.gwt.shared;
|
||||
|
||||
/**
|
||||
* @author Alexander Ries
|
||||
*
|
||||
*/
|
||||
public enum ResponseMessage
|
||||
{
|
||||
RACE_LIVE,
|
||||
NO_RACE_LIVE
|
||||
}
|
||||
|
||||
-22
@@ -1,22 +0,0 @@
|
||||
package com.sap.sailing.dashboards.gwt.shared;
|
||||
|
||||
public class SinWave {
|
||||
private double period = 100; // loop every 8 calls to updateNumber
|
||||
private double scale = 5; // go between 0 and this
|
||||
|
||||
private int _pos = 0;
|
||||
private double Number1 = 0;
|
||||
|
||||
public SinWave(double period, double scale) {
|
||||
this.period = period;
|
||||
this.scale = scale;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public double getNexNumber() {
|
||||
_pos++;
|
||||
Number1 = (double) (Math.sin(_pos * 2 * Math.PI / period) * (scale / 2) + (scale / 2));
|
||||
return Number1;
|
||||
}
|
||||
}
|
||||
-18
@@ -1,18 +0,0 @@
|
||||
package com.sap.sailing.dashboards.gwt.shared;
|
||||
|
||||
import com.google.gwt.user.client.rpc.IsSerializable;
|
||||
import com.sap.sailing.dashboards.gwt.shared.dto.StartLineAdvantageDTO;
|
||||
|
||||
/**
|
||||
* @author Alexander Ries (D062114)
|
||||
*
|
||||
*/
|
||||
public enum StartlineAdvantageCalculationBasis implements IsSerializable {
|
||||
MEASURED,
|
||||
|
||||
/**
|
||||
* When the {@link StartLineAdvantageDTO} is calculated with the Polar API and there are not values returned
|
||||
* there are used manually entered polar values to provide still a {@link StartLineAdvantageDTO}.
|
||||
*/
|
||||
DEFAULT_VALUES
|
||||
}
|
||||
-29
@@ -1,29 +0,0 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package com.sap.sailing.dashboards.gwt.shared.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.sap.sailing.dashboards.gwt.shared.ResponseMessage;
|
||||
import com.sap.sailing.dashboards.gwt.shared.dto.startanalysis.StartAnalysisDTO;
|
||||
|
||||
/**
|
||||
* @author Alexander Ries
|
||||
*
|
||||
*/
|
||||
public class RibDashboardRaceInfoDTO implements Serializable{
|
||||
|
||||
private static final long serialVersionUID = -1325150193180234561L;
|
||||
|
||||
public Map<String, WindBotComponentDTO> windBotDTOForID;
|
||||
public StartLineAdvantageDTO startLineAdvantageDTO;
|
||||
public List<StartAnalysisDTO> startAnalysisDTOList;
|
||||
public List<String> competitorNamesFromLastTrackedRace;
|
||||
public ResponseMessage responseMessage;
|
||||
|
||||
public RibDashboardRaceInfoDTO() {}
|
||||
|
||||
}
|
||||
-1
@@ -2,7 +2,6 @@ package com.sap.sailing.dashboards.gwt.shared.dto;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.sap.sailing.dashboards.gwt.shared.dto.startanalysis.StartAnalysisDTO;
|
||||
import com.sap.sailing.gwt.dispatch.client.Result;
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.sap.sailing.dashboards.gwt.shared.dto.startanalysis;
|
||||
package com.sap.sailing.dashboards.gwt.shared.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.sap.sailing.dashboards.gwt.shared.dto.startanalysis;
|
||||
package com.sap.sailing.dashboards.gwt.shared.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.sap.sailing.dashboards.gwt.shared.dto.startanalysis;
|
||||
package com.sap.sailing.dashboards.gwt.shared.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
+1
-3
@@ -1,9 +1,7 @@
|
||||
package com.sap.sailing.dashboards.gwt.shared.dto.startanalysis;
|
||||
package com.sap.sailing.dashboards.gwt.shared.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import com.sap.sailing.dashboards.gwt.shared.dto.StartLineAdvantageDTO;
|
||||
|
||||
public class WindAndAdvantagesInfoForStartLineDTO implements Serializable{
|
||||
|
||||
private static final long serialVersionUID = -1325150193180234561L;
|
||||
-19
@@ -1,19 +0,0 @@
|
||||
package com.sap.sailing.dashboards.gwt.shared.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import com.sap.sailing.domain.common.Position;
|
||||
|
||||
public class WindBotComponentDTO implements Serializable{
|
||||
|
||||
private static final long serialVersionUID = 7552196781982269601L;
|
||||
|
||||
public String id;
|
||||
public double liveWindSpeedInKts;
|
||||
public double liveWindDirectionInDegrees;
|
||||
public double averageWindSpeedInKts;
|
||||
public double averageWindDirectionInDegrees;
|
||||
public Position position;
|
||||
|
||||
public WindBotComponentDTO() {}
|
||||
}
|
||||
Reference in new issue
Block a user