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
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
| Shape | Symbol | Connections |
|---|---|---|
| Passenger | Actor | → Hall button(Press up) · ← Elevator car |
| Hall button | Participant and lifeline | → Controller(Call (5th floor, up)) · ← Passenger, Controller |
| Controller | Participant and lifeline | → Elevator car(Go to 5th floor), Hall button(Turn off light) · ← Hall button, Elevator car, Elevator car |
| Elevator car | Participant and lifeline | → Controller(Current floor), Controller(Arrived), Passenger(Doors open) · ← Controller |
Symbols used here
| Symbol | Meaning |
|---|---|
| Participant and lifeline | A box on top and a dashed line below. |
| Actor | A human participant; a stick figure. |
| Synchronous message | A call that waits; solid line, filled head. |
| Reply | The answer; dashed line, open head. |
| Asynchronous message | Sent without waiting; solid line, open head. |
| Combined fragment | loop, alt and opt boxes. |
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