aboutsummaryrefslogtreecommitdiff
path: root/Mussel/examples/vote/vote.puml
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2025-04-13 13:03:53 +0200
committerJonas Smedegaard <dr@jones.dk>2025-04-13 13:03:53 +0200
commited3ac0eb11a04630f7f08124a484a854eea13569 (patch)
treedb1abdc77f1bca0d757d9f14d73830ff8509c400 /Mussel/examples/vote/vote.puml
parent9c84a009850a06e090b258b6b160ca2cdb41706e (diff)
rename and describe bluetooth examples
Diffstat (limited to 'Mussel/examples/vote/vote.puml')
-rw-r--r--Mussel/examples/vote/vote.puml27
1 files changed, 27 insertions, 0 deletions
diff --git a/Mussel/examples/vote/vote.puml b/Mussel/examples/vote/vote.puml
new file mode 100644
index 0000000..a4958f7
--- /dev/null
+++ b/Mussel/examples/vote/vote.puml
@@ -0,0 +1,27 @@
+@startuml
+:instantiate mussel object;
+:instantiate bluetooth object;
+group init
+:setup mussel voting;
+:setup bluetooth scanner;
+end group
+split
+while (each beacon detected)
+group "bluetooth callback" {
+:collect beacon data;
+end group
+endwhile
+-[hidden]->
+kill
+split again
+while (each 500ms)
+group loop {
+:allign beacon data as ballots;
+:qualify ballots for a vote;
+:conclude vote result;
+:act on vote result;
+end group
+endwhile
+-[hidden]->
+kill
+@enduml