magic-wormhole/docs/nameplates.dot
Brian Warner 80661392b6 build out all state machines
still early: automat is happy (they're syntactically valid), but the Outputs
are not implemented, and there are plenty of type mismatches
2017-04-06 12:21:00 -07:00

43 lines
1.3 KiB
Plaintext

digraph {
{rank=same; title S0A S0B}
title [label="Nameplate\nLister" style="dotted"]
S0A [label="S0A:\nnot wanting\nunconnected"]
S0B [label="S0B:\nnot wanting\nconnected" color="orange"]
S0A -> S0B [label="connected"]
S0B -> S0A [label="lost"]
S0A -> S1A [label="refresh"]
S0B -> P_tx [label="refresh" color="orange" fontcolor="orange"]
S0A -> P_tx [style="invis"]
{rank=same; S1A P_tx S1B P_notify}
S1A [label="S1A:\nwant list\nunconnected"]
S1B [label="S1B:\nwant list\nconnected" color="orange"]
S1A -> P_tx [label="connected"]
P_tx [shape="box" label="RC.tx_list()" color="orange"]
P_tx -> S1B [color="orange"]
S1B -> S1A [label="lost"]
S1A -> foo [label="refresh"]
foo [label="" style="dashed"]
foo -> S1A
S1B -> foo2 [label="refresh"]
foo2 [label="" style="dashed"]
foo2 -> P_tx
S0B -> P_notify [label="rx"]
S1B -> P_notify [label="rx" color="orange" fontcolor="orange"]
P_notify [shape="box" label="C.got_nameplates()"]
P_notify -> S0B
{rank=same; foo foo2 legend}
legend [shape="box" style="dotted"
label="refresh: NL.refresh_nameplates()\nrx: NL.rx_nameplates()"]
}