May make any reasonable assumptions about. 8.4 Draw state machine models of the control software for: An automatic washing machine that has different programs for different types of clothes. The software for a DVD player. Draw state machine models of the control software for: (10 marks). An automatic. Clothes and The software for a DVD player A telephone answering system that.
Yesterday (Sunday Feb 20th) I intended on finishing up the second state diagram for my second assignment. I had the worst headache of my life (honestly) and couldn’t pull myself to do it.
After work today I took a stab at it, and the following is what I came up with. I blogged about this before, but I wanted to show the “final” product. Not too much changed from my first cut. I changed some of the names, filled in most of the triggers, and added some “do” activities. This one was difficult because of that middle part.
There are so many triggers to take into account. In almost every state of playback you can jump to paused, rewind, fast forward, and play. This is a “simple” DVD player, I could have also included a menu button, a self transition on “Normal Speed Playback” to jump chapters, and I could have fleshed out the “DVD Menu” to account for special features and such. Things would have been rather hairy if I did. I suppose I could have created sub state diagrams to account for those, but I am not sure what the benefit would be.
I just hope the professor is happy with this level of detail. I have one more of these to go, and that is the state diagram for an answering machine. That one will be fun:). I should have this assignment finished up within the next few days, then I have to take my first exam:P. We’ll see how that goes.
UML experts out there please correct me on any bad notation!. RT @: This was me at 14 yrs old, playing Wolfenstein, teaching myself HTML to create anime websites and roleplaying in Yahoo ch. Walking around looking at fishing gear for an upcoming canoe trip makes me realize there are some things considerab. RT @:.
Finished up my final submission to this morning. Now off to the Minnesota State Fair for some fun! Great start to a vacation:). RT @: Here's another (hopefully easier) question: What roleplaying game rule systems out there (like d20) s. RT @: Last update for new scaling system. Here's the Pico8 resolution (128x128) running in 's new Runner.
Question 4: Draw a State Machine Diagram to show the following behaviors of a DVD player. (9 Marks) Be sure to label all transitions with the events that cause them. The DVD player is initially off. It can turned on or off by pressing the power button. When it is off, none of the other buttons do anything. When it is on, the tray can be opened or closed by pressing the eject button. When it is open, only the power and eject buttons will do anything.
When the tray is closed, the motor is either spinning or stopped. When you turn on the power or close the tray, the machine first spins up the motor to read the disk. It then gets one of three signals: (a) no disk – it stops the motor, and disables all buttons other than eject and power. (b) timeout, indicating it was unable to read the disk – it stops the motor, displays an error message, and disables all buttons other than eject and power. (c) disk okay – it stops the motor, but enables the play control buttons. There are three play control buttons.
Play starts the DVD playing, spinning up the motor if necessary. Pause toggles between playing and paused, without stopping the motor. Pause does nothing if pressed when the motor is stopped. Stop stops the motor, if it was spinning.
Question 5: Draw a sequence diagram to illustrate the normal operation of the Use Case for “Change DVDs” for the DVD player described in the previous question. (9 Marks) Your sequence should start in the Playing state, and describe the scenario in which the user ejects the current disk, inserts a new one, and selects play again. Assume the DVD player software has to send signals to the motor (to tell it when to spin) and to the tray (to open and close), and in both cases needs to await confirmation from the device before doing anything else. Use activation bars to indicate when the devices are active.
State any further assumptions you make.