urtware / doc / activitydiagrams / core / urtCoreAddTopic.svg @ e7056e1b
History | View | Annotate | Download (10.849 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="599px" preserveAspectRatio="none" style="width:383px;height:599px;" version="1.1" viewBox="0 0 383 599" width="383px" zoomAndPan="magnify"><defs><filter height="300%" id="fbou9q8mkyvik" 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="146.25" y="26.708">µRtWare</text><text fill="#000000" font-family="sans-serif" font-size="18" lengthAdjust="spacingAndGlyphs" textLength="165" x="108.25" y="47.6611">urtCoreAddTopic()</text><text fill="#000000" font-family="sans-serif" font-size="18" lengthAdjust="spacingAndGlyphs" textLength="0" x="193.75" y="68.6143"/><path d="M83,72.8594 L83,153.3906 L357,153.3906 L357,82.8594 L347,72.8594 L83,72.8594 " fill="#FBFB77" filter="url(#fbou9q8mkyvik)" style="stroke: #A80036; stroke-width: 1.0;"/><path d="M347,72.8594 L347,82.8594 L357,82.8594 L347,72.8594 " fill="#FBFB77" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.0;" x1="83" x2="154" y1="85.4258" y2="85.4258"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="0" x="158" y="89.4263"/><text fill="#000000" font-family="sans-serif" font-size="13" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="37" x="158" y="89.4263">topic</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="83" x="199" y="89.4263">: urt_topic_t*</text><line style="stroke: #A80036; stroke-width: 1.0;" x1="286" x2="357" y1="85.4258" y2="85.4258"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="253" x="89" y="105.0591">The topic to append. Must not be NULL.</text><line style="stroke: #A80036; stroke-width: 1.0;" x1="83" x2="357" y1="113.125" y2="113.125"/><line style="stroke: #A80036; stroke-width: 1.0;" x1="83" x2="357" y1="115.125" y2="115.125"/><line style="stroke: #A80036; stroke-width: 1.0;" x1="83" x2="149" y1="125.6914" y2="125.6914"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="0" x="153" y="129.6919"/><text fill="#000000" font-family="sans-serif" font-size="13" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="45" x="153" y="129.6919">return</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="85" x="202" y="129.6919">: urt_status_t</text><line style="stroke: #A80036; stroke-width: 1.0;" x1="291" x2="357" y1="125.6914" y2="125.6914"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="240" x="89" y="145.3247">Returns URT_STATUS_OK on success.</text><ellipse cx="220" cy="183.3906" fill="#000000" filter="url(#fbou9q8mkyvik)" rx="10" ry="10" style="stroke: none; stroke-width: 1.0;"/><rect fill="#FEFECE" filter="url(#fbou9q8mkyvik)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="77" x="181.5" y="213.3906"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="57" x="191.5" y="234.5293">lock core</text><rect fill="#FEFECE" filter="url(#fbou9q8mkyvik)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="264" x="88" y="267.3594"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="244" x="98" y="288.498">Access first topic in core's list of topics</text><rect fill="#FEFECE" filter="url(#fbou9q8mkyvik)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="155" x="142.5" y="377.0386"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="135" x="152.5" y="398.1772">Proceed to next topic</text><polygon fill="#FEFECE" filter="url(#fbou9q8mkyvik)" points="158,321.3281,282,321.3281,294,333.3281,282,345.3281,158,345.3281,146,333.3281,158,321.3281" style="stroke: #A80036; stroke-width: 1.5;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="20" x="224" y="355.5386">yes</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="92" x="158" y="337.1362">Next topic is not</text><text fill="#000000" font-family="monospace" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="28" x="254" y="337.1362">NULL</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="14" x="132" y="330.7339">no</text><rect fill="#FEFECE" filter="url(#fbou9q8mkyvik)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="293" x="73.5" y="453.0073"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="273" x="83.5" y="474.146">Set next pointer of topic to topic to append</text><rect fill="#FEFECE" filter="url(#fbou9q8mkyvik)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="93" x="173.5" y="506.9761"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="73" x="183.5" y="528.1147">unlock core</text><path d="M10,559.3784 L10,584.5112 A0,0 0 0 0 10,584.5112 L189,584.5112 A0,0 0 0 0 189,584.5112 L189,577.3784 L209,571.9448 L189,569.3784 L189,569.3784 L179,559.3784 L10,559.3784 A0,0 0 0 0 10,559.3784 " fill="#FBFB77" filter="url(#fbou9q8mkyvik)" style="stroke: #A80036; stroke-width: 1.0;"/><path d="M179,559.3784 L179,569.3784 L189,569.3784 L179,559.3784 " fill="#FBFB77" style="stroke: #A80036; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="158" x="16" y="576.4453">Return URT_STATUS_OK.</text><ellipse cx="220" cy="571.9448" fill="#FFFFFF" filter="url(#fbou9q8mkyvik)" rx="11" ry="11" style="stroke: #000000; stroke-width: 1.0;"/><ellipse cx="220" cy="571.9448" fill="#000000" rx="6" ry="6" style="stroke: #7F7F7F; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="220" x2="220" y1="153.3906" y2="173.3906"/><polygon fill="#A80036" points="216,163.3906,220,173.3906,224,163.3906,220,167.3906" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="220" x2="220" y1="193.3906" y2="213.3906"/><polygon fill="#A80036" points="216,203.3906,220,213.3906,224,203.3906,220,207.3906" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="220" x2="220" y1="247.3594" y2="267.3594"/><polygon fill="#A80036" points="216,257.3594,220,267.3594,224,257.3594,220,261.3594" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="220" x2="220" y1="345.3281" y2="377.0386"/><polygon fill="#A80036" points="216,367.0386,220,377.0386,224,367.0386,220,371.0386" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="220" x2="220" y1="411.0073" y2="421.0073"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="220" x2="309.5" y1="421.0073" y2="421.0073"/><polygon fill="#A80036" points="305.5,385.6206,309.5,375.6206,313.5,385.6206,309.5,381.6206" style="stroke: #A80036; stroke-width: 1.5;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="309.5" x2="309.5" y1="333.3281" y2="421.0073"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="309.5" x2="294" y1="333.3281" y2="333.3281"/><polygon fill="#A80036" points="304,329.3281,294,333.3281,304,337.3281,300,333.3281" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="146" x2="130.5" y1="333.3281" y2="333.3281"/><polygon fill="#A80036" points="126.5,371.6206,130.5,381.6206,134.5,371.6206,130.5,375.6206" style="stroke: #A80036; stroke-width: 1.5;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="130.5" x2="130.5" y1="333.3281" y2="433.0073"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="130.5" x2="220" y1="433.0073" y2="433.0073"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="220" x2="220" y1="433.0073" y2="453.0073"/><polygon fill="#A80036" points="216,443.0073,220,453.0073,224,443.0073,220,447.0073" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="220" x2="220" y1="301.3281" y2="321.3281"/><polygon fill="#A80036" points="216,311.3281,220,321.3281,224,311.3281,220,315.3281" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="220" x2="220" y1="486.9761" y2="506.9761"/><polygon fill="#A80036" points="216,496.9761,220,506.9761,224,496.9761,220,500.9761" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="220" x2="220" y1="540.9448" y2="560.9448"/><polygon fill="#A80036" points="216,550.9448,220,560.9448,224,550.9448,220,554.9448" style="stroke: #A80036; stroke-width: 1.0;"/><!--MD5=[24dfdbf44134ce033611b8a7de927653] |
---|---|
2 |
@startuml |
3 |
|
4 |
title **µRtWare**\nurtCoreAddTopic()\n |
5 |
|
6 |
/'### PARAMETERS & RETURN ####################################################'/ |
7 |
|
8 |
note |
9 |
- - **topic** : urt_topic_t* - - |
10 |
The topic to append. Must not be NULL. |
11 |
==== |
12 |
- - **return** : urt_status_t - - |
13 |
Returns URT_STATUS_OK on success. |
14 |
endnote |
15 |
|
16 |
/'### PROCEDURE ##############################################################'/ |
17 |
|
18 |
start |
19 |
:lock core; |
20 |
:Access first topic in core's list of topics; |
21 |
while (Next topic is not ""NULL"") is (yes) |
22 |
:Proceed to next topic; |
23 |
endwhile (no) |
24 |
:Set next pointer of topic to topic to append; |
25 |
:unlock core; |
26 |
stop |
27 |
note |
28 |
Return URT_STATUS_OK. |
29 |
endnote |
30 |
|
31 |
/'### OUTRO ##################################################################'/ |
32 |
|
33 |
@enduml |
34 |
|
35 |
@startuml |
36 |
|
37 |
title **µRtWare**\nurtCoreAddTopic()\n |
38 |
|
39 |
|
40 |
note |
41 |
- - **topic** : urt_topic_t* - - |
42 |
The topic to append. Must not be NULL. |
43 |
==== |
44 |
- - **return** : urt_status_t - - |
45 |
Returns URT_STATUS_OK on success. |
46 |
endnote |
47 |
|
48 |
|
49 |
start |
50 |
:lock core; |
51 |
:Access first topic in core's list of topics; |
52 |
while (Next topic is not ""NULL"") is (yes) |
53 |
:Proceed to next topic; |
54 |
endwhile (no) |
55 |
:Set next pointer of topic to topic to append; |
56 |
:unlock core; |
57 |
stop |
58 |
note |
59 |
Return URT_STATUS_OK. |
60 |
endnote |
61 |
|
62 |
|
63 |
@enduml |
64 |
|
65 |
PlantUML version 1.2020.15(Sun Jun 28 13:39:45 CEST 2020) |
66 |
(GPL source distribution) |
67 |
Java Runtime: OpenJDK Runtime Environment |
68 |
JVM: OpenJDK 64-Bit Server VM |
69 |
Default Encoding: UTF-8 |
70 |
Language: de |
71 |
Country: DE |
72 |
--></g></svg> |