Package controllers

Class Student


  • public class Student
    extends User
    Author:
    Danko Konate, Mamadou Niakaté
    • Constructor Summary

      Constructors 
      Constructor Description
      Student​(java.lang.String nom)
      constructeur par défault
      Student​(java.lang.String firstName, java.lang.String lastName, java.lang.String userName, char password, java.lang.String role)
      constructeur avec parametre
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double calculateScore​(int correct, int total)
      Calcule le score de l'etudiant
      double getScore()
      retourne le score d'un étudiant
      java.lang.String getStudentAnswersInfo()
      retourne le totalCorrectAnswer/totalAnswer d'un étudiant
      java.util.ArrayList<Score> getStudentScores()
      retourne la liste du score d'un étudiant
      void setScore​(double score)
      modifie le score d'un étudiant
      void setStudentAnswersInfo​(double totalCorrectAnswer, double totalAnswer)
      Modifie le totalCorrectAnswer et totalAnswer d'un étudiant
      void setStudentScores​(java.util.ArrayList<Score> studentScores)
      modifie le score d'un étudiant
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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