mise à jour

This commit is contained in:
2025-12-09 21:25:47 +01:00
parent b4273e9272
commit df9520821a
20 changed files with 181 additions and 17 deletions

61
TP2/DSq2.plantuml Normal file
View File

@@ -0,0 +1,61 @@
@startuml
autonumber
participant "VueJardin:Pape14" as vue
participant "Parcelle:p" as p
participant "Parcelle:p0" as p0
participant "Parcelle:p1" as p1
participant "Parcelle:p2" as p2
participant "Parcelle:p3" as p3
vue -> vue ++ : setParcelleVisible(p)
vue --
vue -> p0 ++ : getSplit()
return V
vue -> p0 ++ : getFirst()
return p2
vue -> vue ++ : setParcelleVisible(p2)
vue --
vue -> p2 ++ : getSplit()
return V
vue -> p2 ++ : getFirst()
return p4
vue -> vue ++ : setParcelleVisible(p4)
vue --
vue -> p4 ++ : getSplit()
return Null
vue -> vue ++ : setSplit(p4,V)
note right
void setSplit(Parcelle p, Orientation o) : divise
une parcelle selon l'orientation donnée
end note
vue --
vue -> p4 ++ : reset()
p4 -> p5 !! : delete
p4 -> p6 !! : delete
return
vue -> vue ++ : setSplit(p4,H)
vue --
vue -> vue ++ : setParcelleVisible(p0)
vue --
vue -> p0 ++ : getFirst()
return p1
vue -> vue ++ : setParcelleVisible(p1)
vue --
vue -> p1 ++ : getLegume()
note right
Legume getLegume() : récupère
le légume de la parcelle
end note
return "Romaine"
vue -> p1 ++ : removeLegume()
note right
void removeLegume() : supprime
le légume de la parcelle
end note
return
vue -> p1 ++ : addLegume("EPINARDS")
note right
void addLegume(Legume l) : insère
un légume dans la parcelle
end note
return
@enduml

BIN
TP2/DSq2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

View File

@@ -0,0 +1,22 @@
-- Exemple tiré de la documentation
-- utilie des abbréviations
@startuml
autonumber
participant "VueJardin:Pape14" as v
participant "Parcelle:p0" as p0
participant "Parcelle:p1" as p1
participant "Parcelle:p2" as p2
participant "Parcelle:p3" as p3
v -> p0 ++ : getSplit()
return V
v -> p0 ++ : getFirst()
return p1
v -> v ++ : setParcelleVisible(p1)
v --
v -> p1 ++ : getSplit()
return H
v -> p1 ++ : reset()
p1 -> p2 !! : delete
p1 -> p3 !! : delete
return
@enduml

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 14 KiB

BIN
TP2/plantuml.jar Normal file

Binary file not shown.

8
TP2/tp2-reponses.txt Normal file
View File

@@ -0,0 +1,8 @@
Synopsis figure 3:
- Le jardinier Papé14 visionne la parcelle initiale de son jardin
- Le jardinier divise ca pacerelle vériticialement
- Il récupère la sous pacerelle gauche P1
- Il sélectionne la sous pacerelle P1
- Le jardinier divise ca sous pacerelle P1 horizontalement
- Le jardinier détruit les sous pacerelle de P1, P2 et p3