volume_mute

Weather Station State Machine

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

volume_mute

The weather station state diagram shows how the system responds to requests for various services. Which state does the system enter when a reportWeather() message is received while the system is in the Running state?

Operation Shutdown Configuring Running Controlled Testing Transmitting Collecting Summarizing shutdown() restart() reconfigure() powerSave() configuration done remoteControl() reportStatus() test complete weather summary complete transmission done clock collection done reportWeather()

Correct Answer

Summarizing

Explanation

When a reportWeather() message is received while the system is in the Running state, the system moves to the Summarizing state. When the summary is complete, it moves to a Transmitting state where the information is transmitted to the remote system, and then returns to the Running state. If a clock signal is received in Running state, the system moves to the Collecting state to collect data from instruments.

Reference

Software Engineering, Ian Sommerville, 10th edition


Quizzes you can take where this question appears