From 66c3bbfa94d8a41e58adf154be25e6d86fee8e30 Mon Sep 17 00:00:00 2001 From: "martial.simon" Date: Sun, 13 Apr 2025 19:54:19 +0200 Subject: init: initial commit --- MOD1/Lecture 1.md | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100755 MOD1/Lecture 1.md (limited to 'MOD1/Lecture 1.md') diff --git a/MOD1/Lecture 1.md b/MOD1/Lecture 1.md new file mode 100755 index 0000000..7c43c47 --- /dev/null +++ b/MOD1/Lecture 1.md @@ -0,0 +1,64 @@ +## Exercice II +```plantuml +class Admin +class Salle { + creneauLibre() : Creneau[] +} +class Semaine +class Jour +class Creneau { + heureDebut : integer + heureFin : integer +} +Admin --|> "planning" Salle +Admin -- "calendrier" Semaine +Semaine -- "ouvrables" Jour +Creneau -- Jour +Salle -- "occupation *" Creneau +``` + +## Exercice III +Q1. +```plantuml +skinparam classAttributeIconSize 0 +class Singleton { + - {static} instance : Singleton + - value : String + - Singleton(s : String) + + {static} getInstance(s : String) : Singleton + + getValue() +} +``` + +Q2. Une seule instance de la classe, à laquelle on accède via `getInstance()` + +## Exercice IV + +```plantuml +skinparam classAttributeIconSize 0 +class Etudiant { + id : long + nom : String + prénom : String + naissance : String +} +class Enseignant { + id : long + nom : String + prénom : String + naissance : String +} +class Cours { + nom : String + nbHeuresTD : int + nbHeuresCM : int + nbHeuresTP : int +} +class Groupe +Cours "1..n" -- "1" Enseignant +Cours "1..n" -- "1..n" Groupe +Groupe "1" -- "1..n" Etudiant +``` + +Q7. Non +Q8. Non plus \ No newline at end of file -- cgit v1.2.3