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 java.lang.Object
- implements Method
Méthode de dépouillement standard.
- Version:
- $Id: StandardMethod.java 2837 2010-01-11 16:17:56Z schorlet $
| 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(java.util.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(java.util.List<Choice> choices)
getValueForGroup
public void getValueForGroup(Group group)
calculateChoicesByGroup
public void calculateChoicesByGroup(java.util.List<Choice> choices)
getChoosenChoicesByGroup
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getChoosenChoicesByGroup(java.util.List<Choice> choices)
getValueForChoiceByGroup
public double getValueForChoiceByGroup(Choice choice,
java.lang.String idGroup,
java.util.List<java.lang.String> choicesId)
executeStats
public void executeStats(java.util.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-2010 CodeLutin. All Rights Reserved.