Betty v1.1.0

christophedelory.betty.model.rank
Class AbstractLocalRankProcessor

java.lang.Object
  extended by christophedelory.betty.model.rank.AbstractLocalRankProcessor
All Implemented Interfaces:
RankProcessor
Direct Known Subclasses:
LocalHighestResultDifferenceRankProcessor, LocalHighestResultRankProcessor, LocalHighestScoreRankProcessor, LocalLowestResultRankProcessor

abstract class AbstractLocalRankProcessor
extends Object
implements RankProcessor

The base implementation of a rank processor which scope is only a given list of players, and not the full list of players in a phase.

Version:
$Revision$
Author:
Christophe Delory

Constructor Summary
AbstractLocalRankProcessor()
           
 
Method Summary
protected  List<PlayerRank> buildSpecificPlayerRanks(LocalPhase dbPhase, Collection<LocalEvent> dbEvents, List<PlayerRank> playerRanks)
          Builds a new list of player ranks based only on the input list of players, in the specified phase.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface christophedelory.betty.model.rank.RankProcessor
processPhasePlayerRanks
 

Constructor Detail

AbstractLocalRankProcessor

AbstractLocalRankProcessor()
Method Detail

buildSpecificPlayerRanks

protected List<PlayerRank> buildSpecificPlayerRanks(LocalPhase dbPhase,
                                                    Collection<LocalEvent> dbEvents,
                                                    List<PlayerRank> playerRanks)
                                             throws NamingException,
                                                    FinderException
Builds a new list of player ranks based only on the input list of players, in the specified phase.

Parameters:
dbPhase - a championship's phase. Shall not be null.
dbEvents - the list of phase's events. Shall not be null.
playerRanks - a list of players. May be empty but not null.
Returns:
a new list of player ranks. May be empty but not null.
Throws:
NullPointerException - if dbPhase is null.
NullPointerException - if dbEvents is null.
NullPointerException - if playerRanks is null.
NamingException - if a naming exception is encountered.
FinderException - in case of failure to find any requested EJB object(s).
EJBException - if any exception occured during the execution of this method.

© 2008-2009 Christophe Delory

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