From 3d1c318b19636f3b8c259018dcf83ff00da856ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Heredero?= <63239207+Klagarge@users.noreply.github.com> Date: Sun, 18 Jun 2023 13:09:35 +0200 Subject: [PATCH] add clas diagram --- 02-UML/class.uxf | 402 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 402 insertions(+) create mode 100644 02-UML/class.uxf diff --git a/02-UML/class.uxf b/02-UML/class.uxf new file mode 100644 index 0000000..0041489 --- /dev/null +++ b/02-UML/class.uxf @@ -0,0 +1,402 @@ + + + 9 + + UMLClass + + 45 + 603 + 279 + 216 + + Button +bg=yellow +transparency=0 +-- +- id: uint8_t +- state: STATE +- press: callBack +- release: callBack +-- ++ init(uint8_t id): void ++ init_HW(): void ++ defineCallBack(fCallBack f, void* p): callBack ++ setPressCallBack(callBack c): void ++ setReleaseCallBack(callBack c): void ++ isPressed(): void ++ startBehaviour(): void ++ processEvent(Event* ev): void + + + + UMLClass + + 783 + 495 + 279 + 243 + + ClickHandler +bg=yellow +transparency=0 +-- +- state: STATE +- longClick: callBack +- singleClick: callBack +- doubleClick: callBack +-- ++ init(Button b): void ++ defineCallBack(fCallBack f, void* p): callBack ++ startBehaviour(): void ++ setLongClickCallBack(callBack c): void ++ setSingleClickCallBack(callBack c): void ++ setDoubleClickCallBack(callBack c): void ++ processEvent(Event* ev): bool +-. +- buttonPress(): void +- buttonRelease(): void + + + + UMLClass + + 387 + 729 + 180 + 108 + + Led +bg=yellow +transparency=0 +-- +- id: uint8_t +-- ++ init(uint8_t id): void ++ init_HW(): void +-. ++ on(): void ++ off(): void + + + + Relation + + 315 + 639 + 486 + 36 + + lt=<<<<-> +m2=-b + 520.0;10.0;10.0;10.0 + + + UMLClass + + 1098 + 468 + 279 + 369 + + Blinker +bg=yellow +transparency=0 +-- +- state: STATE +- tON: uint16_t +- tOFF: uint16_t +- nBlink: uint8_t +- nBlinkIsOn: bool +- remainBlinks: uint8_t +- turnOn: callBack +- turnOff: callBack +- finished: callBack +-- ++ init(): void ++ defineCallBack(fCallBack f, void* p): callBack ++ setTurnOnCallBack(callBack c): void ++ setTurnOffCallBack(callBack c): void ++ setFinishedCallBack(callBack c): void ++ defineNblink(uint8_t n): void ++ setTimeOn(uint16_t t): void ++ setTimeOff(uint16_t t): void +-. ++ startBehaviour(): void ++ processEvent(Event* ev): void ++ blinkN(): void ++ blink(): void ++ endBlink(): void ++ toggle(): void + + + + UMLClass + + 801 + 216 + 126 + 108 + + Factory +bg=yellow +transparency=0 +-- ++ init(): void ++ build(): void ++ start(): void + + + + UMLPackage + + 117 + 288 + 324 + 117 + + mcc_generated_files +bg=pink +transparency=0 +layer=0 + + + + UMLPackage + + 729 + 117 + 720 + 288 + + app +bg=pink +transparency=0 +layer=0 + + + + UMLPackage + + 18 + 513 + 585 + 378 + + board +bg=pink +transparency=0 +layer=0 + + + + UMLPackage + + 729 + 423 + 720 + 468 + + middleware +bg=pink +transparency=0 +layer=0 + + + + UMLClass + + 1134 + 162 + 207 + 198 + + App +bg=yellow +transparency=0 +-- +- state: STATE +-- ++ init(): void +-. ++ startBehaviour(): void ++ processEvent(Event* ev): void +- clickL(): void +- clickLn(): void +- clickR(): void +- clickRn(): void +- endL(): void +- endR(): void +- longClick(): void + + + + Relation + + 171 + 396 + 72 + 225 + + lt=.> +m1=<<import>> + 10.0;10.0;10.0;230.0 + + + Relation + + 405 + 396 + 72 + 351 + + lt=.> +m1=<<import>> + 10.0;10.0;10.0;370.0 + + + Relation + + 252 + 252 + 567 + 369 + + lt=<<<<<-> +m2= +b1..b3 + 610.0;10.0;300.0;10.0;300.0;270.0;10.0;270.0;10.0;390.0 + + + Relation + + 531 + 288 + 288 + 459 + + lt=<<<<<-> +m2= +11..l10 + 300.0;10.0;200.0;10.0;200.0;340.0;10.0;340.0;10.0;490.0 + + + Relation + + 846 + 315 + 81 + 198 + + lt=<<<<<-> +m2=+ch1..ch3 + 10.0;10.0;10.0;200.0 + + + Relation + + 918 + 234 + 234 + 36 + + lt=<<<<<-> +m2=+app + 10.0;10.0;240.0;10.0 + + + Relation + + 918 + 297 + 324 + 189 + + lt=<<<<<-> +m2=+blL + 10.0;10.0;150.0;10.0;150.0;150.0;310.0;150.0;310.0;190.0 + + + Relation + + 918 + 279 + 360 + 207 + + lt=<<<<<-> +m2=+blR + 10.0;10.0;160.0;10.0;160.0;160.0;350.0;160.0;350.0;210.0 + + + Relation + + 918 + 261 + 396 + 225 + + lt=<<<<<-> +m2=+blB + 10.0;10.0;170.0;10.0;170.0;170.0;390.0;170.0;390.0;230.0 + + + UMLPackage + + 27 + 117 + 630 + 117 + + xf +bg=pink +transparency=0 +layer=0 + + + + Relation + + 63 + 225 + 72 + 396 + + lt=.> +<<import>> + 10.0;10.0;10.0;420.0 + + + Relation + + 612 + 225 + 504 + 603 + + lt=.> +<<import>> + 10.0;10.0;10.0;650.0;540.0;650.0 + + + Relation + + 630 + 225 + 171 + 315 + + lt=.> +<<import>> + 10.0;10.0;10.0;330.0;170.0;330.0 + + + Relation + + 648 + 171 + 504 + 36 + + lt=.> +<<import>> + 10.0;20.0;540.0;20.0 + +