volume_mute

Weather Station States - Transitions

publish date2026/06/12 07:12:26.669080 UTC

volume_mute

In the weather station state machine, classify each event/message and the state transition it triggers from the Running state.

To complete the line match

  1. Click on an item in the first group
  2. Click on the match in the second group

To delete a match, double click on a line

Event/Message received in Running state

shutdown() message
clock signal
reportWeather() message
remoteControl() message

Next State

Shutdown
Summarizing
Collecting
Controlled (a state responding to remote control room)

Correct Answer

(1) shutdown() message,Shutdown
(2) reportWeather() message,Summarizing
(3) clock signal,Collecting
(4) remoteControl() message,Controlled (a state responding to remote control room)

Explanation

From the Running state: shutdown() → Shutdown; reportWeather() → Summarizing (then Transmitting, then back to Running); clock signal → Collecting (each instrument collects data, then returns); remoteControl() → Controlled (responds to a different set of messages from the remote control room). The state diagram is a high-level model - not all objects need a state diagram; simple objects can be described without one.

Reference

Software Engineering, Ian Sommerville, 10th edition


Quizzes you can take where this question appears