UML for Embedded Systems III. Detailed Design - Eurecom
UML for Embedded Systems III. Detailed Design - Eurecom
UML for Embedded Systems III. Detailed Design - Eurecom
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
slide 43<br />
slide 44<br />
Exercises: Ping-Pong Game<br />
� Two players P1 and P2<br />
� P1<br />
• Sends value k to P2<br />
• Waits <strong>for</strong> value k<br />
• Increment k<br />
• And so on..<br />
� P2<br />
• Waits <strong>for</strong> a value x<br />
• Returns x to the sender<br />
(C) Ludovic Apvrille <strong>UML</strong> <strong>for</strong> <strong>Embedded</strong> <strong>Systems</strong> - Fall 2012<br />
Microwave Oven<br />
� We wish to model a basic oven with a door and a<br />
« start » button<br />
� Once a meal has been put in the oven, the user<br />
pushes the « start » button. Once pushed, the meal<br />
is heated <strong>for</strong> 30 seconds. Then, the oven stops and<br />
plays a bell sound<br />
� Alternatively, the user may open the door while the<br />
oven is heating. In that case, the heating process<br />
stops and the 30s delay is set to 0<br />
(C) Ludovic Apvrille <strong>UML</strong> <strong>for</strong> <strong>Embedded</strong> <strong>Systems</strong> - Fall 2012<br />
Page 22<br />
« Start » button