org.chorem.pollen.votecounting.business
Class CondorcetMethod

java.lang.Object
  extended by org.chorem.pollen.votecounting.business.CondorcetMethod
All Implemented Interfaces:
Method

public class CondorcetMethod
extends java.lang.Object
implements Method

Méthode de dépouillement Condorcet.

Version:
$Id: CondorcetMethod.java 2836 2010-01-11 12:46:59Z schorlet $
Author:
rannou

Constructor Summary
CondorcetMethod()
           
 
Method Summary
 void executeCounting(java.util.List<Choice> choices, boolean byGroup)
          Execute le dépouillement de l'ensemble des choix spécifiés.
 void executeStats(java.util.List<Choice> choices, boolean groupCounting, Choice choice, ChoiceDTO choiceDTO)
          Effectue des statistiques sur le choice specifié.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CondorcetMethod

public CondorcetMethod()
Method Detail

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épouiller
byGroup - si le dépouillement doit être groupé

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é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-2010 CodeLutin. All Rights Reserved.