Package controllers
Class Student
- java.lang.Object
-
- controllers.User
-
- controllers.Student
-
public class Student extends User
- Author:
- Danko Konate, Mamadou Niakaté
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecalculateScore(int correct, int total)Calcule le score de l'etudiantdoublegetScore()retourne le score d'un étudiantjava.lang.StringgetStudentAnswersInfo()retourne le totalCorrectAnswer/totalAnswer d'un étudiantjava.util.ArrayList<Score>getStudentScores()retourne la liste du score d'un étudiantvoidsetScore(double score)modifie le score d'un étudiantvoidsetStudentAnswersInfo(double totalCorrectAnswer, double totalAnswer)Modifie le totalCorrectAnswer et totalAnswer d'un étudiantvoidsetStudentScores(java.util.ArrayList<Score> studentScores)modifie le score d'un étudiant
-
-
-
Constructor Detail
-
Student
public Student(java.lang.String nom)
constructeur par défault
-
Student
public Student(java.lang.String firstName, java.lang.String lastName, java.lang.String userName, char password, java.lang.String role)constructeur avec parametre- Parameters:
firstName-lastName-userName-password-role-
-
-
Method Detail
-
calculateScore
public double calculateScore(int correct, int total)Calcule le score de l'etudiant- Parameters:
correct-total-- Returns:
-
setStudentAnswersInfo
public void setStudentAnswersInfo(double totalCorrectAnswer, double totalAnswer)Modifie le totalCorrectAnswer et totalAnswer d'un étudiant- Parameters:
totalCorrectAnswer-totalAnswer-
-
getStudentAnswersInfo
public java.lang.String getStudentAnswersInfo()
retourne le totalCorrectAnswer/totalAnswer d'un étudiant- Returns:
- totalCorrectAnswer/totalAnswer
-
getScore
public double getScore()
retourne le score d'un étudiant- Returns:
- the score
-
setScore
public void setScore(double score)
modifie le score d'un étudiant- Parameters:
score- the score to set
-
getStudentScores
public java.util.ArrayList<Score> getStudentScores()
retourne la liste du score d'un étudiant- Returns:
- the studentScores
-
setStudentScores
public void setStudentScores(java.util.ArrayList<Score> studentScores)
modifie le score d'un étudiant- Parameters:
studentScores- the studentScores to set
-
-