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

View File

@@ -1,13 +0,0 @@
-- Diagramme séquence question 2 TP n°2
@startuml
autonumber
participant "VueJardin:Pape14" as v
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
v -> v ++ : setParcelleVisible(p)
v --
return
@enduml

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 8.0 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 6.2 KiB

14
TP1/Liaison.java Normal file
View File

@@ -0,0 +1,14 @@
public class Liaison{
private Station debut;
private Station fin;
private Ligne ligne;
public Liaison(Station s1,Station s2,Ligne l){
this.debut = s1;
this.fin = s2;
this.ligne = l;
}
public String toString(){
return this.debut+" -> "+this.fin;
}
}

17
TP1/Ligne.java Normal file
View File

@@ -0,0 +1,17 @@
public class Ligne{
private String nom;
private Liaison[] tabLiaison;
private int nbLiaison = 0;
public Ligne(String s){
this.nom = s;
}
public String toString(){
String s = "Ligne "+this.nom;
for(int i = 0; i < nbLiaison ;i++){
s += "\n";
s += this.tabLiaison[i];
}
return s;
}
}

View File

@@ -26,13 +26,42 @@ object "Ligne RER D" as rerd
object "PS : lR" as pslr
object "PS : RER D" as psrer
object "PAC : Melun | Vert-de-Maison" as pac
object "Parcours complexe: Parcours" as pc
mln<-- "debut" l1
gdl<-- "fin" l1
gdl<-- "debut" l2
ma<-- "fin" l2
ma<-- "debut" l3
vdm<-- "fin" l3
mln<-- "debut" pslr
gdl<-- "fin" pslr
gdl<-- "debut" psrer
ma<-- "fin" psrer
mln<-- "debut" pc
vdm<-- "fin" pc
l1--o lr
l1--o pslr
l2--o rerd
l2--o psrer
l3--o rerd
l3--o psrer
l1--> lr
l2--> rerd
l3--> rerd
pslr--> lr
psrer--> rerd
pc o--pslr
pc o--psrer
' describe the arrows
l1 o
@enduml

BIN
TP1/MlnVdM.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

6
TP1/Parcours.java Normal file
View File

@@ -0,0 +1,6 @@
public class Parcours{
Station debut;
Station fin;
public Parcours(){
}
}

View File

@@ -0,0 +1,5 @@
public class ParcoursComplexe{
public ParcoursComplexe(){
}
}

5
TP1/ParcoursSimple.java Normal file
View File

@@ -0,0 +1,5 @@
public class ParcoursSimple implements Parcours{
public ParcoursSimple(){
}
}

9
TP1/Station.java Normal file
View File

@@ -0,0 +1,9 @@
public class Station{
private String nom;
public Station(String s){
this.nom = s;
}
public String toString(){
return "Station : "+this.nom;
}
}

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

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

BIN
TP2/plantuml.jar Normal file

Binary file not shown.

33
TP3/DC3.plantuml Normal file
View File

@@ -0,0 +1,33 @@
@startuml
scale 1.5
abstract class "Surface finie" as surfFini
class "Cercle" as circ
class "Rectangle" as rect
class "Carre" as carr
rect --|> surfFini
carr --|> surfFini
circ --|> surfFini
class "Fractale" as fract
fract : int[] pts
interface "Dessinable" as dessin
dessin : String tracer()
rect ..|> dessin
carr ..|> dessin
surfFini : Float perim
surfFini : int[] pts
surfFini : int[] getPoints()
surfFini : Float getPerim()
interface "DessinableApproche" as dessinApp
dessinApp : String tracerApprox()
circ ..|> dessinApp
fract ..|> dessinApp
@enduml

BIN
TP3/DC3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
TP3/plantuml.jar Normal file

Binary file not shown.