Elevator System (UML State Machine Diagram)
An example of a UML state machine diagram for an elevator. The statechart shows various states of an elevator and the transitions between them.
UML State Machine Diagram for Elevator
The state machine diagram depicts the following states of an elevator:
- Idle
- Moving Down
- Moving Up
- Stopping
- Door Opening
- Door Closing
- Next Stop Processing
- Open Door
The diagram contains transitions between particular states, that may fire only when their condition is met:
- Idle to Decision - floor chosen
- Decision to Moving Down - elevator is above the current floor
- Decision to Moving Up - elevator is below the current floor
- Moving Down to Stopping - elevator approached the destination floor
- Moving Up to Stopping - elevator approached the destination floor
- Stopping to Door Opening - elevator stopped on the destination floor
- Door Opening to Open Door - door fully open
- Door Open to Door Closing - open door timer elapsed
- Door Closing to Door Opening - someone stepped into the door
- Door Closing to Next Stop Processing - door closed
- Next Stop Processing to Moving Down - elevator is above the destination floor
- Next Stop Processing to Moving Up - elevator is below the destination floor
- Next Stop Processing to Idle - no other destination available
State Machine Diagram Concepts in Elevator Example
The example of a state machine diagram for the elevator uses various UML elements: initial state, states, transitions, and choice.
UML State Machine Diagram Example Preview
Elevator System (UML State Machine Diagram)
Download UML Tool
If you are new here, you may be interested in our UML tool, which you can use to open and edit the state machine diagram above:
New Comment