aboutsummaryrefslogtreecommitdiff
path: root/vote/vote.puml
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2025-04-16 10:55:42 +0200
committerJonas Smedegaard <dr@jones.dk>2025-04-16 10:55:42 +0200
commitd6a944ecce92f1b5bdd54aaf3ed57808c3286ce0 (patch)
treec248d01d1d8a90cdd48375fdd343e598bbfc2e4a /vote/vote.puml
parent3da3079f0661b2e966ee3e150d7a3c08664046d5 (diff)
add vote as non-library sketch
Diffstat (limited to 'vote/vote.puml')
-rw-r--r--vote/vote.puml27
1 files changed, 27 insertions, 0 deletions
diff --git a/vote/vote.puml b/vote/vote.puml
new file mode 100644
index 0000000..a4958f7
--- /dev/null
+++ b/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