first
This commit is contained in:
38
MlnVdM.plantUML
Normal file
38
MlnVdM.plantUML
Normal file
@@ -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
|
||||
1
MlnVdM.svg
Normal file
1
MlnVdM.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 5.0 KiB |
BIN
plantUML/PlantUML_Language_Reference_Guide_en.pdf
Normal file
BIN
plantUML/PlantUML_Language_Reference_Guide_en.pdf
Normal file
Binary file not shown.
37
plantUML/exemples/DC.plantuml
Normal file
37
plantUML/exemples/DC.plantuml
Normal file
@@ -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
|
||||
7
plantUML/exemples/DC.plantuml~
Normal file
7
plantUML/exemples/DC.plantuml~
Normal file
@@ -0,0 +1,7 @@
|
||||
@startuml
|
||||
class Station
|
||||
|
||||
class Liaison ---> "customer\n1" Station
|
||||
|
||||
|
||||
@enduml
|
||||
58
plantUML/exemples/DC.svg
Normal file
58
plantUML/exemples/DC.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 14 KiB |
46
plantUML/exemples/DCPosition.plantuml
Normal file
46
plantUML/exemples/DCPosition.plantuml
Normal file
@@ -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
|
||||
37
plantUML/exemples/DCPosition.plantuml~
Normal file
37
plantUML/exemples/DCPosition.plantuml~
Normal file
@@ -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
|
||||
75
plantUML/exemples/DCPosition.svg
Normal file
75
plantUML/exemples/DCPosition.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 16 KiB |
41
plantUML/exemples/DCU.plantUML
Normal file
41
plantUML/exemples/DCU.plantUML
Normal file
@@ -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
|
||||
1
plantUML/exemples/DCU.svg
Normal file
1
plantUML/exemples/DCU.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 6.6 KiB |
41
plantUML/readme.md
Normal file
41
plantUML/readme.md
Normal file
@@ -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
|
||||
|
||||
|
||||
```
|
||||
6
plantUML/readme.md~
Normal file
6
plantUML/readme.md~
Normal file
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user