aboutsummaryrefslogtreecommitdiff
path: root/Mussel
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2025-04-13 10:54:54 +0200
committerJonas Smedegaard <dr@jones.dk>2025-04-13 10:54:54 +0200
commit3e3fc21dc9a3984d34f9d835362994e55657a886 (patch)
tree2283816fc3576b37f41c565692b78bba1475cc87 /Mussel
parentd9479641a67d5bd07001a1c0f015ad76ca53e5d1 (diff)
refine diagrams
Diffstat (limited to 'Mussel')
-rw-r--r--Mussel/examples/read_to_EddystoneTLM/read_to_EddystoneTLM.puml10
-rw-r--r--Mussel/examples/voting_from_EddystoneTLM/voting_from_EddystoneTLM.puml15
2 files changed, 16 insertions, 9 deletions
diff --git a/Mussel/examples/read_to_EddystoneTLM/read_to_EddystoneTLM.puml b/Mussel/examples/read_to_EddystoneTLM/read_to_EddystoneTLM.puml
index 18165ea..e65d30c 100644
--- a/Mussel/examples/read_to_EddystoneTLM/read_to_EddystoneTLM.puml
+++ b/Mussel/examples/read_to_EddystoneTLM/read_to_EddystoneTLM.puml
@@ -7,16 +7,20 @@ group init
:setup network beacon service;
end group
split
-while (each ½s)
+while (each 500ms)
group loop {
-:read gape angle;
+:read sensors;
+:normalize sensor data
+as a gape angle;
:add gape angle to beacon;
end group
endwhile
-[hidden]->
kill
split again
-:publish beacon;
+while (each 100ms)
+:broadcast beacon;
+endwhile
-[hidden]->
kill
@enduml
diff --git a/Mussel/examples/voting_from_EddystoneTLM/voting_from_EddystoneTLM.puml b/Mussel/examples/voting_from_EddystoneTLM/voting_from_EddystoneTLM.puml
index 6bb5868..f8270ec 100644
--- a/Mussel/examples/voting_from_EddystoneTLM/voting_from_EddystoneTLM.puml
+++ b/Mussel/examples/voting_from_EddystoneTLM/voting_from_EddystoneTLM.puml
@@ -7,16 +7,19 @@ group init
:setup network beacon scanner;
end group
split
-while (each ½s)
-group loop {
-:fetch and print voting tally;
-end group
+while (each beacon detected)
+:collect beacon data;
endwhile
-[hidden]->
kill
split again
-while (at each beacon detected)
-:register vote;
+while (each 500ms)
+group loop {
+:allign beacon data as a ballot;
+:qualify ballot for specific vote;
+:conclude vote result;
+:act on vote result;
+end group
endwhile
-[hidden]->
kill