diff --git a/Documents/Diagramme/CasUtilisations/README_gestionActivites.md b/Documents/Diagramme/CasUtilisations/README_gestionActivites.md index 664d7ab8..753f2d45 100644 --- a/Documents/Diagramme/CasUtilisations/README_gestionActivites.md +++ b/Documents/Diagramme/CasUtilisations/README_gestionActivites.md @@ -50,6 +50,7 @@ a --> (Voir une activité) (Voir une activité) ..>(Exporter l'analyse): <> (Voir une activité) ..>(Saisir la visibilité): <> a --> (Supprimer une activité) +(Supprimer une activité) ..>(S'authentifier): <> (Importer des données) ...>(S'authentifier): <> (Exporter mes données) ...>(S'authentifier): <> (Ajouter une activité) ...>(S'authentifier): <> diff --git a/Documents/Diagramme/CasUtilisations/README_gestionCompteAmitie.md b/Documents/Diagramme/CasUtilisations/README_gestionCompteAmitie.md index 268d541a..c1740ad1 100644 --- a/Documents/Diagramme/CasUtilisations/README_gestionCompteAmitie.md +++ b/Documents/Diagramme/CasUtilisations/README_gestionCompteAmitie.md @@ -46,6 +46,7 @@ a --> (Modifier mes informations) (Voir mes amis)..>(Lister les amis) : <> (Modifier mes informations)..>(Informations personnelles) : <> (Modifier mes informations)..>(Informations de connexion) : <> +(Modifier mes informations)..>(S'authentifier) : <> (Lister les amis)..>(Voir son profil) : <> (Voir son profil)..>(Voir ses activités) : <> (Voir son profil)..>(Voir ses statistiques) : <> diff --git a/Documents/Diagramme/DiagrammeDeClasses/README_DIAGRAMME.md b/Documents/Diagramme/DiagrammeDeClasses/README_DIAGRAMME.md index 6c463490..78037c03 100644 --- a/Documents/Diagramme/DiagrammeDeClasses/README_DIAGRAMME.md +++ b/Documents/Diagramme/DiagrammeDeClasses/README_DIAGRAMME.md @@ -4,7 +4,6 @@ ## Diagramme de classe - ```plantuml @startuml class User { @@ -18,8 +17,6 @@ class User { - taille: float - poids: float - dateNaissance: \DateTime - - role: Role - - notifications: array + getId(): int + getUsername(): string + setUsername(string $username): void @@ -49,9 +46,7 @@ class User { } abstract class Role { - id: int - - usersList: array - usersRequests: array - - trainingList: array + getUsersList(): array + getUsersRequests(): array + addUsersRequests(RelationshipRequest $request): void @@ -62,15 +57,12 @@ abstract class Role { + addTraining(Training $training): bool + getTrainingsList(): array } -class Coach extends Role { +abstract class Coach extends Role { } class CoachAthlete extends Coach { + CheckAdd(User $user): bool } class Athlete extends Role { - - statsList: array - - activityList: array - - dataSourcesList: array + getActivities(): array + addActivity(Activity $myActivity): bool + CheckAdd(User $user): bool @@ -107,7 +99,7 @@ class Activite { + setEffortRessenti(int $effortRessenti): void + __toString(): String } -class Notifications { +class Notification { - type: string - message: string - toUserId: int @@ -166,25 +158,13 @@ class SourceDonnees { + getDateDerniereUtilisation(): \DateTime + __toString(): String } -class RelationshipRequest { - - id: int - - fromUser: int - - toUser: int - - status: string - + getId(): int - + getFromUser(): int - + getToUser(): int - + getStatus(): string - + __toString(): string -} -class Observable { - - observers: array - + attachObserver(Observer $observer): void - + detachObserver(Observer $observer): void - + notifyObservers(): void -} -class Observer { - + update(Observable $observable): void -} +User -> Role : role +Role -> User : usersList +Athlete -> Statistique : statsList +Athlete -> Activite : activityList +Athlete -> SourceDonnees : sdList +User -> Notification : notificationList +User -> Entrainement : trainingsList +Activite -> SourceDonnees : maSource @enduml ``` \ No newline at end of file diff --git a/Documents/Diagramme/DiagrammeDeClasses/README_issue016.md b/Documents/Diagramme/DiagrammeDeClasses/README_issue016.md index 611db30a..3b6a64c1 100644 --- a/Documents/Diagramme/DiagrammeDeClasses/README_issue016.md +++ b/Documents/Diagramme/DiagrammeDeClasses/README_issue016.md @@ -4,79 +4,27 @@ ## Diagramme de classe ```plantuml +@startuml class Athlete { - - array statsList - - array activityList - - array dataSourcesList - - TrainingRepository trainingRepository - - array usersList - + __construct(trainingRepository: ?TrainingRepository) + getAthlete(): Athlete + getStatistic(): ?array - + getActivite(): ?array - + getDataSource(): ?array + getUsersList(): array + getUserList(user: User): User - + getTraining(): ?TrainingRepository - + getTrainingList(training: Training): ?Training - + setTrainingsList(newTrainingsList: array): void + CheckAdd(user: User): bool - + CheckAddTraining(training: Training): bool + addUser(user: User): bool + removeUser(user: User): bool - + delUser(user: User): bool - + addTraining(training: Training): bool - + removeTraining(training: Training): bool - + getTrainingsList(): ?array } -Athlete --|> Role -Athlete *-- TrainingRepository -Athlete *-- User -Athlete *-- Training - abstract class Coach { - + abstract __construct(trainingRepository: ?TrainingRepository) + abstract getUsersList(): ?array + abstract getUserList(user: User): User - + abstract getTraining(): ?TrainingRepository - + abstract getTrainingsList(): ?array - + abstract getTrainingList(training: Training): ?Training - + abstract CheckAdd(user: User): bool - + abstract CheckAddTraining(training: Training): bool - + abstract addUser(user: User): bool - + abstract removeUser(user: User): bool - + abstract addTraining(training: Training): bool - + abstract removeTraining(training: Training): bool } -Coach --|> Role -Coach *-- User -Coach *-- TrainingRepository -Coach *-- Training - class CoachAthlete { - - TrainingRepository trainingRepository - - array usersList - + __construct(trainingRepository: ?TrainingRepository) + getUsersList(): ?array + getUserList(user: User): User - + getTraining(): TrainingRepository - + getTrainingsList(): ?array - + getTrainingList(training: Training): ?Training - + CheckAdd(user: User): bool - + CheckAddTraining(training: Training): bool - + addUser(user: User): bool - + removeUser(user: User): bool - + addTraining(training: Training): bool - + removeTraining(training: Training): bool } -CoachAthlete --|> Coach -CoachAthlete *-- User -CoachAthlete *-- TrainingRepository -CoachAthlete *-- Training - abstract class Role { - int id - array usersList @@ -95,26 +43,6 @@ abstract class Role { + abstract removeTraining(training: Training): bool } -Role *-- User -Role *-- Training -Role *-- TrainingRepository - -class Training { - - int idTraining - - DateTime date - - float latitude - - float longitude - - String description - - String feedback - + __construct(idTraining: int, date: DateTime, latitude: float, longitude: float, description: ?String = null, feedback: ?String = null) - + getId(): int - + getDate(): DateTime - + getLocation(): String - + getDescription(): String - + getFeedback(): String - + __toString(): String -} - class User { - int id - String username @@ -126,7 +54,6 @@ class User { - float taille - float poids - DateTime dateNaissance - - Role role + __construct(id: int, username: String, nom: string, prenom: string, email: string, motDePasse: string, sexe: string, taille: float, poids: float, dateNaissance: DateTime, role: Role) + getId(): int + setId(id: int): void @@ -154,5 +81,31 @@ class User { + __toString(): String } -User *-- Role +class Statistique { + - idStat: int + - distanceTotale: float + - poids: float + - tempsTotal: time + - FCmoyenne: int + - FCmin: int + - FCmax: int + - cloriesBrulees: int + + getIdStat(): int + + getDistanceTotale(): float + + getPoids(): float + + getTempsTotal(): time + + getFCmoyenne(): int + + getFCmin(): int + + getFCmax(): int + + getCloriesBrulees(): int + + __toString(): String +} + +CoachAthlete --|> Coach +Coach --|> Role +Athlete --|> Role +User -> Role : role +Role -> User : usersList +Athlete -> Statistique : statsList +@enduml ```` diff --git a/Documents/Diagramme/DiagrammeDeClasses/README_issue022.md b/Documents/Diagramme/DiagrammeDeClasses/README_issue022.md index 166b574e..77b8e832 100644 --- a/Documents/Diagramme/DiagrammeDeClasses/README_issue022.md +++ b/Documents/Diagramme/DiagrammeDeClasses/README_issue022.md @@ -35,7 +35,6 @@ Bienvenue dans le cœur de notre système, où la gestion des utilisateurs et de Plongez-vous dans ce diagramme pour découvrir comment notre application crée un écosystème social dynamique, permettant aux utilisateurs d'interagir, de rester informés et de développer des liens significatifs au sein de la communauté. -- Ajout d'amis ```plantuml class User { + name : string @@ -90,96 +89,4 @@ interface IUserRepository { } IUserRepository ..> User -``` - -## Diagrammes de séquence -- Envoi de demande d'ami : -```plantuml -actor User as u -boundary View as v -control Controller as c -entity Model as m - -u->v:/Friend -v->c:Get : /Friends -c->m:getFriends(userId) -m-->c::friends : User[] -c-->v:renderView(Friends) -v-->u: -u->v:input : name -v->c:Get : searchFriends? pseudo=name -c->m:searchUser(name:string) -m->m:notify(from : user, to : user, action : action) -m-->c:OK -c-->v:OK -v-->u:OK -``` -- Accepter une demande d'ami : -```plantuml -actor User as u -boundary View as v -control Controller as c -entity Model as m - -m->c:RecevoirDemandeAmi(idUser) -c->v:AfficherDemandeAmi(idUser) -v->u:PageDemandeAmi(idUser) -u-->v:RepondreDemandeAmi(bool) -v-->c:EnregistrerReponse(bool) -c-->m:EnvoyerReponse(bool) -``` - -- Supprimer un ami : -```plantuml -actor User as u -boundary View as v -control Controller as c -entity Model as m - -u->v: Request Friends Page -v->c: Get /Friends -c->m: getFriends(userId) -alt successful retrieval - m-->c: friendsList: User[] -else retrieval failed - m-->c: error -end -c-->v: renderView(friendsList) -v-->u: Display Friends - -u->v: clickDeleteFriend(idUser) -v->c: Post: deleteFriend(idUser) -c->m: deleteFriend(idUser) -alt successful deletion - m-->c: updatedFriendsList: User[] -else deletion failed - m-->c: error -end -c-->v: renderView(updatedFriendsList) -v-->u: Display Updated Friends -``` - -## Diagrammes de cas d'utilisation -- Gestion du compte et des amitiés -```plantuml -left to right direction -:Athlete: as a - -a --> (Ajouter un ami) -a --> (Supprimer un ami) -a --> (Voir mes amis) -a --> (Modifier mes informations) -(Ajouter un ami)->(Saisir le nom de l'ami) -(Supprimer un ami)..>(S'authentifier) : <> -(Ajouter un ami)..>(S'authentifier) : <> -(Voir mes amis)..>(S'authentifier) : <> -(Voir mes amis)..>(Lister les amis) : <> -(Modifier mes informations)..>(Informations personnelles) : <> -(Modifier mes informations)..>(Informations de connexion) : <> -(Lister les amis)..>(Voir son profil) : <> -(Voir son profil)..>(Voir ses activités) : <> -(Voir son profil)..>(Voir ses statistiques) : <> -(S'authentifier)..>(S'inscrire) : <> -(S'authentifier)..>(Se connecter) : <> -(S'inscrire)..>(Inscription Athlète) : <> ``` \ No newline at end of file diff --git a/Documents/Diagramme/DiagrammeDeSequence/README_demandeAmi.md b/Documents/Diagramme/DiagrammeDeSequence/README_demandeAmi.md index 01af7ed2..c5a1fa9d 100644 --- a/Documents/Diagramme/DiagrammeDeSequence/README_demandeAmi.md +++ b/Documents/Diagramme/DiagrammeDeSequence/README_demandeAmi.md @@ -28,4 +28,4 @@ Bienvenue dans le processus dynamique de recherche d'amis au sein de notre appli À travers ce diagramme de séquence, découvrez comment notre application facilite le processus de recherche d'amis, fournissant aux utilisateurs une interface conviviale et réactive pour élargir leur réseau social au sein de la plateforme. -Diagramme de Séquence : Recherche d'Amis \ No newline at end of file +Diagramme de Séquence : Recherche d'Amis \ No newline at end of file