Betty v1.1.0

christophedelory.betty.model.rank
Interface RankProcessor

All Known Implementing Classes:
AbstractLocalRankProcessor, GeneralHighestResultDifferenceRankProcessor, GeneralHighestResultRankProcessor, GeneralHighestScoreRankProcessor, GeneralLowestResultRankProcessor, LocalHighestResultDifferenceRankProcessor, LocalHighestResultRankProcessor, LocalHighestScoreRankProcessor, LocalLowestResultRankProcessor

interface RankProcessor

The definition of a rank processor, used by the default rank processing model.
The rank processor life-cycle is the following:

  1. First an instance of the class is created through its no-arg constructor;
  2. Then the method processPhasePlayerRanks(LocalPhase,Collection,int,List) may be called multiple times.

Version:
$Revision$
Author:
Christophe Delory

Method Summary
 void processPhasePlayerRanks(LocalPhase dbPhase, Collection<LocalEvent> dbEvents, int initialRank, List<PlayerRank> playerRanksToBeResolved)
          In the scope of the specified phase, assigns the ranks to the list of players, starting at initialRank.
 

Method Detail

processPhasePlayerRanks

void processPhasePlayerRanks(LocalPhase dbPhase,
                             Collection<LocalEvent> dbEvents,
                             int initialRank,
                             List<PlayerRank> playerRanksToBeResolved)
                             throws Exception
In the scope of the specified phase, assigns the ranks to the list of players, starting at initialRank.

Parameters:
dbPhase - a championship's phase. Shall not be null.
dbEvents - the list of phase's events. Shall not be null.
initialRank - the associated rank. Should be greater or equal to 1.
playerRanksToBeResolved - a list of player ranks which shall be tuned. Should not be null.
Throws:
NullPointerException - if dbPhase is null.
NullPointerException - if dbEvents is null.
NullPointerException - if playerRanksToBeResolved is null.
IllegalArgumentException - if initialRank is lower than 1.
Exception - if any unexpected error occurs.

© 2008-2009 Christophe Delory

Copyright © 2008-2009 Christophe Delory. All Rights Reserved.