The effect of a stimulus in a real-time system may trigger a transition from one state to another.
Finite state machines can be used for modelling real-time systems.
However, FSM models lack structure. Even simple systems can have a complex model.
The UML includes notations for defining state machine models
See Chapter 8 for further examples of state machine models.