@startuml
'start
:instantiate object;
:instantiate network;
group init
:activate object;
:setup network beacon scanner;
end group
split
while (each beacon detected)
:collect beacon data;
endwhile
-[hidden]->
kill
split again
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
@enduml