forked from adrianvlupu/C4-PlantUML
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NSX_C4_Shared.puml
131 lines (110 loc) · 4.65 KB
/
NSX_C4_Shared.puml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
!unquoted procedure System($alias, $label, $descr="", $sprite="")
!$key = "present-" + $alias
%set_variable_value($key, "1")
rectangle "$getSystem($label, $descr, $sprite)" <<system>> as $alias
!endprocedure
!unquoted procedure System_Ext($alias, $label, $descr="", $sprite="")
!$key = "present-" + $alias
%set_variable_value($key, "1")
rectangle "$getSystem($label, $descr, $sprite)" <<external_system>> as $alias
!endprocedure
!unquoted procedure Rel($from, $to, $label)
!$key_from = "present-" + $from
!$exists_from = %variable_exists($key_from)
!$key_to = "present-" + $to
!$exists_to = %variable_exists($key_to)
!$direction = "-->>"
!if ($exists_from == "1") && ($exists_to == "1")
$from $direction $to: **$label**
!endif
!endprocedure
!unquoted procedure Rel($from, $to, $label, $techn)
!$key_from = "present-" + $from
!$exists_from = %variable_exists($key_from)
!$key_to = "present-" + $to
!$exists_to = %variable_exists($key_to)
!$direction = "-->>"
!if ($exists_from == "1") && ($exists_to == "1")
$from $direction $to: **$label**\n//<size:$TECHN_FONT_SIZE>[$techn]</size>//
!endif
!endprocedure
!unquoted procedure Person($alias, $label, $descr="", $sprite="")
!$key = "present-" + $alias
%set_variable_value($key, "1")
rectangle "$getPerson($label, $descr, $sprite)" <<person>> as $alias
!endprocedure
!unquoted procedure NSXContainer($alias, $label, $techn, $descr="", $sprite="")
!$key = "present-" + $alias
%set_variable_value($key, "1")
rectangle "$getContainer($label, $techn, $descr, $sprite)" <<container>> as $alias
!endprocedure
!unquoted procedure NSXContainerDb($alias, $label, $techn, $descr="", $sprite="")
!$key = "present-" + $alias
%set_variable_value($key, "1")
database "$getContainer($label, $techn, $descr, $sprite)" <<container>> as $alias
!endprocedure
!unquoted procedure NSXContainerQueue($alias, $label, $techn, $descr="", $sprite="")
!$key = "present-" + $alias
%set_variable_value($key, "1")
queue "$getContainer($label, $techn, $descr, $sprite)" <<container>> as $alias
!endprocedure
!unquoted procedure NSXContainer_Ext($alias, $label, $techn, $descr="", $sprite="")
!$key = "present-" + $alias
%set_variable_value($key, "1")
rectangle "$getContainer($label, $techn, $descr, $sprite)" <<external_container>> as $alias
!endprocedure
!unquoted procedure NSXContainerDb_Ext($alias, $label, $techn, $descr="", $sprite="")
!$key = "present-" + $alias
%set_variable_value($key, "1")
database "$getContainer($label, $techn, $descr, $sprite)" <<external_container>> as $alias
!endprocedure
!unquoted procedure NSXContainerQueue_Ext($alias, $label, $techn, $descr="", $sprite="")
!$key = "present-" + $alias
%set_variable_value($key, "1")
queue "$getContainer($label, $techn, $descr, $sprite)" <<external_container>> as $alias
!endprocedure
!unquoted function Enterprise_Boundary($alias, $label)
!$key = "present-" + $alias
%set_variable_value($key, "1")
!return Boundary($alias, $label, "Enterprise")
!endfunction
!unquoted function System_Boundary($alias, $label)
!$key = "present-" + $alias
%set_variable_value($key, "1")
!return Boundary($alias, $label, "System")
!endfunction
!unquoted function Container_Boundary($alias, $label)
!$key = "present-" + $alias
%set_variable_value($key, "1")
!return Boundary($alias, $label, "Container")
!endfunction
!unquoted procedure NSXComponent($alias, $label, $techn, $descr="", $sprite="")
!$key = "present-" + $alias
%set_variable_value($key, "1")
rectangle "$getComponent($label, $techn, $descr, $sprite)" <<component>> as $alias
!endprocedure
!unquoted procedure NSXComponentDb($alias, $label, $techn, $descr="", $sprite="")
!$key = "present-" + $alias
%set_variable_value($key, "1")
database "$getComponent($label, $techn, $descr, $sprite)" <<component>> as $alias
!endprocedure
!unquoted procedure NSXComponentQueue($alias, $label, $techn, $descr="", $sprite="")
!$key = "present-" + $alias
%set_variable_value($key, "1")
queue "$getComponent($label, $techn, $descr, $sprite)" <<component>> as $alias
!endprocedure
!unquoted procedure NSXComponent_Ext($alias, $label, $techn, $descr="", $sprite="")
!$key = "present-" + $alias
%set_variable_value($key, "1")
rectangle "$getComponent($label, $techn, $descr, $sprite)" <<external_component>> as $alias
!endprocedure
!unquoted procedure NSXComponentDb_Ext($alias, $label, $techn, $descr="", $sprite="")
!$key = "present-" + $alias
%set_variable_value($key, "1")
database "$getComponent($label, $techn, $descr, $sprite)" <<external_component>> as $alias
!endprocedure
!unquoted procedure NSXComponentQueue_Ext($alias, $label, $techn, $descr="", $sprite="")
!$key = "present-" + $alias
%set_variable_value($key, "1")
queue "$getComponent($label, $techn, $descr, $sprite)" <<external_component>> as $alias
!endprocedure