... |
... |
@@ -151,9 +151,29 @@ |
151 |
151 |
{{/cache}} |
152 |
152 |
|
153 |
153 |
|
|
154 |
+{{plantuml}} |
|
155 |
+@startuml |
|
156 |
+start |
|
157 |
+:do something; |
|
158 |
+note right |
|
159 |
+gogogogogo |
|
160 |
+end note |
|
161 |
+:do something2; |
|
162 |
+:do something3; |
|
163 |
+if (finish) then(no) |
|
164 |
+:do something4; |
|
165 |
+else(yes) |
|
166 |
+:do something5; |
|
167 |
+endif |
|
168 |
+end |
|
169 |
+@enduml |
|
170 |
+{{/plantuml}} |
|
171 |
+ |
|
172 |
+ |
|
173 |
+ |
154 |
154 |
draw: |
155 |
155 |
|
156 |
|
-{{diagram cached="false"/}} |
|
176 |
+{{diagram/}} |
157 |
157 |
|
158 |
158 |
|
159 |
159 |
|
... |
... |
@@ -184,32 +184,7 @@ |
184 |
184 |
{{/plantuml}} |
185 |
185 |
|
186 |
186 |
|
187 |
|
-{{sequence}} |
188 |
188 |
|
189 |
|
-title Test |
190 |
|
- |
191 |
|
-actor H |
192 |
|
-H->A: |
193 |
|
- |
194 |
|
-A->+B:test |
195 |
|
-B-->-A:finish |
196 |
|
- |
197 |
|
-A->+C:ping |
198 |
|
-C->C:doSomthing |
199 |
|
-C-->-B: finish |
200 |
|
- |
201 |
|
-B->+D:hello |
202 |
|
-D->+C:ping |
203 |
|
-C-->-D:pong |
204 |
|
-D->+B:ping |
205 |
|
-B->+A:ping |
206 |
|
-A-->-B:pong |
207 |
|
-B-->-D:pong |
208 |
|
- |
209 |
|
-{{/sequence}} |
210 |
|
- |
211 |
|
- |
212 |
|
- |
213 |
213 |
{{plantuml}} |
214 |
214 |
@startuml |
215 |
215 |
title Test |
... |
... |
@@ -232,12 +232,13 @@ |
232 |
232 |
while(actor.canFinish()) is (false) |
233 |
233 |
:actor.finish(); |
234 |
234 |
endwhile(true) |
|
230 |
+partition stop { |
235 |
235 |
fork |
236 |
236 |
:actor.stop(); |
237 |
237 |
fork again |
238 |
238 |
:env.stop(); |
239 |
239 |
endfork |
240 |
|
- |
|
236 |
+} |
241 |
241 |
end |
242 |
242 |
|
243 |
243 |
@endluml |
... |
... |
@@ -244,6 +244,59 @@ |
244 |
244 |
{{/plantuml}} |
245 |
245 |
|
246 |
246 |
|
|
243 |
+ |
|
244 |
+ |
|
245 |
+{{plantuml}} |
|
246 |
+@startuml |
|
247 |
+ |
|
248 |
+interface Human{ |
|
249 |
+void eat() |
|
250 |
+} |
|
251 |
+note right |
|
252 |
+all human will extend this interface. |
|
253 |
+endnote |
|
254 |
+ |
|
255 |
+class Father{ |
|
256 |
+void makeMoney() |
|
257 |
+} |
|
258 |
+ |
|
259 |
+class Xiaoming{ |
|
260 |
+Human girlFriend |
|
261 |
+void play() |
|
262 |
+} |
|
263 |
+ |
|
264 |
+Human <|.. Father |
|
265 |
+Human <|.. Xiaoming |
|
266 |
+Father <|-- Xiaoming |
|
267 |
+Human <.. Xiaoming |
|
268 |
+ |
|
269 |
+@enduml |
|
270 |
+{{/plantuml}} |
|
271 |
+ |
|
272 |
+ |
|
273 |
+ |
|
274 |
+{{plantuml}} |
|
275 |
+@startmindmap |
|
276 |
+ |
|
277 |
++ OS |
|
278 |
+++ Unix |
|
279 |
+++ Linux |
|
280 |
+++ MacOS |
|
281 |
+** Windows |
|
282 |
+*** Windows 95 |
|
283 |
+*** Windows 98 |
|
284 |
+*** Windows 7 |
|
285 |
+*** Windows 8 |
|
286 |
+*** Windows 10 |
|
287 |
+++ FreeBSD |
|
288 |
+++ Other |
|
289 |
+++ 华为鸿蒙 |
|
290 |
+ |
|
291 |
+@endmindmap |
|
292 |
+{{/plantuml}} |
|
293 |
+ |
|
294 |
+ |
|
295 |
+ |
247 |
247 |
页脚引用: |
248 |
248 |
|
249 |
249 |
{{footnote}} |