org.chorem.pollen.votecounting.business
Class StandardMethod

java.lang.Object
  extended by 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 3122 2012-01-30 20:43:30Z tchemit $

Constructor Summary
StandardMethod()
           
 
Method Summary
 void calculateChoicesByGroup(List<Choice> choices)
           
 void calculateGroups(List<Choice> choices)
           
 void executeCounting(List<Choice> choices, boolean byGroup)
          Execute le dépouillement de l'ensemble des choix spécifiés.
 void executeStats(List<Choice> choices, boolean groupCounting, Choice choice, ChoiceDTO choiceDTO)
          Effectue des statistiques sur le choice specifié.
 Map<String,List<String>> getChoosenChoicesByGroup(List<Choice> choices)
           
 double getValueForChoiceByGroup(Choice choice, String idGroup, List<String> choicesId)
           
 void getValueForGroup(Group group)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardMethod

public StandardMethod()
Method Detail

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épouiller
byGroup - 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épouillement
groupCounting - si le dépouillement doit être groupé
choice - le choix sur lequel effectuer des statistiques
choiceDTO - le choix contenant les resultats statistiques


Copyright © 2009-2012 CodeLutin. All Rights Reserved.