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.
� States<br />
� Transitions<br />
slide 27<br />
Basics of <strong>UML</strong> State Machine Diagrams<br />
Message [condition] / action<br />
s1 s2<br />
� Transition with temporal<br />
in<strong>for</strong>mation<br />
when (date = 10)<br />
E1 E2<br />
slide 28<br />
(C) Ludovic Apvrille <strong>UML</strong> <strong>for</strong> <strong>Embedded</strong> <strong>Systems</strong> - Fall 2012<br />
States, Transitions and Actions<br />
LampOn<br />
entry/lamp.on();<br />
exit/printf(“exiting”);<br />
off/printf(“to off”);<br />
LampOff<br />
entry/lamp.off();<br />
exit/printf(“exiting”);<br />
off/null<br />
Page 14<br />
after(100)<br />
E1 E2<br />
LampOff<br />
entry/lamp.off();<br />
exit/printf(“exiting”);<br />
off/printf(“needless”);<br />
Self transition<br />
entry and exit<br />
actions are<br />
ignored<br />
(C) Ludovic Apvrille <strong>UML</strong> <strong>for</strong> <strong>Embedded</strong> <strong>Systems</strong> - Fall 2012