vending.dot 938 B

1234567891011121314151617181920
  1. /* vending machine */
  2. digraph {
  3. pad=0.5; bgcolor="lightgrey";
  4. node [shape="box"; style="filled"; fillcolor="cyan"];
  5. edge [labelfontsize=10; minlen=2; labeldistance=4; ];
  6. VEND_IDLE -> VEND_PRE_SHOW [taillabel="EVT_SELECT_BUTTON"];
  7. VEND_PRE_SHOW -> VEND_IDLE [taillabel="EVT_TIMER"];
  8. VEND_PRE_SHOW -> VEND_DISPENSE [taillabel="EVT_PAYMENT"];
  9. VEND_IDLE -> VEND_WAIT_SELECT [taillabel="EVT_PAYMENT"];
  10. VEND_WAIT_SELECT -> VEND_DISPENSE [taillabel="EVT_SELECT_BUTTON"];
  11. VEND_DISPENSE -> VEND_PRODUCT_READY [taillabel="EVT_DISPENSE_COMPLETE"];
  12. VEND_PRODUCT_READY -> VEND_IDLE [taillabel="EVT_BIN_EMPTY"];
  13. VEND_IDLE [label="VEND_IDLE\ndisplay attraction mode"];
  14. VEND_PRE_SHOW [label="VEND_PRE_SHOW\nrequest payment"];
  15. VEND_WAIT_SELECT [label="VEND_WAIT_SELECT\nrequest selection"];
  16. VEND_DISPENSE [label="VEND_DISPENSE\noperate motor"];
  17. VEND_PRODUCT_READY [label="VEND_PRODUCT_READY\nuser can remove product"];
  18. }