0% found this document useful (0 votes)
5 views1 page

UML State Machine for MP3 Player

The MP3 player has states for off, playlist displayed, music playing, and paused. It can switch between states using buttons for power, play, menu, forward, volume, and reset. The volume has discrete levels of quiet, medium, and loud that cycle when the volume buttons are pressed, except at the minimum and maximum levels where pressing the buttons has no effect.

Uploaded by

api-26356906
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

UML State Machine for MP3 Player

The MP3 player has states for off, playlist displayed, music playing, and paused. It can switch between states using buttons for power, play, menu, forward, volume, and reset. The volume has discrete levels of quiet, medium, and loud that cycle when the volume buttons are pressed, except at the minimum and maximum levels where pressing the buttons has no effect.

Uploaded by

api-26356906
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Question 1

An MP3-Player is specified as follows.


• Power switches the device on and off.
• When the device is switched on at first, its display shows the play list (see the figure below);
however no music is played yet.
• One can start and stop playing the music with the play button. When music is played, the
display shows detailed information about the played title.
• With the menu button, you can switch between the play-list and the title-display.
• With forward button, one can wind a title, when the player is paused.
• The adjustment can be done with the volume buttons: + and -. There are only three volume
levels: quiet, medium and loud. When music starts to play, the volume level is quiet.
• When the reset button is pressed, the system goes in the initial state.
• Pressing – when the player is quiet doesn’t change the volume. Similarly pressing + in the
state loud does not change the volume.
Model this device using UML State Machines.

menu

play forward

You might also like