UML is a common language for describing a system with diagrams: architects and developers draw it with the same elements and rules, so any engineer familiar with the notation can read the diagram. The specification assigns the language four tasks — to visualise, specify, construct and document a system.
What it consists of
The standard describes the language itself — model elements and the rules for joining them in diagrams — rather than drawing tools. Diagrams fall into two broad groups.
| Group | What it shows | Examples |
|---|---|---|
| Structural | the static structure of the system, independent of time | class, component, deployment diagrams |
| Behavioural | dynamic behaviour over time | activity diagram, state machine diagram |
| Interactions (a subset of behavioural) | message exchange between objects over time | sequence diagram |
How to read a diagram
Elements have a strict meaning. In a class diagram, a class is a rectangle with a name, fields and methods; a line between classes is a relationship, and the numbers at its ends are the multiplicity: how many objects take part in the relationship. For example, a relationship between the Заказ and Позиция classes with multiplicity 1..* at the Позиция end reads as: one order contains at least one order line. In a sequence diagram, vertical lifelines are the participants, time flows along them from top to bottom, and horizontal arrows are messages.
Where it is used
- discuss and agree on the architecture before code: a component diagram shows the major parts of the system and their dependencies
- describe a workflow step by step: an activity or sequence diagram for the checkout flow
- show the states of a single object: a state machine diagram for an order status — new, paid, shipped
- document the system and pass knowledge to new team members
How it came about
The standard is maintained by the OMG consortium (Object Management Group): the first formal version was 1.1, December 1997; the current one is 2.5.1, December 2017.
Sources
the term is written from these pagesVerified 8 Nov