merge alive_checker and watchdog to alive class

This commit is contained in:
2023-08-29 14:11:48 +02:00
parent 38d7936da7
commit 6bc73fa166
12 changed files with 650 additions and 624 deletions

Binary file not shown.

View File

@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<diagram program="umlet" version="15.0.0">
<zoom_level>15</zoom_level>
<zoom_level>14</zoom_level>
<element>
<id>UMLSpecialState</id>
<coordinates>
<x>510</x>
<y>30</y>
<w>30</w>
<h>30</h>
<x>714</x>
<y>28</y>
<w>56</w>
<h>56</h>
</coordinates>
<panel_attributes>type=initial</panel_attributes>
<additional_attributes/>
@ -15,47 +15,48 @@
<element>
<id>Relation</id>
<coordinates>
<x>510</x>
<y>45</y>
<w>90</w>
<h>105</h>
<x>462</x>
<y>70</y>
<w>308</w>
<h>154</h>
</coordinates>
<panel_attributes>lt=-&gt;
evInit</panel_attributes>
<additional_attributes>10.0;10.0;10.0;50.0</additional_attributes>
evInitChecker</panel_attributes>
<additional_attributes>200.0;10.0;200.0;50.0;10.0;50.0;10.0;90.0</additional_attributes>
</element>
<element>
<id>UMLState</id>
<coordinates>
<x>390</x>
<y>120</y>
<w>285</w>
<h>90</h>
<x>350</x>
<y>196</y>
<w>266</w>
<h>112</h>
</coordinates>
<panel_attributes>SETUP
--
/entry: sendParamsOnCan</panel_attributes>
/entry: sendParamsOnCan
/entry: checker = true</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>510</x>
<y>195</y>
<w>105</w>
<h>105</h>
<x>462</x>
<y>294</y>
<w>98</w>
<h>98</h>
</coordinates>
<panel_attributes>lt=-&gt;
evBorn</panel_attributes>
m1=evBorn</panel_attributes>
<additional_attributes>10.0;10.0;10.0;50.0</additional_attributes>
</element>
<element>
<id>UMLState</id>
<coordinates>
<x>390</x>
<y>270</y>
<w>285</w>
<h>90</h>
<x>350</x>
<y>364</y>
<w>266</w>
<h>84</h>
</coordinates>
<panel_attributes>BORN
--
@ -65,10 +66,10 @@ evBorn</panel_attributes>
<element>
<id>UMLState</id>
<coordinates>
<x>390</x>
<y>420</y>
<w>285</w>
<h>120</h>
<x>350</x>
<y>504</y>
<w>266</w>
<h>112</h>
</coordinates>
<panel_attributes>WAIT
--
@ -80,22 +81,22 @@ isAlive = false</panel_attributes>
<element>
<id>Relation</id>
<coordinates>
<x>510</x>
<y>345</y>
<w>120</w>
<h>105</h>
<x>462</x>
<y>434</y>
<w>112</w>
<h>98</h>
</coordinates>
<panel_attributes>lt=-&gt;
evReady</panel_attributes>
m1=evReady</panel_attributes>
<additional_attributes>10.0;10.0;10.0;50.0</additional_attributes>
</element>
<element>
<id>UMLState</id>
<coordinates>
<x>390</x>
<y>720</y>
<w>285</w>
<h>90</h>
<x>350</x>
<y>784</y>
<w>266</w>
<h>84</h>
</coordinates>
<panel_attributes>DEAD
--
@ -105,94 +106,166 @@ evReady</panel_attributes>
<element>
<id>Relation</id>
<coordinates>
<x>510</x>
<y>525</y>
<w>105</w>
<h>105</h>
</coordinates>
<panel_attributes>lt=-&gt;
evPoll</panel_attributes>
<additional_attributes>10.0;10.0;10.0;50.0</additional_attributes>
</element>
<element>
<id>UMLSpecialState</id>
<coordinates>
<x>495</x>
<y>600</y>
<w>60</w>
<h>60</h>
</coordinates>
<panel_attributes>type=decision</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>510</x>
<y>645</y>
<w>90</w>
<h>105</h>
</coordinates>
<panel_attributes>lt=-&gt;
m1=[else]</panel_attributes>
<additional_attributes>10.0;10.0;10.0;50.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>315</x>
<y>465</y>
<x>280</x>
<y>546</y>
<w>210</w>
<h>210</h>
<h>182</h>
</coordinates>
<panel_attributes>lt=-&gt;
m1=[isAlive]</panel_attributes>
<additional_attributes>120.0;110.0;10.0;110.0;10.0;10.0;50.0;10.0</additional_attributes>
m1=evPoll\n[isAlive]</panel_attributes>
<additional_attributes>80.0;50.0;80.0;110.0;10.0;110.0;10.0;10.0;50.0;10.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>660</x>
<y>135</y>
<w>210</w>
<h>405</h>
<x>224</x>
<y>392</y>
<w>336</w>
<h>560</h>
</coordinates>
<panel_attributes>lt=-&gt;
evDisable</panel_attributes>
<additional_attributes>10.0;250.0;60.0;250.0;60.0;10.0;10.0;10.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>255</x>
<y>300</y>
<w>300</w>
<h>600</h>
</coordinates>
<panel_attributes>lt=-&gt;
evBorn</panel_attributes>
m1=evBorn</panel_attributes>
<additional_attributes>180.0;340.0;180.0;380.0;10.0;380.0;10.0;10.0;90.0;10.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>660</x>
<y>495</y>
<w>120</w>
<h>315</h>
<x>462</x>
<y>602</y>
<w>112</w>
<h>210</h>
</coordinates>
<panel_attributes>lt=-</panel_attributes>
<additional_attributes>10.0;190.0;60.0;190.0;60.0;10.0</additional_attributes>
<panel_attributes>lt=-&gt;
m1=evPoll\n[default]</panel_attributes>
<additional_attributes>10.0;10.0;10.0;130.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>660</x>
<y>315</y>
<w>120</w>
<h>45</h>
<x>728</x>
<y>70</y>
<w>308</w>
<h>154</h>
</coordinates>
<panel_attributes>lt=-</panel_attributes>
<additional_attributes>10.0;10.0;60.0;10.0</additional_attributes>
<panel_attributes>lt=-&gt;
evInitSender</panel_attributes>
<additional_attributes>10.0;10.0;10.0;50.0;200.0;50.0;200.0;90.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>784</x>
<y>252</y>
<w>224</w>
<h>140</h>
</coordinates>
<panel_attributes>lt=-&gt;
m1=evPoll\n[else]</panel_attributes>
<additional_attributes>100.0;40.0;100.0;70.0;10.0;70.0;10.0;10.0;60.0;10.0</additional_attributes>
</element>
<element>
<id>UMLNote</id>
<coordinates>
<x>784</x>
<y>28</y>
<w>140</w>
<h>56</h>
</coordinates>
<panel_attributes>read time on
EPROM</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>UMLState</id>
<coordinates>
<x>868</x>
<y>196</y>
<w>266</w>
<h>112</h>
</coordinates>
<panel_attributes>ALIVE
--
\entry: sender = true
--
sendAliveOnCan</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>UMLState</id>
<coordinates>
<x>868</x>
<y>518</y>
<w>266</w>
<h>84</h>
</coordinates>
<panel_attributes>lt=..
BREAK
-..
</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>994</x>
<y>294</y>
<w>210</w>
<h>252</h>
</coordinates>
<panel_attributes>lt=..&gt;
m1=evPoll\n[time==0]\n[haveBreak]</panel_attributes>
<additional_attributes>60.0;10.0;60.0;110.0;10.0;110.0;10.0;160.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>560</x>
<y>546</y>
<w>336</w>
<h>182</h>
</coordinates>
<panel_attributes>lt=..&gt;
m1=evPoll\n[time==0]\n[haveBreak]</panel_attributes>
<additional_attributes>10.0;50.0;10.0;110.0;90.0;110.0;180.0;10.0;220.0;10.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>602</x>
<y>546</y>
<w>420</w>
<h>182</h>
</coordinates>
<panel_attributes>lt=..&gt;
m1=evStart\n[checker]</panel_attributes>
<additional_attributes>220.0;40.0;220.0;110.0;150.0;110.0;60.0;10.0;10.0;10.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>1078</x>
<y>252</y>
<w>182</w>
<h>476</h>
</coordinates>
<panel_attributes>lt=..&gt;
m1=evStart\n[sender]</panel_attributes>
<additional_attributes>10.0;250.0;10.0;320.0;110.0;320.0;110.0;10.0;40.0;10.0</additional_attributes>
</element>
<element>
<id>UMLNote</id>
<coordinates>
<x>868</x>
<y>728</y>
<w>266</w>
<h>154</h>
</coordinates>
<panel_attributes>lt=..
break part can be disable
with setHaveBreak(false)
not all childrens have a break
for time at 0</panel_attributes>
<additional_attributes/>
</element>
</diagram>