Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gaetan Carabetta
projet_nf17_p19_tdg1_groupe2
Commits
ef1b20a7
Commit
ef1b20a7
authored
May 29, 2019
by
Gaetan Carabetta
Browse files
correction uml + update mld
parent
9aab1cc6
Changes
3
Hide whitespace changes
Inline
Side-by-side
mcd/MCD_OO.png
View replaced file @
9aab1cc6
View file @
ef1b20a7
79 KB
|
W:
|
H:
79.1 KB
|
W:
|
H:
2-up
Swipe
Onion skin
mcd/MCD_OO.uml
View file @
ef1b20a7
...
...
@@ -96,7 +96,7 @@ N1 .. Traitement
Animal "1..*" <-- "1" Client : possede <
' Association et groupe d'association
Traitement "0..*"
<
-- "1..*" Medicament : liste >
Traitement "0..*" --
>
"1..*" Medicament : liste >
(Traitement, Medicament) .. Posologie
' Association modéliser dans un attribut de Personnel
...
...
mld/MLD_OO
View file @
ef1b20a7
...
...
@@ -4,28 +4,33 @@ Tous les héritages sont exclusifs
#### Relationnel
Client(#idClient:int, nom: string, prenom: string, ddn: date, adresse: string, numero: int) avec {(nom, prenom, ddn) KEY, 0100000000 < numero < 0799999999 }
Assistant(#idAssistant: int, nom: string, prenom: string, ddn: date, adresse: string, numero: int, specialite=>ClasseEspece(nomClasse)) avec {(nom, prenom, ddn) KEY, 0100000000 < numero < 0799999999 }
Veterinaire(#idVeterinaire: int, nom: string, prenom: string, ddn: date, adresse: string, numero: int, specialite=>ClasseEspece(nomClasse)) avec {(nom, prenom, ddn) KEY, 0100000000 < numero < 0799999999 }
Client(#idClient:int, nom: string, prenom: string, ddn: date, adresse: string, numero: int, animaux[1..*]: OID_tAnimaux) avec {(nom, prenom, ddn) KEY, 0100000000 < numero < 0799999999 }
ClasseEspece(#nomClasse: string)
Assistant(#idAssistant: int, nom: string, prenom: string, ddn: date, adresse: string, numero: int, specialite=>o tClasseEspece) avec {(nom, prenom, ddn) KEY, 0100000000 < numero < 0799999999 }
Espece(#nomEspece: string, nomClasse=>ClasseEspece)
Veterinaire(#idVeterinaire: int, nom: string, prenom: string, ddn: date, adresse: string, numero: int, specialite=>o tClasseEspece) avec {(nom, prenom, ddn) KEY, 0100000000 < numero < 0799999999 }
Animal(#idAnimal: int, nom: string, poids: float, taille: float, naissance: date,
idClient=>Client(idClient), especeNom=>Espece(nom))
type tyClasseEspece : <nomClasse: string>
tClasseEspeces de tyClasseEspece(#nomClasse)
type tyEspece : <nomEspece: string, nomClasse=>o tClasseEspeces>
tEspeces de tyEspece(#nomEspece)
type tyAnimal : <idAnimal: int, nom: string, poids: float, taille: float, naissance: date, idClient=>Client(idClient), especeNom=>o tEspeces, traitements[0..*]: OID_tTraitements>
avec {poids > 0, taille > 0; naissace = (NULL OR date)}
tAnimaux de tyAnimal(#idAnimal)
Traitement
(#
idTraitement: int, idAnimal=>Anima
l(idAnimal),
idVeterinaire=>Veterinaire(idVeterinaire)
)
type ty
Traitement
: <
idTraitement: int, idAnimal=>
o t
Anima
ux, idVeterinaire=>Veterinaire(idVeterinaire), medicaments[1..*]: OID_tMedicaments>
tTraitements de tyTraitement(#idTraitement
)
Medicament
(#
nomMolec: string, description: string
)
type ty
Medicament
: <
nomMolec: string, description: string
, especes[1..*]: OID_tEspeces>
avec { la methode espece_autoriser() qui renvois
vrai si l'animal peut prendre le médicament }
tMedicaments de tyMedicament(#nomMolec)
EspeceMedicament(
#
nomEspece=>Espece,
#
nomMolec=>Medicament)
t
EspeceMedicament(nomEspece=>
o t
Espece
s
, nomMolec=>
o t
Medicament
s
)
Posologie(
#
idAnimal=>
Animal(id
Anima
l)
,
#
nomMolec=>Medicament
(nomMolec)
,
Posologie(idAnimal=>
o t
Anima
ux
, nomMolec=>
o t
Medicament
s
,
#debut: date, duree: int, nbJourna: int)
avec {debut > 0, duree > 0, nbJourna > 0; debut {local key}}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment