org.chorem.pollen.votecounting.business
Class StandardMethod
java.lang.Object
org.chorem.pollen.votecounting.business.StandardMethod
- All Implemented Interfaces:
- Method
- Direct Known Subclasses:
- PercentageMethod
public class StandardMethod
- extends Object
- implements Method
Méthode de dépouillement standard.
- Version:
- $Id: StandardMethod.java 3423 2012-06-05 16:50:22Z tchemit $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardMethod
public StandardMethod()
executeCounting
public void executeCounting(List<Choice> choices,
boolean byGroup)
- Description copied from interface:
Method
- Execute le dépouillement de l'ensemble des choix spécifiés.
- Specified by:
executeCounting in interface Method
- Parameters:
choices - l'ensemble des choix à dépouillerbyGroup - si le dépouillement doit être groupé
calculateGroups
public void calculateGroups(List<Choice> choices)
getValueForGroup
public void getValueForGroup(Group group)
calculateChoicesByGroup
public void calculateChoicesByGroup(List<Choice> choices)
getChoosenChoicesByGroup
public Map<String,List<String>> getChoosenChoicesByGroup(List<Choice> choices)
getValueForChoiceByGroup
public double getValueForChoiceByGroup(Choice choice,
String idGroup,
List<String> choicesId)
executeStats
public void executeStats(List<Choice> choices,
boolean groupCounting,
Choice choice,
ChoiceDTO choiceDTO)
- Description copied from interface:
Method
- Effectue des statistiques sur le
choice specifié.
La fonction executeCounting doit avoir été
executée avant d'appeler cette fonction.
- Specified by:
executeStats in interface Method
- Parameters:
choices - l'ensemble des choix du dépouillementgroupCounting - si le dépouillement doit être groupéchoice - le choix sur lequel effectuer des statistiqueschoiceDTO - le choix contenant les resultats statistiques
Copyright © 2009-2012 CodeLutin. All Rights Reserved.