/* RFID controlled door lock */
digraph {
  pad=0.5; bgcolor="lightgrey"; nodesep=1;
  node [shape="square"; style="filled";  fillcolor="cyan"];
  edge [labelfontsize=10; minlen=2; labeldistance=2;  ];
  DOOR_LOCKED -> KEY_ANALYSIS [taillabel="EVT_RFID_DETECTED"];
  KEY_ANALYSIS -> DOOR_UNLOCKED [taillabel="MSG_KEY_OK"];
  KEY_ANALYSIS -> DOOR_LOCKED [taillabel="MSG_KEY_NOK"];
  DOOR_UNLOCKED -> REPORTING [taillabel="EVT_TIMER_DONE"];
  DOOR_LOCKED -> DOOR_UNLOCKED [taillabel="EVT_INTERNAL_BUTTON"];
  DOOR_UNLOCKED -> DOOR_UNLOCKED [taillabel="EVT_INTERNAL_BUTTON"];
  REPORTING -> DOOR_LOCKED [taillabel="EVT_REPORT_DONE"];
  {rank=same; DOOR_LOCKED DOOR_UNLOCKED}
}

