Diagram Desk

Elevator call sequence diagram

A hall call: the controller picks the nearest car and sends it, announcing each floor in a loop until it arrives.

The diagram

Hall buttonControllerElevator carPress upCall (5th floor, up)Go to 5th floorCurrent floorArrivedTurn off lightDoors openPassengerloop [Each floor]
Sequence diagram · 4 shapes

Reading it step by step

  • 1. 'Passenger' sends a request to 'Hall button': 'Press up'.
  • 2. 'Hall button' sends a request to 'Controller': 'Call (5th floor, up)'.
  • 3. 'Controller' sends a request to 'Elevator car': 'Go to 5th floor'.
  • [loop: Each floor]
  • 4. 'Elevator car' notifies 'Controller': 'Current floor'.
  • 5. 'Elevator car' replies to 'Controller': 'Arrived'.
  • 6. 'Controller' notifies 'Hall button': 'Turn off light'.
  • 7. 'Elevator car' notifies 'Passenger': 'Doors open'.

Shape by shape

ShapeSymbolConnections
PassengerActor→ Hall button(Press up) · ← Elevator car
Hall buttonParticipant and lifeline→ Controller(Call (5th floor, up)) · ← Passenger, Controller
ControllerParticipant and lifeline→ Elevator car(Go to 5th floor), Hall button(Turn off light) · ← Hall button, Elevator car, Elevator car
Elevator carParticipant and lifeline→ Controller(Current floor), Controller(Arrived), Passenger(Doors open) · ← Controller

Symbols used here

SymbolMeaning
Participant and lifelineA box on top and a dashed line below.
ActorA human participant; a stick figure.
Synchronous messageA call that waits; solid line, filled head.
ReplyThe answer; dashed line, open head.
Asynchronous messageSent without waiting; solid line, open head.
Combined fragmentloop, alt and opt boxes.

All sequence diagram symbols and how to draw

Diagram text

Paste this text into the editor to get the same picture, then change the names to fit your own work.

# Elevator call sequence diagram
sequenceDiagram
  actor P as Passenger
  participant B as Hall button
  participant C as Controller
  participant E as Elevator car
  P->>B: Press up
  B->>C: Call (5th floor, up)
  C->>E: Go to 5th floor
  loop Each floor
    E-)C: Current floor
  end
  E-->>C: Arrived
  C-)B: Turn off light
  E-)P: Doors open

More sequence diagram examples

All SeewolLabs tools