christophedelory.betty.model.score
Class VersusScoreModel
java.lang.Object
christophedelory.betty.model.score.VersusScoreModel
- All Implemented Interfaces:
- Model, ScoreModel
public class VersusScoreModel
- extends Object
- implements ScoreModel
A score processing model based on the confrontation of two players only.
Either one wins and the other looses, or they achieve the same result.
The score depends on 3 configuration parameters:
- <param id="win">score</param>
- <param id="loose">score</param>
- <param id="equal">score</param>
where "score
" is of course the associated player score.
- Version:
- $Revision$
- Author:
- Christophe Delory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VersusScoreModel
public VersusScoreModel()
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.
processEventPlayerScores
public void processEventPlayerScores(LocalEvent dbEvent)
throws Exception
- Description copied from interface:
ScoreModel
- Processes all player scores in the specified event.
- Specified by:
processEventPlayerScores
in interface ScoreModel
- Parameters:
dbEvent
- a championship phase's event. Should not be null
.
- Throws:
NullPointerException
- if dbEvent
is null
.
Exception
- if any unexpected error occurs.- See Also:
LocalPlayerScore.setScore(int)
Copyright © 2008-2009 Christophe Delory. All Rights Reserved.