184 lines
4.2 KiB
Plaintext
184 lines
4.2 KiB
Plaintext
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||
|
<diagram program="umlet" version="15.1">
|
||
|
<zoom_level>17</zoom_level>
|
||
|
<element>
|
||
|
<id>UMLSpecialState</id>
|
||
|
<coordinates>
|
||
|
<x>646</x>
|
||
|
<y>51</y>
|
||
|
<w>34</w>
|
||
|
<h>34</h>
|
||
|
</coordinates>
|
||
|
<panel_attributes>type=initial</panel_attributes>
|
||
|
<additional_attributes/>
|
||
|
</element>
|
||
|
<element>
|
||
|
<id>Relation</id>
|
||
|
<coordinates>
|
||
|
<x>646</x>
|
||
|
<y>68</y>
|
||
|
<w>153</w>
|
||
|
<h>153</h>
|
||
|
</coordinates>
|
||
|
<panel_attributes>lt=->
|
||
|
evBLInit</panel_attributes>
|
||
|
<additional_attributes>10.0;10.0;10.0;70.0</additional_attributes>
|
||
|
</element>
|
||
|
<element>
|
||
|
<id>UMLState</id>
|
||
|
<coordinates>
|
||
|
<x>510</x>
|
||
|
<y>187</y>
|
||
|
<w>306</w>
|
||
|
<h>85</h>
|
||
|
</coordinates>
|
||
|
<panel_attributes>ST_WAIT
|
||
|
--
|
||
|
remainBlinks = 3;</panel_attributes>
|
||
|
<additional_attributes/>
|
||
|
</element>
|
||
|
<element>
|
||
|
<id>UMLState</id>
|
||
|
<coordinates>
|
||
|
<x>510</x>
|
||
|
<y>374</y>
|
||
|
<w>306</w>
|
||
|
<h>102</h>
|
||
|
</coordinates>
|
||
|
<panel_attributes>ST_ON
|
||
|
--
|
||
|
if(blink3) remainBlinks--
|
||
|
-.
|
||
|
/ entry: turnOn()</panel_attributes>
|
||
|
<additional_attributes/>
|
||
|
</element>
|
||
|
<element>
|
||
|
<id>Relation</id>
|
||
|
<coordinates>
|
||
|
<x>646</x>
|
||
|
<y>459</y>
|
||
|
<w>153</w>
|
||
|
<h>136</h>
|
||
|
</coordinates>
|
||
|
<panel_attributes>lt=->
|
||
|
evTimer</panel_attributes>
|
||
|
<additional_attributes>10.0;10.0;10.0;60.0</additional_attributes>
|
||
|
</element>
|
||
|
<element>
|
||
|
<id>UMLState</id>
|
||
|
<coordinates>
|
||
|
<x>544</x>
|
||
|
<y>561</y>
|
||
|
<w>238</w>
|
||
|
<h>102</h>
|
||
|
</coordinates>
|
||
|
<panel_attributes>ST_OFF
|
||
|
--
|
||
|
-.
|
||
|
/ entry: turnOff()</panel_attributes>
|
||
|
<additional_attributes/>
|
||
|
</element>
|
||
|
<element>
|
||
|
<id>Relation</id>
|
||
|
<coordinates>
|
||
|
<x>646</x>
|
||
|
<y>646</y>
|
||
|
<w>153</w>
|
||
|
<h>153</h>
|
||
|
</coordinates>
|
||
|
<panel_attributes>lt=->
|
||
|
evTimer</panel_attributes>
|
||
|
<additional_attributes>10.0;10.0;10.0;70.0</additional_attributes>
|
||
|
</element>
|
||
|
<element>
|
||
|
<id>Relation</id>
|
||
|
<coordinates>
|
||
|
<x>527</x>
|
||
|
<y>255</y>
|
||
|
<w>272</w>
|
||
|
<h>153</h>
|
||
|
</coordinates>
|
||
|
<panel_attributes>lt=->
|
||
|
m1=evBlinkN
|
||
|
m2=/ nBlinkIsOn = true</panel_attributes>
|
||
|
<additional_attributes>10.0;10.0;10.0;70.0</additional_attributes>
|
||
|
</element>
|
||
|
<element>
|
||
|
<id>Relation</id>
|
||
|
<coordinates>
|
||
|
<x>765</x>
|
||
|
<y>255</y>
|
||
|
<w>289</w>
|
||
|
<h>153</h>
|
||
|
</coordinates>
|
||
|
<panel_attributes>lt=->
|
||
|
m1=evBlink
|
||
|
m2=/ nBlinkIsOn = false</panel_attributes>
|
||
|
<additional_attributes>10.0;10.0;10.0;70.0</additional_attributes>
|
||
|
</element>
|
||
|
<element>
|
||
|
<id>UMLSpecialState</id>
|
||
|
<coordinates>
|
||
|
<x>629</x>
|
||
|
<y>765</y>
|
||
|
<w>68</w>
|
||
|
<h>68</h>
|
||
|
</coordinates>
|
||
|
<panel_attributes>type=decision</panel_attributes>
|
||
|
<additional_attributes/>
|
||
|
</element>
|
||
|
<element>
|
||
|
<id>Relation</id>
|
||
|
<coordinates>
|
||
|
<x>442</x>
|
||
|
<y>408</y>
|
||
|
<w>221</w>
|
||
|
<h>442</h>
|
||
|
</coordinates>
|
||
|
<panel_attributes>lt=->
|
||
|
m1=[else]</panel_attributes>
|
||
|
<additional_attributes>110.0;230.0;10.0;230.0;10.0;10.0;40.0;10.0</additional_attributes>
|
||
|
</element>
|
||
|
<element>
|
||
|
<id>Relation</id>
|
||
|
<coordinates>
|
||
|
<x>680</x>
|
||
|
<y>204</y>
|
||
|
<w>391</w>
|
||
|
<h>646</h>
|
||
|
</coordinates>
|
||
|
<panel_attributes>lt=->
|
||
|
m1=[remainBlinks==0]</panel_attributes>
|
||
|
<additional_attributes>10.0;350.0;210.0;350.0;210.0;10.0;80.0;10.0</additional_attributes>
|
||
|
</element>
|
||
|
<element>
|
||
|
<id>UMLClass</id>
|
||
|
<coordinates>
|
||
|
<x>1462</x>
|
||
|
<y>0</y>
|
||
|
<w>952</w>
|
||
|
<h>527</h>
|
||
|
</coordinates>
|
||
|
<panel_attributes>BLINKER
|
||
|
--
|
||
|
+state: BLINKER_STATES
|
||
|
+tON: uint16_t
|
||
|
+tOFF: uint16_t
|
||
|
+blink3: bool
|
||
|
+nBlink: uint8_t
|
||
|
+turnOn: blinkerCallBack
|
||
|
+turnOff: blinkerCallBack
|
||
|
--
|
||
|
+BLINKER_init(me: BLINKER*): void
|
||
|
+BLINKER_defineCallBack(f: fBlinkerCallBack, param: void*): blinkerCallBack
|
||
|
+BLINKER_starBehaviour(me: BLINKER*): void
|
||
|
+BLINKER_setTurnOn(me: BLINKER*, callBack: blinkerCallBack): void
|
||
|
+BLINKER_setTurnOff(me: BLINKER*, callBack: blinkerCallBack): void
|
||
|
+BLINKER_blink3(me: BLINKER*): void
|
||
|
+BLINKER_blink(me: BLINKER*): void
|
||
|
+BLINKER_processEvent(mev: Event*): bool
|
||
|
+BLINKER_endBlink(me: BLINKER*): void</panel_attributes>
|
||
|
<additional_attributes/>
|
||
|
</element>
|
||
|
</diagram>
|