Added FSM documentation

This commit is contained in:
andsel
2016-11-05 18:29:08 +01:00
parent b7dec8f65e
commit b51b3214ba
3 changed files with 28 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
digraph finite_state_machine {
rankdir=TB;
size="8,5"
node [shape = doublecircle]; DISCONNECTED CONNECTED;
node [shape = circle];
DISCONNECTED -> INITIALIZED [ label = "receiveMsgConnect" ];
INITIALIZED -> DROPPED [ label = "dropExitingConnection" ];
INITIALIZED -> CONNECTED [ label = "createClientSession" ];
DROPPED -> CONNECTED [ label = "createClientSession" ];
}
+11
View File
@@ -0,0 +1,11 @@
digraph finite_state_machine {
rankdir=TB;
size="8,5"
node [shape = doublecircle]; CONNECTED DISCONNECTED;
node [shape = circle];
CONNECTED -> DISCONNECTED [ label = "abortConnection" ];
CONNECTED -> CLEANED_MESSAGES [ label = "cleanStorage" ];
CLEANED_MESSAGES -> DISCONNECTED [ label = "abortConnection" ];
CLEANED_MESSAGES -> LISTENERS_NOTIFIED [ label = "notifyListerners" ];
LISTENERS_NOTIFIED -> DISCONNECTED [ label = "dropConnection" ];
}
+7
View File
@@ -0,0 +1,7 @@
# to install Graphviz
sudo apt-get install graphviz
#to create svg or others like pdf, ps
dot -Tps connect_fsm.dot -o connect_fsm.svg
dot -Tps disconnect_fsm.dot -o disconnect_fsm.svg