From d9479641a67d5bd07001a1c0f015ad76ca53e5d1 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 9 Apr 2025 08:12:19 +0200 Subject: update and add diagrams --- .../read_to_EddystoneTLM/read_to_EddystoneTLM.puml | 22 +++++++++++++++++++++ Mussel/examples/seconds/seconds.puml | 3 +-- Mussel/examples/voting/voting.puml | 15 ++++++++++++++ .../voting_from_EddystoneTLM.puml | 23 ++++++++++++++++++++++ 4 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 Mussel/examples/read_to_EddystoneTLM/read_to_EddystoneTLM.puml create mode 100644 Mussel/examples/voting/voting.puml create mode 100644 Mussel/examples/voting_from_EddystoneTLM/voting_from_EddystoneTLM.puml (limited to 'Mussel') 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 -- cgit v1.2.3