Class SommeilService
java.lang.Object
com.serinity.sleepcontrol.service.SommeilService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanalyserQualiteSommeil(Sommeil sommeil) doubledoubledoubledoublecalculerEfficaciteSommeil(Sommeil sommeil) doubledoubledoubledoubleintdoubleintcompterRevesParSommeil(int sommeilId) intcompterSommeils(LocalDate debut, LocalDate fin) intvoiddonneesGraphiqueDuree(LocalDate debut, LocalDate fin) donneesGraphiqueScore(LocalDate debut, LocalDate fin) booleanexistePourDate(LocalDate date) voidexporterSommeilsPdf(List<Sommeil> sommeils, String cheminFichier) filtrerParDuree(double min, double max) filtrerParEnvironnement(String environnement) filtrerParHumeur(String humeur) filtrerParInterruptions(int maxInterruptions) filtrerParPeriode(LocalDate debut, LocalDate fin) filtrerParQualite(String qualite) genererRapportDetaille(Sommeil sommeil) identifierTendances(LocalDate debut, LocalDate fin) libelleDette(double dette) libelleEfficacite(double pct) libelleRegularite(double ecartTypeMinutes) libelleResilience(double index) libelleScore(int score) voidrechercherAvancee(String qualite, LocalDate dateDebut, LocalDate dateFin, Double dureeMin, Double dureeMax) rechercherDynamique(String critere) voidsupprimer(int id) trierParDate(boolean croissant) trierParDuree(boolean croissant) trierParInterruptions(boolean croissant) trierParQualite(boolean croissant) trierParScore(boolean croissant) trouverParId(int id) trouverParIdAvecReves(int id)
-
Constructor Details
-
SommeilService
public SommeilService() -
SommeilService
-
-
Method Details
-
creer
- Throws:
SQLException
-
listerTous
- Throws:
SQLException
-
trouverParId
- Throws:
SQLException
-
modifier
- Throws:
SQLException
-
supprimer
- Throws:
SQLException
-
compterTotal
- Throws:
SQLException
-
existePourDate
- Throws:
SQLException
-
listerTousAvecReves
- Throws:
SQLException
-
trouverParIdAvecReves
- Throws:
SQLException
-
compterRevesParSommeil
public int compterRevesParSommeil(int sommeilId) -
listerTousAvecNbReves
- Throws:
SQLException
-
rechercherDynamique
- Throws:
SQLException
-
rechercherAvancee
public List<Sommeil> rechercherAvancee(String qualite, LocalDate dateDebut, LocalDate dateFin, Double dureeMin, Double dureeMax) throws SQLException - Throws:
SQLException
-
filtrerParQualite
- Throws:
SQLException
-
filtrerParPeriode
- Throws:
SQLException
-
filtrerParDuree
- Throws:
SQLException
-
filtrerParInterruptions
- Throws:
SQLException
-
filtrerParHumeur
- Throws:
SQLException
-
filtrerParEnvironnement
- Throws:
SQLException
-
filtrerDureeOptimale
- Throws:
SQLException
-
trierParDate
- Throws:
SQLException
-
trierParDuree
- Throws:
SQLException
-
trierParQualite
- Throws:
SQLException
-
trierParInterruptions
- Throws:
SQLException
-
trierParScore
- Throws:
SQLException
-
calculerDureeMoyenne
- Throws:
SQLException
-
calculerMoyenneInterruptions
- Throws:
SQLException
-
calculerScoreMoyen
- Throws:
SQLException
-
obtenirStatistiquesParQualite
- Throws:
SQLException
-
compterParQualite
- Throws:
SQLException
-
compterParHumeur
- Throws:
SQLException
-
calculerPourcentageDureeOptimale
- Throws:
SQLException
-
trouverMeilleurSommeil
- Throws:
SQLException
-
trouverPireSommeil
- Throws:
SQLException
-
compterSommeils
- Throws:
SQLException
-
statistiquesSemaine
- Throws:
SQLException
-
statistiquesMois
- Throws:
SQLException
-
donneesGraphiqueDuree
public Map<LocalDate, Double> donneesGraphiqueDuree(LocalDate debut, LocalDate fin) throws SQLException - Throws:
SQLException
-
donneesGraphiqueScore
public Map<LocalDate, Integer> donneesGraphiqueScore(LocalDate debut, LocalDate fin) throws SQLException - Throws:
SQLException
-
analyserQualiteSommeil
-
calculerScoreBienEtre
- Throws:
SQLException
-
libelleScore
-
calculerIndexResilience
- Throws:
SQLException
-
libelleResilience
-
classerParNiveau
- Throws:
SQLException
-
detecterAnomalies
- Throws:
SQLException
-
calculerRegulariteHoraires
- Throws:
SQLException
-
libelleRegularite
-
calculerDetteSommeil
- Throws:
SQLException
-
libelleDette
-
calculerEfficaciteSommeil
-
calculerEfficaciteMoyenne
- Throws:
SQLException
-
libelleEfficacite
-
identifierTendances
- Throws:
SQLException
-
determinerProfilChronobiologique
- Throws:
SQLException
-
genererRecommandations
- Throws:
SQLException
-
obtenirInsights
- Throws:
SQLException
-
genererRapportDetaille
-
genererRapportGlobal
- Throws:
SQLException
-
exporterSommeilsPdf
- Throws:
IOException
-