-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDiagram.txt
More file actions
242 lines (174 loc) · 5.13 KB
/
Diagram.txt
File metadata and controls
242 lines (174 loc) · 5.13 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
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
Grant Rettke
1 Ditaa
=======
ID: org_gcr_2017-05-13_mara:1F041707-87E7-4490-8F29-996C02CAE757
When a drop of water joins the ocean it becomes the ocean.
,----
| +---------+
| | cBLU |
| | |
| | +----+
| | |cBLU|
| | | |
| +----+----+
`----
[file:image/ditaa-drop_in_the_ocean.png]
,----
| +----------+1 1…3+------+
| | Sailboat +◆----------+ Mast |
| +-----+----+ +------+
| ◆1
| |
| | 1…2+------+
| +----------------+ Hull |
| +------+
| This is not a sailboat
`----
[file:image/ditaa-not_a_sailboat.png]
2 Graphviz
==========
ID: org_gcr_2017-05-13_mara:26F93EEA-E64B-439A-BAF6-1BB7F5182D12
,----
| digraph graphviz {
| subgraph cluster {
| ayh [label="Happy with things?", shape=ellipse];
| no [label="No.", shape=Mdiamond];
| yes [label="Yes.", shape=Mdiamond];
| ayh -> no;
| ayh -> yes;
| no -> ayh [label="Change them."];
| yes -> ayh [label="Keep doing them."];
| }
| labelloc="t";
| label="Life is simple:\nAttribution: @tgtext";
| }
`----
[file:image/graphviz-life_is_simple.png]
3 PlantUML
==========
ID: org_gcr_2017-05-13_mara:ADF3A220-77D0-4635-BB50-D9AF82A803E2
3.1 *Sequence Diagram*
~~~~~~~~~~~~~~~~~~~~~~
ID: org_gcr_2017-05-13_mara:EEDE4AC4-E400-470F-BD6E-9D921E8FD016
- Feature rich.
- Information rich.
,----
| Alice --> Bob: Authentication Request
| Bob --> Alice: Authentication Response
|
| Alice --> Bob: Another authentication Request
| Alice <-- Bob: another authentication Response
`----
[file:image/plantuml-sequence_diagram.png]
3.2 *Use Case Diagram*
~~~~~~~~~~~~~~~~~~~~~~
ID: org_gcr_2017-05-13_mara:8223D025-909D-4B14-A5C2-D939FB2F7E5F
- Actor variable aliasing feature.
,----
| left to right direction
| skinparam packageStyle rect
| actor customer
| actor clerk
| rectangle checkout {
| customer -- (checkout)
| (checkout) .> (payment) : include (help) .> (checkout) : extends (checkout) -- clerk
| }
`----
[file:image/plantuml-use_case_diagram.png]
3.3 *Class Diagram*
~~~~~~~~~~~~~~~~~~~
ID: org_gcr_2017-05-13_mara:E0596CAD-4A2C-4230-860F-077FA6E0EB04
- Valuable for all sorts of ideas in addition to classes.
- `hide', `show', and `include' are mentioned.
- Could be a great reuse mechanism combined with noweb and tangling.
- Spotted characters might be useful to indicating other things.
- Example is data which is clearly a first-class citizen.
- Six package visualization types.
- Packaging vs. namespaceing.
- Good support for splitting large images among output pages.
,----
| title This is not a sailboat
| scale 200 width
| Sailboat "1" *-- "1..3" Mast
| Sailboat "1" *-- "1..3" Hull
`----
[file:image/plantuml-class_diagram.png]
3.4 *Activity Diagram*
~~~~~~~~~~~~~~~~~~~~~~
ID: org_gcr_2017-05-13_mara:31FDFA62-F14F-48CB-9EFD-997EF9EE92BF
- May indicate top to bottom flow using `top'.
- May label arrows.
- May force arrow direction.
- if/else structure for branching.
- Partition construct.
- [New syntax] with more examples.
,----
| start
| partition Initialization {
| :read config file;
| :init internal variable;
| }
| partition Running {
| :wait for user interaction;
| :print information;
| }
|
| stop
`----
[file:image/plantuml-activity_diagram.png]
[New syntax] http://plantuml.sourceforge.net/activity2.html
3.5 *Component Diagram*
~~~~~~~~~~~~~~~~~~~~~~~
ID: org_gcr_2017-05-13_mara:029E7ABD-6F38-412E-ABF4-0A202D7E47EF
- The names to define all of the diagram entity types.
- Identify "Modern UML".
- Good for summaries.
,----
| [First component]
| [Another component]
| () "First Interface"
| () "Another interface" as Interf2
| DataAccess - [First Component]
| [First Component] ..> HTTP : use
`----
[file:image/plantuml-component_diagram.png]
3.6 *State Diagram*
~~~~~~~~~~~~~~~~~~~
ID: org_gcr_2017-05-13_mara:558F580B-2F94-4A23-9EEB-9DC00BB3B19C
,----
| [*] --> State1
| State1 --> [*]
| State1 : this is a string State1 : this is another string
`----
[file:image/plantuml-state_diagram.png]
3.7 *Object Diagram*
~~~~~~~~~~~~~~~~~~~~
ID: org_gcr_2017-05-13_mara:34FC630D-40D9-4E93-8AD9-FD682B32454E
,----
| object Object01
| object Object02
| Object01 <|-- Object02
`----
[file:image/plantuml-object_diagram.png]
3.8 *Options*
~~~~~~~~~~~~~
ID: org_gcr_2017-05-13_mara:F9F5B9E8-5B8F-4791-9516-880788A0667F
- Commands.
- Header and footer values.
- Zoom level.
- Creole markup for most text elements.
- Lists and sub-lists.
- Horizontal lines. Will appear in most containers.
- Headings.
- Plain old HTML.
- Tables, LaTeX style.
- Use [OpenIconic icons] anywhere.
- Fonts and colors.
- You can change just about everything.
- You may nest definitions.
- `monochrome true' option.
- If you are printing
- Or don't want color.
- Internationalization.
- Full Unicode character support.
[OpenIconic icons] https://useiconic.com/open