10 - Exercise StateChart Model of a Clock Radio Imagine you...

Info iconThis preview shows pages 1–13. Sign up to view the full content.

View Full Document Right Arrow Icon
© 2010 by Spencer Rugaber Exercise StateChart Model of a Clock Radio • Imagine you had to prepare an analysis model of the external behavior of a clock radio • What steps would you take to do this?
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
© 2010 by Spencer Rugaber AM/FM selector switch Tuning dial
Background image of page 2
© 2010 by Spencer Rugaber Statechart Modeling Method 1. Prepare usage scenarios 2. Determine external percepts 3. Model percepts with states 4. Determine external controls and stimuli 5. Model with additional states and transitions/events 6. List stimulus/response(s) pairs 7. Add necessary internal states ( e.g. timers) 8. Provide coordination mechanisms Internal events and guards 9. Add actions/activities 10. Validate resulting machine vs. scenarios
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
© 2010 by Spencer Rugaber 1: Scenarios • How is a clock radio used?
Background image of page 4
© 2010 by Spencer Rugaber 1: Scenarios • How is a clock radio used? – Play background music – Set wakeup alarm – Tune to a new station – ...
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
© 2010 by Spencer Rugaber 2: Clock Radio Percepts • A percept is an externally sensible aspect of state – A unit of output • What are the percepts for a clock radio?
Background image of page 6
© 2010 by Spencer Rugaber 2: Clock Radio Percepts • Time display (including AM indicator light) • Wake light • Speaker • Tuning dial position • Station number • Volume dial position • On/off/radio/alarm mode switch position • AM/FM band switch position
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
© 2010 by Spencer Rugaber 3: What are the States these Percepts Can be in? • Time display?
Background image of page 8
© 2010 by Spencer Rugaber 3: What are the States these Percepts Can be in? • Time display? – 12 * 60 * 2 – Time / wake / sleep
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
© 2010 by Spencer Rugaber 3: Percept States BandSwitch AM FM StationKnob Knob Mode Display ClockTime WakeTime SleepTime VolumeDial Wheel Speaker Playing Beeping Silent Off On Radio Alarm Station Frequency
Background image of page 10
© 2010 by Spencer Rugaber 4: External Controls and Stimuli • How is the user able to control the device? – That is, what are the inputs?
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2010 by Spencer Rugaber 4a: External Controls Rotate the dial for controlling volume Slide the band switch (AM/FM) Rotate the knob for tuning the station Plug/unplug the clock-radio Depress/release the sleep-time setting button Depress/release the wake-time setting button Slide the mode selection switch
Background image of page 12
Image of page 13
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/03/2010 for the course SA 5010 taught by Professor Spen during the Spring '10 term at Asian Institute of Management.

Page1 / 33

10 - Exercise StateChart Model of a Clock Radio Imagine you...

This preview shows document pages 1 - 13. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online