aboutsummaryrefslogtreecommitdiff
path: root/Mussel/examples
diff options
context:
space:
mode:
Diffstat (limited to 'Mussel/examples')
-rw-r--r--Mussel/examples/read_to_EddystoneTLM/read_to_EddystoneTLM.puml22
-rw-r--r--Mussel/examples/seconds/seconds.puml3
-rw-r--r--Mussel/examples/voting/voting.puml15
-rw-r--r--Mussel/examples/voting_from_EddystoneTLM/voting_from_EddystoneTLM.puml23
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