forked from Sean-Bradley/Design-Patterns-In-Python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclasses_switch_command.dot
More file actions
26 lines (17 loc) · 944 Bytes
/
classes_switch_command.dot
File metadata and controls
26 lines (17 loc) · 944 Bytes
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
digraph "classes_switch_command" {
charset="utf-8"
rankdir=BT
{rank=same; Client, Invoker, ICommand}
"Command1" [label="{Switch ON|\l|execute()\l}", shape="record"];
"Command2" [label="{Switch OFF|\l|execute()\l}", shape="record"];
"Reciever" [label="{Light|\l|turn_off()\lturn_on()\l}", shape="record"];
"ICommand" [label="{ICommand|\l|execute()\l}", shape="record"];
"Invoker" [label="{Switch|\l|register()\lexecute()\l}", shape="record"];
"Client" [label="{APP.py|\l|\l}", shape="record"];
"Client" -> "Invoker" [arrowhead="open", arrowtail="none", style="dashed"];
"Invoker" -> "ICommand" [arrowhead="open", arrowtail="none", style="dashed"];
"Command1" -> "Reciever" [arrowhead="open", arrowtail="none", style="dashed"];
"Command2" -> "Reciever" [arrowhead="open", arrowtail="none", style="dashed"];
"Command1" -> "ICommand" [arrowhead="empty", arrowtail="none"];
"Command2" -> "ICommand" [arrowhead="empty", arrowtail="none"];
}