mise à jour
This commit is contained in:
14
TP1/Liaison.java
Normal file
14
TP1/Liaison.java
Normal 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
17
TP1/Ligne.java
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
67
TP1/MlnVdM.plantUML
Normal file
67
TP1/MlnVdM.plantUML
Normal file
@@ -0,0 +1,67 @@
|
||||
@startuml
|
||||
scale 2
|
||||
|
||||
' anything after a quote is ignored (a comment).
|
||||
|
||||
/' anything between slash quote over several lines
|
||||
potentially is also ignored '/
|
||||
|
||||
/' you can try to uncomment the following line to
|
||||
see what happens'/
|
||||
|
||||
' left to right direction
|
||||
|
||||
object "Satiton : Melun" as mln
|
||||
object "Satiton : Gare de Lyon" as gdl
|
||||
object "Satiton : Maison-Alfort" as ma
|
||||
object "Satiton : Vert-de-Maison" as vdm
|
||||
|
||||
object "Liaison 1" as l1
|
||||
object "Liaison 2" as l2
|
||||
object "Liaison 3" as l3
|
||||
|
||||
object "Ligne R" as lr
|
||||
object "Ligne RER D" as rerd
|
||||
|
||||
object "PS : lR" as pslr
|
||||
object "PS : RER D" as psrer
|
||||
|
||||
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
|
||||
|
||||
|
||||
|
||||
|
||||
@enduml
|
||||
BIN
TP1/MlnVdM.png
Normal file
BIN
TP1/MlnVdM.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 48 KiB |
6
TP1/Parcours.java
Normal file
6
TP1/Parcours.java
Normal file
@@ -0,0 +1,6 @@
|
||||
public class Parcours{
|
||||
Station debut;
|
||||
Station fin;
|
||||
public Parcours(){
|
||||
}
|
||||
}
|
||||
5
TP1/ParcoursComplexe.java
Normal file
5
TP1/ParcoursComplexe.java
Normal file
@@ -0,0 +1,5 @@
|
||||
public class ParcoursComplexe{
|
||||
public ParcoursComplexe(){
|
||||
|
||||
}
|
||||
}
|
||||
5
TP1/ParcoursSimple.java
Normal file
5
TP1/ParcoursSimple.java
Normal file
@@ -0,0 +1,5 @@
|
||||
public class ParcoursSimple implements Parcours{
|
||||
public ParcoursSimple(){
|
||||
|
||||
}
|
||||
}
|
||||
9
TP1/Station.java
Normal file
9
TP1/Station.java
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user