summaryrefslogtreecommitdiff
path: root/bip-0009/states.gv
blob: 9dc95c56e3554cc33eb4f26b4a23504635dcd4ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*   There are many ways to compile this, but one of them is:
 *
 *     $ dot -Tpng states.gv -o states.png
 */
digraph {
  /*   States. */
  DEFINED; FAILED; STARTED; LOCKED_IN; ACTIVE;

  /*   Relationships between states, labeled where applicable. */
  DEFINED -> DEFINED;
  DEFINED -> FAILED [label = "timeout ≤ MTP"];
  DEFINED -> STARTED [label = "starttime ≤ MTP < timeout"];
  FAILED -> FAILED;
  STARTED -> STARTED;
  STARTED -> FAILED [label = "timeout ≤ MTP"];
  STARTED -> LOCKED_IN [label = "(MTP < timeout) AND (threshold reached)"];
  LOCKED_IN -> ACTIVE [label = "Always"];
  ACTIVE -> ACTIVE;

  /*   Visualization hack to unclutter output. */
  nodesep = 1.2;
}