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 java.lang.Object
implements Method

Méthode de dépouillement standard.

Version:
$Id: StandardMethod.java 2615 2009-07-01 13:47:45Z nrannou $

Constructor Summary
StandardMethod()
           
 
Method Summary
 void calculateChoicesByGroup(java.util.List<Choice> choices)
           
 void calculateGroups(java.util.List<Choice> choices)
           
 void executeMethod(java.util.List<Choice> choices, boolean byGroup)
           
 java.util.Map<java.lang.String,java.util.List<java.lang.String>> getChoosenChoicesByGroup(java.util.List<Choice> choices)
           
 double getValueForChoiceByGroup(Choice choice, java.lang.String idGroup, java.util.List<java.lang.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

executeMethod

public void executeMethod(java.util.List<Choice> choices,
                          boolean byGroup)
Specified by:
executeMethod in interface Method

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)


Copyright © 2009 CodeLutin. All Rights Reserved.