commit 691a87a35af67ba520a278766570bc5c1a9777f9 Author: Val Jenson Date: Fri Nov 14 10:11:53 2025 +0100 first diff --git a/MlnVdM.plantUML b/MlnVdM.plantUML new file mode 100644 index 0000000..9da40de --- /dev/null +++ b/MlnVdM.plantUML @@ -0,0 +1,38 @@ +@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 "PAC : Melun | Vert-de-Maison" as pac + + + +' describe the arrows + +l1 o + + +@enduml diff --git a/MlnVdM.svg b/MlnVdM.svg new file mode 100644 index 0000000..e4f5aa5 --- /dev/null +++ b/MlnVdM.svg @@ -0,0 +1 @@ +Satiton : MelunSatiton : Gare de LyonSatiton : Maison-AlfortSatiton : Vert-de-MaisonLigne RLigne RER DPS : lRPS : RER DPAC : Melun | Vert-de-Maison \ No newline at end of file diff --git a/plantUML/PlantUML_Language_Reference_Guide_en.pdf b/plantUML/PlantUML_Language_Reference_Guide_en.pdf new file mode 100644 index 0000000..ca76c0d Binary files /dev/null and b/plantUML/PlantUML_Language_Reference_Guide_en.pdf differ diff --git a/plantUML/exemples/DC.plantuml b/plantUML/exemples/DC.plantuml new file mode 100644 index 0000000..156dfb6 --- /dev/null +++ b/plantUML/exemples/DC.plantuml @@ -0,0 +1,37 @@ +@startuml +scale 1.5 + +together { +class "Station" +class "Liaison" +} + +class "Ligne" + +together { +abstract class "Parcours" +class "Parcours Simple" +class "Parcours Complexe" +} + +Station "1\n-debut" <-- Liaison +Station "1\n-fin" <-- Liaison +Ligne <-- Liaison + +Ligne *-- Liaison + +Station "1\n-debut" <-- Parcours +Station "1\n-fin" <-- Parcours + +Parcours <|-- "Parcours Simple" +Ligne <-- "Parcours Simple" +Liaison --* "Parcours Simple" +note right on link #blue +Liaisons de la meme ligne +qui se suivent +end note + +Parcours <|-- "Parcours Complexe" +"Parcours Simple" --* "Parcours Complexe" + +@enduml diff --git a/plantUML/exemples/DC.plantuml~ b/plantUML/exemples/DC.plantuml~ new file mode 100644 index 0000000..c1adcb0 --- /dev/null +++ b/plantUML/exemples/DC.plantuml~ @@ -0,0 +1,7 @@ +@startuml +class Station + +class Liaison ---> "customer\n1" Station + + +@enduml diff --git a/plantUML/exemples/DC.svg b/plantUML/exemples/DC.svg new file mode 100644 index 0000000..5cb9e24 --- /dev/null +++ b/plantUML/exemples/DC.svg @@ -0,0 +1,58 @@ +StationLiaisonLigneParcoursParcours SimpleParcours Complexe1-debut1-fin1-debut1-finLiaisons de la même lignequi se suivent \ No newline at end of file diff --git a/plantUML/exemples/DCPosition.plantuml b/plantUML/exemples/DCPosition.plantuml new file mode 100644 index 0000000..df38ee6 --- /dev/null +++ b/plantUML/exemples/DCPosition.plantuml @@ -0,0 +1,46 @@ +@startuml +scale 1.5 + +together { +class "Station" +class "Liaison" +class "Ligne" +} + + +together { +abstract class "Parcours" +class "Parcours Simple" +class "Parcours Complexe" +} + +Station "1\n-debut" <-down- Liaison +Station "1\n-fin" <-down- Liaison +Ligne <-- Liaison + +Ligne *-- Liaison + +Station "1\n-debut" <-left- Parcours +Station "1\n-fin" <-left- Parcours + +Parcours <|-up- "Parcours Simple" + +Ligne <-- "Parcours Simple" + +Liaison -left-* "Parcours Simple" +note on link #blue +Liaisons de la meme ligne +qui se suivent +end note + + +Parcours <|-up- "Parcours Complexe" +"Parcours Simple" --* "Parcours Complexe" +note on link #blue +Parcours simples +qui se suivent +end note + + + +@enduml diff --git a/plantUML/exemples/DCPosition.plantuml~ b/plantUML/exemples/DCPosition.plantuml~ new file mode 100644 index 0000000..156dfb6 --- /dev/null +++ b/plantUML/exemples/DCPosition.plantuml~ @@ -0,0 +1,37 @@ +@startuml +scale 1.5 + +together { +class "Station" +class "Liaison" +} + +class "Ligne" + +together { +abstract class "Parcours" +class "Parcours Simple" +class "Parcours Complexe" +} + +Station "1\n-debut" <-- Liaison +Station "1\n-fin" <-- Liaison +Ligne <-- Liaison + +Ligne *-- Liaison + +Station "1\n-debut" <-- Parcours +Station "1\n-fin" <-- Parcours + +Parcours <|-- "Parcours Simple" +Ligne <-- "Parcours Simple" +Liaison --* "Parcours Simple" +note right on link #blue +Liaisons de la meme ligne +qui se suivent +end note + +Parcours <|-- "Parcours Complexe" +"Parcours Simple" --* "Parcours Complexe" + +@enduml diff --git a/plantUML/exemples/DCPosition.svg b/plantUML/exemples/DCPosition.svg new file mode 100644 index 0000000..5615156 --- /dev/null +++ b/plantUML/exemples/DCPosition.svg @@ -0,0 +1,75 @@ +StationLiaisonLigneParcoursParcours SimpleParcours Complexe1-debut1-fin1-debut1-finLiaisons de la meme lignequi se suiventParcours simplesqui se suivent \ No newline at end of file diff --git a/plantUML/exemples/DCU.plantUML b/plantUML/exemples/DCU.plantUML new file mode 100644 index 0000000..82d2c6e --- /dev/null +++ b/plantUML/exemples/DCU.plantUML @@ -0,0 +1,41 @@ +@startuml +scale 1.5 + +' 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 + +' list the actors + +actor "Librarian" as lib +actor "Head Librarian" as adlib +actor "unauthentified" as other + +' list the usecase + +rectangle OldFashionLibrary { +usecase "Deal with members" as UC1 +usecase "Deal with books" as UC2 +usecase "Log out" as UC3 +usecase "Log in" as UC4 +usecase "Deal with litigation" as UC5 + +} + +' describe the arrows + +lib -- UC1 +lib -- UC2 +lib -- UC3 +other -- UC4 +adlib -- UC5 + +lib <|-- adlib + +@enduml diff --git a/plantUML/exemples/DCU.svg b/plantUML/exemples/DCU.svg new file mode 100644 index 0000000..60c09d5 --- /dev/null +++ b/plantUML/exemples/DCU.svg @@ -0,0 +1 @@ +OldFashionLibraryDeal with membersDeal with booksLog outLog inDeal with litigationLibrarianHead Librarianunauthentified \ No newline at end of file diff --git a/plantUML/readme.md b/plantUML/readme.md new file mode 100644 index 0000000..a1d1228 --- /dev/null +++ b/plantUML/readme.md @@ -0,0 +1,41 @@ +# PlantUML + +alternative à starUML pour générer des diagrammes UML. + +Différence principale : du texte qu'on peut écrire dans un éditeur de texte plutôt qu'un cliquodrome. + +Pour l'instant pas de rendu possible dans le markdown du serveur git. + +Vous avez la documentation en pdf. +J'ai mis des exemples dans le répertoire exemples. + +En TP je vais vous demander d'utiliser plantUML pour réaliser vos diagrammes. + +Normalement plantUMl est installé sur les machines de l'IUT. +Sinon pour l'installer, il suffit de récupérer le jar. +Il est assez facile de l'intégrer à votre éditeur normalement. + +À partir du jar, vous pouvez générer vos diagrammes (privilégiez un format vectoriel comme svg). + +Si il y a un problème dans le placement par défaut, vous pouvez essayer de regrouper des choses avec le mot clé together, ou d'indiquer le sens des flèches. + +L'idée est quand même de laisser l'outil vous faire un rendu automatique. + + + +## Alternative similaire à PlantUML + +Il existe une alternative qui elle est rendue correctement dans du markdown sur le serveur git du département: mermaid. +Toutefois cet outil semble être moins utilisé que plantUML avec encore pas mal de parties instables. + +```mermaid +classDiagram + +class Station +class Liaison +class Ligne + +Station --> "2" Liaison + + +``` diff --git a/plantUML/readme.md~ b/plantUML/readme.md~ new file mode 100644 index 0000000..dc5b10e --- /dev/null +++ b/plantUML/readme.md~ @@ -0,0 +1,6 @@ +# PlantUML + +alternative à starUML pour générer des diagrammes UML. + +Différence principale : du texte qu'on peut écrire dans un éditeur de texte plutôt qu'un cliquodrome. +