aboutsummaryrefslogtreecommitdiff
path: root/Arduino/vote/vote.puml
blob: a4958f796f5d793bf0c1558625ddcaeb555be02d (plain)
  1. @startuml
  2. :instantiate mussel object;
  3. :instantiate bluetooth object;
  4. group init
  5. :setup mussel voting;
  6. :setup bluetooth scanner;
  7. end group
  8. split
  9. while (each beacon detected)
  10. group "bluetooth callback" {
  11. :collect beacon data;
  12. end group
  13. endwhile
  14. -[hidden]->
  15. kill
  16. split again
  17. while (each 500ms)
  18. group loop {
  19. :allign beacon data as ballots;
  20. :qualify ballots for a vote;
  21. :conclude vote result;
  22. :act on vote result;
  23. end group
  24. endwhile
  25. -[hidden]->
  26. kill
  27. @enduml