christophedelory.betty.model.rank
Class DefaultRankModel
java.lang.Object
christophedelory.betty.model.rank.DefaultRankModel
- All Implemented Interfaces:
- Model, RankModel
public class DefaultRankModel
- extends Object
- implements RankModel
The default rank processing model, based on one or more configurable rank processors
.
- Version:
- $Revision$
- Author:
- Christophe Delory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultRankModel
public DefaultRankModel()
setParameters
public void setParameters(List<PropertyDetails> params)
throws Exception
- Description copied from interface:
Model
- Initializes this processing model with the specified list of configuration parameters.
- Specified by:
setParameters
in interface Model
- Parameters:
params
- a list of configuration parameters. May be empty but not null
.
- Throws:
NullPointerException
- if params
is null
.
Exception
- if any unexpected error occurs.
processPhasePlayerRanks
public List<PlayerRank> processPhasePlayerRanks(LocalPhase dbPhase,
Collection<LocalEvent> dbEvents)
throws Exception
- Description copied from interface:
RankModel
- Processes all player ranks in the specified phase.
- Specified by:
processPhasePlayerRanks
in interface RankModel
- Parameters:
dbPhase
- a championship's phase. Should not be null
.dbEvents
- the list of phase's events. May be null
(and thus will be built by the method).
- Returns:
- a list of player ranks. Should not be
null
.
- Throws:
NullPointerException
- if dbPhase
is null
.
Exception
- if any unexpected error occurs.
Copyright © 2008-2009 Christophe Delory. All Rights Reserved.