Merge branch 'bug4661' of ssh://trac@sapsailing.com/home/trac/git into bug4661

This commit is contained in:
Kai Börnert committed 2018-07-18 10:56:43 +02:00
commit 6583aaa3c0
1 file changed
+12
@@ -127,14 +127,26 @@ public interface ScoringScheme extends Serializable {
*/
int compareByLatestRegattaInMetaLeaderboard(Leaderboard leaderboard, Competitor o1, Competitor o2, TimePoint timePoint);
/**
* Returning {@code true} makes the number of wins in a medal series the primary ranking criteria.
* The number of wins that makes a competitor the overall winner must be returned by {@link #getTargetAmountOfMedalRaceWins()}.
*/
default boolean isMedalWinAmountCriteria() {
return false;
}
/**
* Returning {@code true} makes the carry forward score a secondary ranking criteria for competitors that have an
* equal overall score.
*/
default boolean isCarryForwardInMedalsCriteria() {
return false;
}
/**
* Returning {@code true} makes the last medal race (having valid scores) a secondary ranking criteria for
* competitors that have an equal overall score.
*/
default boolean isLastMedalRaceCriteria() {
return false;
}