This tutorial is from the "Zentrums für digitale Barrierefreiheit und Assistive Technologien (ACCESS@KIT)"(Center for Digital Accessibility and Assistive Technologies (ACCESS@KIT))
-
Class Diagram: Basic declaration of classes and OOP. See also further examples: classes
-
Use Case Diagram
-
Activity Diagram
-
Show sequences of actions or decisions. - Include start and end points.
- Use decision nodes, branches, loops, and concurrent activities.
- Often used in business modeling, software design, and requirements analysis. Example:
-
@startuml
start
: Ticketpreis einlesen;
: Rabatt deklarieren;
if (Schwerbehinderung?) then (yes)
: Rabatt = Behinderungsgrad;
elseif (Alter < 18) then (yes)
: Rabatt = 35;
elseif (Student / Freiwilligendienst?) then (yes)
: Rabatt = 25;
elseif (Rentner?) then (yes)
: Rabatt = 15;
else (nein)
: return Ticketpreis;
endif
: return (Ticketpreis / 100) * Rabatt;
end
@enduml- Sequence Diagram
- Complex Sequence Diagram