beer_vat.dot 959 B

12345678910111213141516171819202122
  1. /* beer vat pressure release valve */
  2. digraph {
  3. pad=0.5; bgcolor="lightgrey"; nodesep=1; ranksep=0.3;
  4. node [shape="box"; style="filled"; fillcolor="cyan"; ];
  5. edge [labelfontsize=10; minlen=2; labeldistance=2 ];
  6. CLOSED [label="CLOSED\npressure valve closed"];
  7. FLASHING [label="FLASHING\nstart blinking LED"];
  8. BEEPING [label="BEEPING\nturn on the alarm sound"];
  9. OPENING [label="OPENING\nslowly open the relief valve"];
  10. CLOSING [label="CLOSING\nslowly close the relief valve"];
  11. CLOSED -> FLASHING [taillabel="EVT_PRESSURE";]
  12. FLASHING -> BEEPING [taillabel="EVT_TIMER";]
  13. BEEPING -> OPENING [taillabel="EVT_TIMER";]
  14. OPENING -> OPEN [taillabel="EVT_TIMER";]
  15. OPEN -> CLOSING [taillabel="EVT_TIMER";]
  16. CLOSING -> CLOSED [taillabel="EVT_TIMER";]
  17. CLOSED -> OPENING [taillabel="EVT_BUTTON";]
  18. FLASHING -> OPENING [taillabel="EVT_BUTTON";]
  19. BEEPING -> OPENING [taillabel="EVT_BUTTON";]
  20. OPEN -> CLOSING [taillabel="EVT_BUTTON";]
  21. }