From 8dab08f7f8dff2a901da4db57feea66b830d6d34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Heredero?= Date: Mon, 28 Aug 2023 16:26:59 +0200 Subject: [PATCH] refactor alive_checker --- UML/alive.uxf | 226 +++++++++++++++++++++++++++----------------------- 1 file changed, 123 insertions(+), 103 deletions(-) diff --git a/UML/alive.uxf b/UML/alive.uxf index 0f31457..b947a1e 100644 --- a/UML/alive.uxf +++ b/UML/alive.uxf @@ -1,13 +1,13 @@ - 14 + 15 UMLSpecialState - 266 - 98 - 28 - 28 + 735 + 45 + 30 + 30 type=initial @@ -15,115 +15,112 @@ Relation - 266 - 112 - 112 - 98 + 735 + 60 + 90 + 105 lt=-> -evACinit +evInit 10.0;10.0;10.0;50.0 UMLState - 210 - 182 - 140 - 56 + 615 + 135 + 285 + 90 - STAC_SETUP - - - - UMLNote - - 434 - 182 - 140 - 42 - - Send params - - - - Relation - - 266 - 224 - 126 - 98 - - lt=-> -evACborn - 10.0;10.0;10.0;50.0 - - - UMLState - - 210 - 294 - 140 - 56 - - STAC_BORN - - - - UMLState - - 168 - 406 - 224 - 84 - - STAC_WAIT + SETUP -- -/entry: isAlive = false +/entry: sendParamsOnCan Relation - 266 - 336 - 140 - 98 + 735 + 210 + 105 + 105 lt=-> -evACready +evBorn 10.0;10.0;10.0;50.0 UMLState - 210 - 658 - 140 - 56 + 615 + 285 + 285 + 90 - STAC_DEAD + BORN +-- +/entry: init + + + + UMLState + + 615 + 435 + 285 + 120 + + WAIT +-- +/entry: start children class +-- +isAlive = false Relation - 266 - 476 - 112 - 98 + 735 + 360 + 120 + 105 lt=-> -evACpoll +evReady + 10.0;10.0;10.0;50.0 + + + UMLState + + 615 + 735 + 285 + 90 + + DEAD +-- + + + + + Relation + + 735 + 540 + 105 + 105 + + lt=-> +evPoll 10.0;10.0;10.0;50.0 UMLSpecialState - 252 - 546 - 56 - 56 + 720 + 615 + 60 + 60 type=decision @@ -131,48 +128,71 @@ evACpoll Relation - 266 - 588 - 84 - 98 + 735 + 660 + 90 + 105 lt=-> m1=[else] 10.0;10.0;10.0;50.0 - UMLNote + Relation - 434 - 294 - 140 - 42 + 540 + 480 + 210 + 210 - Reset / Init - + lt=-> +m1=[isAlive] + 120.0;110.0;10.0;110.0;10.0;10.0;50.0;10.0 Relation - 294 - 420 - 182 - 196 + 885 + 150 + 210 + 405 lt=-> -m1=[alive] - 10.0;110.0;110.0;110.0;110.0;10.0;70.0;10.0 +evDisable + 10.0;250.0;60.0;250.0;60.0;10.0;10.0;10.0 Relation - 140 - 308 - 168 - 490 + 480 + 315 + 300 + 600 lt=-> -evACborn - 100.0;290.0;100.0;330.0;10.0;330.0;10.0;10.0;50.0;10.0 +evBorn + 180.0;340.0;180.0;380.0;10.0;380.0;10.0;10.0;90.0;10.0 + + + Relation + + 885 + 510 + 120 + 315 + + lt=- + 10.0;190.0;60.0;190.0;60.0;10.0 + + + Relation + + 885 + 330 + 120 + 45 + + lt=- + 10.0;10.0;60.0;10.0