org.chorem.pollen.votecounting.business
Class Vote

java.lang.Object
  extended by org.chorem.pollen.votecounting.business.Vote

public class Vote
extends Object

Cette classe décrit un vote du sondage. Le vote récupère l'id et le poids du votant.

Version:
$Id: Vote.java 3423 2012-06-05 16:50:22Z tchemit $
Author:
fdesbois

Constructor Summary
Vote(double value, double weight, String votingID)
          Constructeur
 
Method Summary
 double getValue()
          getValue : Renvoie la valeur du vote
 String getVotingID()
          getVotingID : Renvoie l'identifiant du votant
 double getWeight()
          getWeight : Renvoie le poids du vote
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Vote

public Vote(double value,
            double weight,
            String votingID)
Constructeur

Parameters:
value - : valeur du vote connue pour le choix
weight - : poids du vote
votingID - : identifiant du votant
Method Detail

getValue

public double getValue()
getValue : Renvoie la valeur du vote

Returns:
valeur du vote

getWeight

public double getWeight()
getWeight : Renvoie le poids du vote

Returns:
poids du vote

getVotingID

public String getVotingID()
getVotingID : Renvoie l'identifiant du votant

Returns:
identifiant du votant


Copyright © 2009-2012 CodeLutin. All Rights Reserved.