forked from jakesgordon/javascript-state-machine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathatm.dot
More file actions
31 lines (31 loc) · 1.14 KB
/
atm.dot
File metadata and controls
31 lines (31 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
digraph "ATM" {
"ready";
"pin";
"action";
"return-card";
"deposit-account";
"deposit-amount";
"confirm-deposit";
"collect-envelope";
"continue";
"withdrawal-account";
"withdrawal-amount";
"confirm-withdrawal";
"dispense-cash";
"ready" -> "pin" [ label=" insert-card " ];
"pin" -> "action" [ label=" confirm " ];
"pin" -> "return-card" [ label=" reject " ];
"return-card" -> "ready" [ label=" withdraw " ];
"action" -> "deposit-account" [ label=" deposit " ];
"deposit-account" -> "deposit-amount" [ label=" provide " ];
"deposit-amount" -> "confirm-deposit" [ label=" provide " ];
"confirm-deposit" -> "collect-envelope" [ label=" confirm " ];
"collect-envelope" -> "continue" [ label=" provide " ];
"action" -> "withdrawal-account" [ label=" withdraw " ];
"withdrawal-account" -> "withdrawal-amount" [ label=" provide " ];
"withdrawal-amount" -> "confirm-withdrawal" [ label=" provide " ];
"confirm-withdrawal" -> "dispense-cash" [ label=" confirm " ];
"dispense-cash" -> "continue" [ label=" withdraw " ];
"continue" -> "action" [ label=" continue " ];
"continue" -> "return-card" [ label=" finish " ];
}