ClockRadio - Exercise StateChart Model of a Clock Radio...

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

View Full Document Right Arrow Icon
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
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 2
1: Scenarios • Play background music • Set wakeup alarm • Tune to a new station • ...
Background image of page 3

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

View Full DocumentRight Arrow Icon
2: Clock Radio Percepts • A percept is an externally sensible aspect of state • What are the percepts for a clock radio • ?
Background image of page 4
2: Clock Radio Percepts • Display time of day • Display wake time • Display sleep time • Play music – Indicate volume level – Indicate station – Indicate band (AM/FM) • Sound alarm • Indicate mode (on/off/radio/alarm)
Background image of page 5

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

View Full DocumentRight Arrow Icon
3: Percept States BandSwitch AM FM StationKnob Knob Mode Display ClockTime AlarmTime SleepTime VolumeDial Wheel Speaker Playing Beeping Silent Off On Radio Alarm Station Frequency
Background image of page 6
4: External Controls and Stimuli How is the user able to control the device?
Background image of page 7

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

View Full DocumentRight Arrow Icon
4a: External Controls Dial for controlling volume Band switch (AM/FM) Knob for tuning station
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 24

ClockRadio - Exercise StateChart Model of a Clock Radio...

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

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