Ordering transition behaviours

A motor controller is in the simple state Ready when a go event is dispatched. The external transition to the simple state Running is labelled go [available] / reserve(). The value of available is true.


Ready has exit behaviour logReadyExit(), and Running has entry behaviour startMotor(). No other behaviours are defined. Arrange the following checks and behaviours in their execution order for this transition.

  1. 1.

    Execute startMotor() on entry to Running.

  2. 2.

    Evaluate the available guard and obtain true.

  3. 3.

    Execute the transition effect reserve().

  4. 4.

    Execute logReadyExit() while exiting Ready.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More State Diagrams Questions: