|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.chorem.pollen.votecounting.business.Context
public class Context
Contexte du dépouillement du sondage (PATTERN STRATEGY).
| Constructor Summary | |
|---|---|
Context(Method method,
boolean groupCounting)
Constructeur |
|
| Method Summary | |
|---|---|
void |
addChoice(java.lang.String idChoice)
Ajout d'un nouveau choix au contexte |
void |
addGroup(java.lang.String idGroup,
double weight)
Ajout d'un groupe pour l'ensemble des choix du contexte |
boolean |
execute()
Execution de la méthode de dépouillement et calcul des choix résultats |
Choice |
getChoice(java.lang.String idChoice)
Renvoie un choix de la map |
java.util.List<Choice> |
getChoices()
Renvoie la liste des choix |
java.util.List<Choice> |
getResults()
Renvoie la liste des résultats |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Context(Method method,
boolean groupCounting)
method - : Méthode de dépouillementgroupCounting - : Dépouillement pour les groupes ou non| Method Detail |
|---|
public Choice getChoice(java.lang.String idChoice)
idChoice - : identifiant du choix
public java.util.List<Choice> getChoices()
public java.util.List<Choice> getResults()
public void addChoice(java.lang.String idChoice)
idChoice - : identifiant du choix
public void addGroup(java.lang.String idGroup,
double weight)
idGroup - : identifiant du groupeweight - : poids du groupepublic boolean execute()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||