Statistics
| Branch: | Revision:

urtware / doc / activitydiagrams / topic / urtTopicInit.svg @ 7491c395

History | View | Annotate | Download (9.162 KB)

1
<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentScriptType="application/ecmascript" contentStyleType="text/css" height="437px" preserveAspectRatio="none" style="width:702px;height:437px;" version="1.1" viewBox="0 0 702 437" width="702px" zoomAndPan="magnify"><defs><filter height="300%" id="f1rfgzv3aiz2lu" width="300%" x="-1" y="-1"><feGaussianBlur result="blurOut" stdDeviation="2.0"/><feColorMatrix in="blurOut" result="blurOut2" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .4 0"/><feOffset dx="4.0" dy="4.0" in="blurOut2" result="blurOut3"/><feBlend in="SourceGraphic" in2="blurOut3" mode="normal"/></filter></defs><g><text fill="#000000" font-family="sans-serif" font-size="18" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="89" x="305.5" y="26.708">µRtWare</text><text fill="#000000" font-family="sans-serif" font-size="18" lengthAdjust="spacingAndGlyphs" textLength="117" x="291.5" y="47.6611">urtTopicInit()</text><text fill="#000000" font-family="sans-serif" font-size="18" lengthAdjust="spacingAndGlyphs" textLength="0" x="353" y="68.6143"/><path d="M297,72.8594 L297,158.5234 A0,0 0 0 0 297,158.5234 L562,158.5234 A0,0 0 0 0 562,158.5234 L562,119.6914 L582,115.6914 L562,111.6914 L562,82.8594 L552,72.8594 L297,72.8594 A0,0 0 0 0 297,72.8594 " fill="#FBFB77" filter="url(#f1rfgzv3aiz2lu)" style="stroke: #A80036; stroke-width: 1.0;"/><path d="M552,72.8594 L552,82.8594 L562,82.8594 L552,72.8594 " fill="#FBFB77" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.0;" x1="297" x2="345.5" y1="85.4258" y2="85.4258"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="0" x="349.5" y="89.4263"/><text fill="#000000" font-family="monospace" font-size="13" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="40" x="349.5" y="89.4263">topic</text><text fill="#000000" font-family="monospace" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="112" x="397.5" y="89.4263">: urt_topic_t*</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="0" x="513.5" y="89.4263"/><line style="stroke: #A80036; stroke-width: 1.0;" x1="513.5" x2="562" y1="85.4258" y2="85.4258"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="134" x="303" y="105.0591">The topic to initialize.</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="76" x="303" y="120.1919">Must not be</text><text fill="#000000" font-family="monospace" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="32" x="383" y="120.1919">NULL</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="4" x="415" y="120.1919">.</text><line style="stroke: #A80036; stroke-width: 1.0;" x1="297" x2="353.5" y1="130.8242" y2="130.8242"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="0" x="357.5" y="134.8247"/><text fill="#000000" font-family="monospace" font-size="13" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="16" x="357.5" y="134.8247">id</text><text fill="#000000" font-family="monospace" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="120" x="381.5" y="134.8247">: urt_topicid_t</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="0" x="505.5" y="134.8247"/><line style="stroke: #A80036; stroke-width: 1.0;" x1="505.5" x2="562" y1="130.8242" y2="130.8242"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="244" x="303" y="150.4575">Unique, numeric identifier of the topic.</text><ellipse cx="592" cy="115.6914" fill="#000000" filter="url(#f1rfgzv3aiz2lu)" rx="10" ry="10" style="stroke: none; stroke-width: 1.0;"/><rect fill="#FEFECE" filter="url(#f1rfgzv3aiz2lu)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="131" x="526.5" y="178.5234"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="111" x="536.5" y="199.6621">initialize members</text><rect fill="#FEFECE" filter="url(#f1rfgzv3aiz2lu)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="77" x="553.5" y="232.4922"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="57" x="563.5" y="253.6309">lock core</text><rect fill="#FEFECE" filter="url(#f1rfgzv3aiz2lu)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="198" x="493" y="286.4609"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="178" x="503" y="307.5996">insert self to global topic list</text><rect fill="#FEFECE" filter="url(#f1rfgzv3aiz2lu)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="93" x="545.5" y="340.4297"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="73" x="555.5" y="361.5684">unlock core</text><path d="M10,385.2656 L10,425.5313 A0,0 0 0 0 10,425.5313 L561,425.5313 A0,0 0 0 0 561,425.5313 L561,409.3984 L581,405.3984 L561,401.3984 L561,395.2656 L551,385.2656 L10,385.2656 A0,0 0 0 0 10,385.2656 " fill="#FBFB77" filter="url(#f1rfgzv3aiz2lu)" style="stroke: #A80036; stroke-width: 1.0;"/><path d="M551,385.2656 L551,395.2656 L561,395.2656 L551,385.2656 " fill="#FBFB77" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.0;" x1="10" x2="209" y1="397.832" y2="397.832"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="0" x="213" y="401.8325"/><text fill="#000000" font-family="sans-serif" font-size="13" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="45" x="213" y="401.8325">return</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="0" x="262" y="401.8325"/><text fill="#000000" font-family="monospace" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="96" x="262" y="401.8325">urt_status_t</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="0" x="362" y="401.8325"/><line style="stroke: #A80036; stroke-width: 1.0;" x1="362" x2="561" y1="397.832" y2="397.832"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="49" x="16" y="417.4653">Returns</text><text fill="#000000" font-family="monospace" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="128" x="69" y="417.4653">URT_STATUS_ERROR</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="345" x="201" y="417.4653">if another topic with the same identifier already exists.</text><ellipse cx="592" cy="405.3984" fill="#FFFFFF" filter="url(#f1rfgzv3aiz2lu)" rx="11" ry="11" style="stroke: #000000; stroke-width: 1.0;"/><ellipse cx="592" cy="405.3984" fill="#000000" rx="6" ry="6" style="stroke: #7F7F7F; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="592" x2="592" y1="125.6914" y2="178.5234"/><polygon fill="#A80036" points="588,168.5234,592,178.5234,596,168.5234,592,172.5234" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="592" x2="592" y1="212.4922" y2="232.4922"/><polygon fill="#A80036" points="588,222.4922,592,232.4922,596,222.4922,592,226.4922" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="592" x2="592" y1="266.4609" y2="286.4609"/><polygon fill="#A80036" points="588,276.4609,592,286.4609,596,276.4609,592,280.4609" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="592" x2="592" y1="320.4297" y2="340.4297"/><polygon fill="#A80036" points="588,330.4297,592,340.4297,596,330.4297,592,334.4297" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="592" x2="592" y1="374.3984" y2="394.3984"/><polygon fill="#A80036" points="588,384.3984,592,394.3984,596,384.3984,592,388.3984" style="stroke: #A80036; stroke-width: 1.0;"/><!--MD5=[39b5d771579172087171e2a826b6cc04]
2
@startuml
3

    
4
title **µRtWare**\nurtTopicInit()\n
5

    
6

    
7

    
8

    
9

    
10

    
11

    
12

    
13

    
14

    
15

    
16

    
17
start
18
note
19
  - - ""**topic** : urt_topic_t*"" - -
20
  The topic to initialize.
21
  Must not be ""NULL"".
22
  - - ""**id** : urt_topicid_t"" - -
23
  Unique, numeric identifier of the topic.
24
end note
25

    
26

    
27
:initialize members;
28
:lock core;
29
:insert self to global topic list;
30
:unlock core;
31

    
32

    
33
stop
34
note
35
  - - **return** ""urt_status_t"" - -
36
  Returns ""URT_STATUS_ERROR"" if another topic with the same identifier already exists.
37
end note
38

    
39

    
40
@enduml
41

    
42
PlantUML version 1.2020.00(Sat Jan 11 13:30:53 CET 2020)
43
(GPL source distribution)
44
Java Runtime: OpenJDK Runtime Environment
45
JVM: OpenJDK 64-Bit Server VM
46
Java Version: 11.0.6+10-post-Ubuntu-1ubuntu118.04.1
47
Operating System: Linux
48
Default Encoding: UTF-8
49
Language: en
50
Country: US
51
--></g></svg>