diff options
author | Jonas Smedegaard <dr@jones.dk> | 2025-04-09 08:12:19 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2025-04-09 08:12:19 +0200 |
commit | d9479641a67d5bd07001a1c0f015ad76ca53e5d1 (patch) | |
tree | 9b0593641068677b2179871db15d40522d5b78e5 /Mussel | |
parent | 4f510ef86f4a25d1d3a7010e1a638baab2b68b6e (diff) |
update and add diagrams
Diffstat (limited to 'Mussel')
4 files changed, 61 insertions, 2 deletions
diff --git a/Mussel/examples/read_to_EddystoneTLM/read_to_EddystoneTLM.puml b/Mussel/examples/read_to_EddystoneTLM/read_to_EddystoneTLM.puml new file mode 100644 index 0000000..18165ea --- /dev/null +++ b/Mussel/examples/read_to_EddystoneTLM/read_to_EddystoneTLM.puml @@ -0,0 +1,22 @@ +@startuml +'start +:instantiate object; +:instantiate network; +group init +:activate object; +:setup network beacon service; +end group +split +while (each ½s) +group loop { +:read gape angle; +:add gape angle to beacon; +end group +endwhile +-[hidden]-> +kill +split again +:publish beacon; +-[hidden]-> +kill +@enduml diff --git a/Mussel/examples/seconds/seconds.puml b/Mussel/examples/seconds/seconds.puml index 578983c..55746ff 100644 --- a/Mussel/examples/seconds/seconds.puml +++ b/Mussel/examples/seconds/seconds.puml @@ -5,10 +5,9 @@ group init :activate object; :fetch and print object description; end group -while (repeat every few millisecond) +while (each 1s) group loop { :fetch and print gape angle; -:wait 1s; end group endwhile -[hidden]-> diff --git a/Mussel/examples/voting/voting.puml b/Mussel/examples/voting/voting.puml new file mode 100644 index 0000000..8460d90 --- /dev/null +++ b/Mussel/examples/voting/voting.puml @@ -0,0 +1,15 @@ +@startuml +'start +:instantiate object; +group init +:activate object; +end group +while (each ½s) +group loop { +:register 3 fake votes; +:fetch and print voting tally; +end group +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 new file mode 100644 index 0000000..6bb5868 --- /dev/null +++ b/Mussel/examples/voting_from_EddystoneTLM/voting_from_EddystoneTLM.puml @@ -0,0 +1,23 @@ +@startuml +'start +:instantiate object; +:instantiate network; +group init +:activate object; +:setup network beacon scanner; +end group +split +while (each ½s) +group loop { +:fetch and print voting tally; +end group +endwhile +-[hidden]-> +kill +split again +while (at each beacon detected) +:register vote; +endwhile +-[hidden]-> +kill +@enduml |