PlantUML: различия между версиями

Материал из Поле цифровой дидактики
(Содержимое страницы заменено на « Category:DigitalTool»)
Метка: замена
Строка 1: Строка 1:
https://crashedmind.github.io/PlantUMLHitchhikersGuide/


=== Не работают русские буковки внутри ===
[[Category:DigitalTool]]
<uml>
{{
@startuml
 
caption Figure 1
Alice -> Bob: Hello
 
@enduml
 
}}
</uml>
----
 
<uml>
{{
@startuml
@startuml
header some header
 
footer some footer
 
title My title
 
caption This is caption
 
legend
The legend
end legend
 
archimate #Technology "VPN Server" as vpnServerA <<technology-device>>
 
rectangle GO #lightgreen
rectangle STOP #red
rectangle WAIT #orange
 
@enduml
 
 
 
@enduml
 
}}
</uml>
 
=== Class ===
 
<uml>
{{
@startuml
 
a -- b
 
@enduml
}}
</uml>
 
=== Диаграмма последовательности ===
<uml>
@startuml
a->b
@enduml
</uml>
 
 
<uml>
@startuml
b -> c
@enduml
 
</uml>
 
=== Активность ===
<uml>
@startuml
 
start
 
if (Graphviz installed?) then (yes)
  :process all\ndiagrams;
else (no)
  :process only
  __sequence__ and __activity__ diagrams;
endif
 
stop
 
@enduml
 
</uml>
 
* [[Graphviz]] - лучше работает с русскими буковками
* [[Archimate]] - возможность использовать все эти иконки внутри вики
 
 
=== Алгоритмы в UML ===
<uml>
@startuml
start
if (condition A) then (yes)
  :Text 1;
elseif (condition B) then (yes)
  :Text 2;
  stop
(no) elseif (condition C) then (yes)
  :Text 3;
(no) elseif (condition D) then (yes)
  :Text 4;
else (nothing)
  :Text else;
endif
stop
@enduml
</uml>
 
----
<uml>
Begin.start;
Activity.eat("Eat something really good", "from the fridge");
Activity.read("Read a book");
End.finish;
 
topToBottom(20)(start, eat, read, finish);
 
drawObjects(start, eat, read, finish);
 
clink(transition)(start, eat);
clink(transition)(eat, read);
clink(transition)(read, finish);
</uml>

Версия 09:26, 4 ноября 2023