public class Context extends Object
| Constructor and Description |
|---|
Context(Method method,
boolean groupCounting)
Constructeur
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChoice(PollChoiceDTO choice)
Ajout d'un nouveau choix au contexte
|
void |
addGroup(String idGroup,
double weight)
Ajout d'un groupe pour l'ensemble des choix du contexte
|
void |
addHiddenChoice(PollChoiceDTO choice)
Ajout d'un nouveau choix au contexte
|
boolean |
executeCounting()
Execution de la méthode de dépouillement et calcul des choix résultats
|
List<ChoiceDTO> |
executeStats() |
Choice |
getChoice(String idChoice)
Renvoie un choix de la map.
|
List<Choice> |
getChoices()
Renvoie la liste des choix
|
List<Choice> |
getHiddenChoices()
Renvoie la liste des choix cachés
|
List<Choice> |
getResults()
Renvoie la liste des résultats
|
public Context(Method method, boolean groupCounting)
method - : Méthode de dépouillementgroupCounting - : Dépouillement pour les groupes ou nonpublic Choice getChoice(String idChoice)
idChoice - : identifiant du choixpublic List<Choice> getHiddenChoices()
public List<Choice> getResults()
public void addChoice(PollChoiceDTO choice)
choice - identifiant du choixpublic void addHiddenChoice(PollChoiceDTO choice)
choice - identifiant du choixpublic void addGroup(String idGroup, double weight)
idGroup - identifiant du groupeweight - poids du groupepublic boolean executeCounting()
Copyright © 2009-2012 CodeLutin. All Rights Reserved.