UML Timing Diagram with Enterprise Architect

What is a UML Timing Diagram?

A UML Timing Diagram shows how objects (lifelines) change state or value along a time axis. Instead of a left‑to‑right message timeline, it focuses on state transitions, signal/call arrivals, and the durations between them. Use it when timing is the point: hardware‑driven or embedded components, real‑time protocols, or time‑critical business processes.

Lifelines can be drawn as state lifelines (discrete states) or value lifelines (continuous values). Messages mark when interactions occur; time and duration constraints capture deadlines, delays, and performance limits. The format makes races, overlaps, and latency visible at a glance—something a general Sequence Diagram can obscure.

In Sparx Systems Enterprise Architect, you create this diagram from the Timing pages of the Diagram Toolbox, then place lifelines, states/values, and messages to model the required timing behavior.

Benefits of the UML Timing Diagram

Clarity for time‑critical behavior

Focuses on state/value changes over time, so deadlines, delays, and required durations are explicit and reviewable. 

State or value lifelines, as needed

Use state lifelines for discrete modes (Idle → Active → Error) or value lifelines for continuous measures (e.g., voltage, temperature).

Reveal races, overlaps, and latency

Parallel lifelines, message arrivals, and duration bars expose contention, gaps, and hand‑off delays that sequence diagrams can hide.

Validate requirements with constraints

Attach time and duration constraints (e.g., ack ≤ 50 ms) so performance limits become testable acceptance criteria.

Traceable in Enterprise Architect

In Sparx Systems Enterprise Architect, messages can link to operations and notes. Teams drill into definitions while keeping timing visible in one view.

Basic Elements and Relationships in a UML Timing Diagram

Timing Diagram Toolbox Icons in Sparx Systems Enterprise Architect

Item Image Description
State Lifeline state lifeline element in sparx ea uml timing diagram toolbox Shows an object's discrete states over time. Vertical position denotes the current state; step changes along the time axis indicate transitions.
Value Lifeline value lifeline element in ea uml timing diagram Shows an object's value over time. Parallel value levels (or a plotted line) indicate steady values and changes along the time axis.
Message Label message label element in sparx systems ea timing diagram An alternative, compact way to denote messages between lifelines. Useful for reducing clutter when many calls/signals are present.
Message Endpoint message endpoint in sparx enterprise architect uml timing diagram Marks a message that starts or ends outside the shown lifeline at an undefined external point. One end is on the lifeline; the other is off-diagram.
Diagram Gate diagram gate element in enterprise architect uml timing diagram toolbox Marks a message that starts or ends at a defined external point. Anchored to the border of an Interaction Fragment, indicating entry to or exit from that fragment.

Timing Diagram UML Notation: Connectors and Messages

Connector Image Description
Message message connector in sparx systems uml timing toolbox Indicates a flow of information or control between lifelines at a specific time (e.g., call, signal). Can carry timing notes and constraints to show deadlines or delays.

UML Timing Diagram Example in Sparx Systems Enterprise Architect

sparx systems uml timing diagram

Lifelines and states

  • User (state lifeline): moves from Idle → WaitCard → WaitAccess. The step‑changes show when the user starts the interaction (Start), enters a code (Code), and receives confirmation (OK).
  • ACSystem (state lifeline): toggles between NoCard and HasCard as it detects a card and validates the code. Downward/upward arrows mark message arrivals aligned to the same time scale.
  • UserAccepted (state lifeline): summarizes acceptance on the business side: Idle → WaitCard → WaitAccess → Idle once the process completes.

Timing semantics

  • The horizontal axis is time (ms) with regular tick marks.
  • A duration constraint ({d..d*3}) brackets the period in which the user’s code must be processed; this captures the allowable processing window.
  • A time constraint ({t..t+3}) on OK expresses a response deadline relative to an earlier event.
  • The small annotation (0..13) indicates a measured interval on the same scale.

 

The shared time axis lets you see, at a glance, how user actions and system states line up. You can verify deadlines, spot idle gaps, and confirm that acceptance occurs only after the card is present and the code is validated—exactly the kind of timing you’d miss in a standard sequence diagram.

How to Create a UML Timing Diagram in Sparx Systems Enterprise Architect

Use these essential steps:

1.   Select the Package in the Project Browser where the diagram will live

2.  Go to Design > Diagram > Add Diagram. Click on the Perspective icon and navigate to UML → Interaction → Timing.  

 3.  Open the Timing toolbox (auto‑opens; or Start → All Windows → Design → Toolbox).  

 4.  Add lifelines: drag State Lifeline or Value Lifeline and name them (e.g., User, ACSystem). 

 5.  Add messages and constraints: draw Messages between lifelines at the required time; add Time/Duration constraints or notes to capture deadlines and delays.

 6.  Tidy and save: adjust the time scale in diagram Properties if needed, keep labels readable, and Save (Ctrl+S).