Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
test-diagrams [2022-03-31 23:53] – created niktest-diagrams [2022-04-08 02:08] (current) nik
Line 2: Line 2:
  
 === d i a g r a m s / plantuML === === d i a g r a m s / plantuML ===
-(using the [[https://www.dokuwiki.org/plugin:plantumlparser|plantUML render plugin]]+using the [[https://www.dokuwiki.org/plugin:plantumlparser|plantUML render plugin]] with some useful docs near https://plantuml.com/
  
 <uml> <uml>
Line 20: Line 20:
 </uml> </uml>
  
 +some examples from https://real-world-plantuml.com/umls/4561383312064512
  
 +<uml>
 +title DCP - Cahier des charges\n MOA : <b>obde</b> / MOE : <b>teamflat</b>
 +left to right direction
 +skinparam shadowing false
 +
 +class "Role" as role
 +class "Adherent" as adherent
 +class "Materiel" as materiel
 +class "TypeMateriel" as type
 +class "Evenement" as evenement
 +class "Planning" as planning
 +class "Tache" as tache
 +class "Demande" as demande
 +class "Question" as question
 +class "SMSGroupe" as sms
 +
 +evenement "1" -- "0..1" planning
 +evenement "1" -- "0..*" adherent
 +tache "1..*" -- "1" planning
 +tache "0..*" -- "0..*" adherent
 +role "0..1" -- "0..*" adherent
 +question "0..*" -- "1" adherent
 +sms "1..*" -- "0..*" adherent
 +role "0..*" -- "0..1" role : dirige
 +demande "0..*" - "1" evenement
 +adherent "0..*" - "1" demande
 +type "0..*" - "1" materiel
 +demande "1" - "0..*" materiel
 +</uml>
 +
 +<uml>
 +    skinparam backgroundColor #EEEBDC
 +    actor 使用者
 +    participant " 頭等艙" as A
 +    participant " 第二類" as B
 +    participant " 最後一堂課" as 別的東西
 +    使用者-> A: 完成這項工作
 +    activate A
 +    A -> B: 創建請求
 +    activate B
 +    B -> 別的東西: 創建請求
 +    activate 別的東西
 +    別的東西--> B: 這項工作完成
 +    destroy 別的東西
 +    B --> A: 請求創建
 +    deactivate B
 +    A --> 使用者: 做完
 +    deactivate A
 + </uml>
 +
 +<uml>
 +skinparam activity {
 +    FontColor          white
 +    AttributeFontColor white
 +    FontSize           17
 +    AttributeFontSize  15
 +    AttributeFontname  Droid Sans Mono
 +    BackgroundColor    #527BC6
 +    BorderColor        black
 +    ArrowColor         #222266
 +}
 +
 +partition start {
 +(*) --> if "steam pump\nmounted ?" then
 +    -right-> [No] "echo a warning"
 +    --> (*)
 +else
 +    if "linked to\norchestra ?" then
 +        -right-> [No] "echo location "
 +        --> (*)
 +    else
 +        if "flying ?" then
 +            -right-> [No] "start flying"
 +            if "started" then
 +                --> [No] "exit stage left"
 +                --> (*)
 +            else
 +                --> [Yes] ===A===
 +            endif
 +        else
 +            --> [Yes] ===A===
 +        endif
 +        --> "start chasing elephants"
 +        if "started" then
 +            --> [No] "exit 2"
 +            --> (*)
 +        else
 +            --> [Yes] (*)
 +        endif
 +    endif
 +endif
 +}
 +</uml>
 +
 +<uml>
 +@startjson
 +{"coord":{"lon":144.9756,"lat":-37.8401},"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04d"}],"base":"stations","main":{"temp":294.97,"feels_like":294.83,"temp_min":292.49,"temp_max":298.92,"pressure":1024,"humidity":62},"visibility":10000,"wind":{"speed":0.89,"deg":211,"gust":2.24},"clouds":{"all":71},"dt":1649382668,"sys":{"type":2,"id":2008797,"country":"AU","sunrise":1649363978,"sunset":1649405049},"timezone":36000,"id":2148876,"name":"South Yarra","cod":200}
 +@endjson
 +</uml>
  • test-diagrams.1648770794.txt.gz
  • Last modified: 2022-03-31 23:53
  • by nik