Bookmarks

UML — UML modelling language

Unified Modeling Language

A graphical language in which the structure and behaviour of a software system are described with standard diagrams: class, sequence, state and others.

Also: Unified Modeling Language, Unified Modelling Language

checked 8 Nov

All terms

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.

GroupWhat it showsExamples
Structuralthe static structure of the system, independent of timeclass, component, deployment diagrams
Behaviouraldynamic behaviour over timeactivity diagram, state machine diagram
Interactions (a subset of behavioural)message exchange between objects over timesequence 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 pages

Verified 8 Nov

Not to be confused with

what it is mixed up with and how it differs

  • C4 model

    The C4 model is a compact set of diagrams at four levels for describing architecture; UML is a large formal language with a wide palette of diagrams.

  • BPMNBPMN notation

    The BPMN notation describes an organisation’s business processes, while UML describes the structure and behaviour of the software system itself.

In depth in the references

where the topic is covered in detail