add testDiagram
This commit is contained in:
parent
72f43d9060
commit
b35e6e6a22
BIN
02-UML/PDF/testDiagram.pdf
Normal file
BIN
02-UML/PDF/testDiagram.pdf
Normal file
Binary file not shown.
76
02-UML/singleLeftClick.puml
Normal file
76
02-UML/singleLeftClick.puml
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
@startuml
|
||||||
|
'https://plantuml.com/sequence-diagram
|
||||||
|
actor User as usr
|
||||||
|
participant "Pb L" as pbL
|
||||||
|
participant "Pb R" as pbR
|
||||||
|
participant "LED L" as ledL
|
||||||
|
participant "LED R" as ledR
|
||||||
|
|
||||||
|
|
||||||
|
== Single click ==
|
||||||
|
|
||||||
|
group Single click left
|
||||||
|
usr -\ pbL ++: pressButton
|
||||||
|
usr -\ pbL : releaseButton
|
||||||
|
pbL -> ledL --++ : blink
|
||||||
|
usr -\ pbL ++: pressButton
|
||||||
|
usr -\ pbL : releaseButton
|
||||||
|
pbL -> ledL -- : endBlink
|
||||||
|
deactivate ledL
|
||||||
|
end
|
||||||
|
|
||||||
|
group Single click right
|
||||||
|
usr -\ pbR ++: pressButton
|
||||||
|
usr -\ pbR : releaseButton
|
||||||
|
pbR -> ledR --++ : blink
|
||||||
|
usr -\ pbR ++: pressButton
|
||||||
|
usr -\ pbR : releaseButton
|
||||||
|
pbR -> ledR -- : endBlink
|
||||||
|
deactivate ledR
|
||||||
|
end
|
||||||
|
|
||||||
|
== Double click ==
|
||||||
|
|
||||||
|
group Double click left
|
||||||
|
usr -\ pbL ++: pressButton
|
||||||
|
usr -\ pbL : releaseButton
|
||||||
|
usr -\ pbL : pressButton
|
||||||
|
pbL -> ledL --++ : blink
|
||||||
|
note right ledL: blink 3x
|
||||||
|
ledL ->x ledL -- : finished
|
||||||
|
end
|
||||||
|
|
||||||
|
group Double click right
|
||||||
|
usr -\ pbR ++: pressButton
|
||||||
|
usr -\ pbR : releaseButton
|
||||||
|
usr -\ pbR : pressButton
|
||||||
|
pbR -> ledR --++ : blink
|
||||||
|
note right ledR: blink 3x
|
||||||
|
ledR ->x ledR -- : finished
|
||||||
|
end
|
||||||
|
|
||||||
|
== Long click ==
|
||||||
|
|
||||||
|
group Long click left
|
||||||
|
usr -\ pbL ++: pressButton
|
||||||
|
pbL -> ledR--: blink
|
||||||
|
activate ledL
|
||||||
|
activate ledR
|
||||||
|
usr -\ pbL ++: pressButton
|
||||||
|
pbL -> ledR -- : endBlink
|
||||||
|
deactivate ledL
|
||||||
|
deactivate ledR
|
||||||
|
end
|
||||||
|
|
||||||
|
group Long click right
|
||||||
|
usr -\ pbR ++: pressButton
|
||||||
|
pbR -> ledR--: blink
|
||||||
|
activate ledL
|
||||||
|
activate ledR
|
||||||
|
usr -\ pbL ++: pressButton
|
||||||
|
pbL -> ledR -- : endBlink
|
||||||
|
deactivate ledL
|
||||||
|
deactivate ledR
|
||||||
|
end
|
||||||
|
|
||||||
|
@enduml
|
1
02-UML/testDiagram.svg
Normal file
1
02-UML/testDiagram.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 25 KiB |
Reference in New Issue
Block a user