aftermath for 873aee9d7a6288a553351513c80d3df853e025f5; pulling up abstract implementation of ScoringScheme.compareByLatestRegattaInMetaLeaderboard

This commit is contained in:
Axel Uhl committed 2014-03-07 18:15:11 +01:00
1 parent a77832e8b1
commit 4caf758fca
4 files changed
+9 -18

No files matched your search

@@ -98,10 +98,10 @@ public interface ScoringScheme extends Serializable {
boolean isValidInTotalScore(Leaderboard leaderboard, RaceColumn raceColumn, TimePoint at);
/**
* Some scoring schemes are applied to {@link LeaderboardGroupMetaLeaderboard} instances. These
* instances of a leaderboard are based on other leaderboards grouped in a {@link LeaderboardGroup}.
* It can happen that the {@link ScoringScheme} needs to have look at the total points of the other leaderboards
* in that group. The ordering of the list containing the total points matches the order in the group.
* Some scoring schemes are applied to {@link LeaderboardGroupMetaLeaderboard} instances. These instances of a
* leaderboard are based on other leaderboards grouped in a {@link LeaderboardGroup}. It can happen that the
* {@link ScoringScheme} needs to have a look at the total points of the other leaderboards in that group. The
* ordering of the list containing the total points matches the order in the group.
*/
int compareByLatestRegattaInMetaLeaderboard(List<Double> o1TotalPointsForAllOtherLeaderboardsOrdered, List<Double> o2TotalPointsForAllOtherLeaderboardsOrdered);
}
@@ -182,4 +182,9 @@ public abstract class AbstractScoringSchemeImpl implements ScoringScheme {
}
return numberOfCompetitorsInBetterFleets;
}
@Override
public int compareByLatestRegattaInMetaLeaderboard(List<Double> o1TotalPointsForAllOtherLeaderboardsOrdered, List<Double> o2TotalPointsForAllOtherLeaderboardsOrdered) {
return 0;
}
}
@@ -1,6 +1,5 @@
package com.sap.sailing.domain.leaderboard.impl;
import java.util.List;
import java.util.concurrent.Callable;
import com.sap.sailing.domain.base.Competitor;
@@ -78,11 +77,5 @@ public class HighPoint extends AbstractScoringSchemeImpl {
public boolean isValidInTotalScore(Leaderboard leaderboard, RaceColumn raceColumn, TimePoint at) {
return true;
}
@Override
public int compareByLatestRegattaInMetaLeaderboard(List<Double> o1TotalPointsForAllOtherLeaderboardsOrdered,
List<Double> o2TotalPointsForAllOtherLeaderboardsOrdered) {
return 0;
}
}
@@ -1,6 +1,5 @@
package com.sap.sailing.domain.leaderboard.impl;
import java.util.List;
import java.util.concurrent.Callable;
import com.sap.sailing.domain.base.Competitor;
@@ -65,10 +64,4 @@ public class LowPoint extends AbstractScoringSchemeImpl {
public boolean isValidInTotalScore(Leaderboard leaderboard, RaceColumn raceColumn, TimePoint at) {
return true;
}
@Override
public int compareByLatestRegattaInMetaLeaderboard(List<Double> o1TotalPointsForAllOtherLeaderboardsOrdered,
List<Double> o2TotalPointsForAllOtherLeaderboardsOrdered) {
return 0;
}
}