State is the nodes of the state diagram.

  • When a state is active, the object is in that state.
  • All internal activities specified in the current state can be executed.
  • An activity can consist of multiple actions.

Activity specifications:

  • entry / Activity(...): executed when the object enters the state
  • exit / Activity(...): executed when the object exits the state
  • do / Activity(...): executed while the object remains in this state