Statistics
| Branch: | Revision:

urtware / doc / activitydiagrams / subscriber / srtsubscriber / urtSrtSubscriberUnsubscribe.svg @ 5c6cb22f

History | View | Annotate | Download (17.137 KB)

1 2d315870 Thomas Schöpping
<?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="649px" preserveAspectRatio="none" style="width:905px;height:649px;" version="1.1" viewBox="0 0 905 649" width="905px" zoomAndPan="magnify"><defs><filter height="300%" id="f7ija2ov51se2" 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="407.25" y="26.708">µRtWare</text><text fill="#000000" font-family="sans-serif" font-size="18" lengthAdjust="spacingAndGlyphs" textLength="266" x="318.75" y="47.6611">urtSrtSubscriberUnsubscribe()</text><text fill="#000000" font-family="sans-serif" font-size="18" lengthAdjust="spacingAndGlyphs" textLength="0" x="454.75" y="68.6143"/><path d="M277,72.8594 L277,183.6563 L877,183.6563 L877,82.8594 L867,72.8594 L277,72.8594 " fill="#FBFB77" filter="url(#f7ija2ov51se2)" style="stroke: #A80036; stroke-width: 1.0;"/><path d="M867,72.8594 L867,82.8594 L877,82.8594 L867,72.8594 " fill="#FBFB77" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.0;" x1="277" x2="464.5" y1="85.4258" y2="85.4258"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="0" x="468.5" y="89.4263"/><text fill="#000000" font-family="sans-serif" font-size="13" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="78" x="468.5" y="89.4263">subscriber</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="135" x="550.5" y="89.4263">: urt_srtsubscriber_t*</text><line style="stroke: #A80036; stroke-width: 1.0;" x1="689.5" x2="877" y1="85.4258" y2="85.4258"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="251" x="283" y="105.0591">The SRT subscriber to be unsubscribed.</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="76" x="283" y="120.1919">Must not be</text><text fill="#000000" font-family="monospace" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="32" x="363" y="120.1919">NULL</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="4" x="395" y="120.1919">.</text><line style="stroke: #A80036; stroke-width: 1.0;" x1="277" x2="877" y1="128.2578" y2="128.2578"/><line style="stroke: #A80036; stroke-width: 1.0;" x1="277" x2="877" y1="130.2578" y2="130.2578"/><line style="stroke: #A80036; stroke-width: 1.0;" x1="277" x2="506" y1="140.8242" y2="140.8242"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="0" x="510" y="144.8247"/><text fill="#000000" font-family="sans-serif" font-size="13" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="45" x="510" y="144.8247">return</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="85" x="559" y="144.8247">: urt_status_t</text><line style="stroke: #A80036; stroke-width: 1.0;" x1="648" x2="877" y1="140.8242" y2="140.8242"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="49" x="283" y="160.4575">Returns</text><text fill="#000000" font-family="monospace" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="104" x="336" y="160.4575">URT_STATUS_OK</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="68" x="444" y="160.4575">on sucess.</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="49" x="283" y="175.5903">Returns</text><text fill="#000000" font-family="monospace" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="240" x="336" y="175.5903">URT_STATUS_UNSUBSCRIBE_NOTOPIC</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="282" x="580" y="175.5903">if the subscriber is not associated to a topic.</text><ellipse cx="577" cy="213.6563" fill="#000000" filter="url(#f7ija2ov51se2)" rx="10" ry="10" style="stroke: none; stroke-width: 1.0;"/><polygon fill="#FEFECE" filter="url(#f7ija2ov51se2)" points="514.5,243.6563,639.5,243.6563,651.5,255.6563,639.5,267.6563,514.5,267.6563,502.5,255.6563,514.5,243.6563" style="stroke: #A80036; stroke-width: 1.5;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="125" x="514.5" y="259.4644">Associated to a topic?</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="20" x="482.5" y="253.062">yes</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="14" x="651.5" y="253.062">no</text><rect fill="#EEEEEE" filter="url(#f7ija2ov51se2)" height="47.9375" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="252" x="148.5" y="277.6563"/><line style="stroke: #A80036; stroke-width: 1.0; stroke-dasharray: 1.0,2.0;" x1="148.5" x2="158.5" y1="294.6406" y2="294.6406"/><text fill="#000000" font-family="sans-serif" font-size="12" font-style="italic" lengthAdjust="spacingAndGlyphs" textLength="232" x="158.5" y="298.2949">URT_CFG_PUBSUB_PROFILING == true</text><line style="stroke: #A80036; stroke-width: 1.0; stroke-dasharray: 1.0,2.0;" x1="390.5" x2="400.5" y1="294.6406" y2="294.6406"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="60" x="158.5" y="312.7637">lock topic</text><rect fill="#000000" filter="url(#f7ija2ov51se2)" height="6" rx="2.5" ry="2.5" style="stroke: #000000; stroke-width: 1.0;" width="472" x="38.5" y="345.5938"/><rect fill="#FEFECE" filter="url(#f7ija2ov51se2)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="124" x="52.5" y="378.5781"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="104" x="62.5" y="399.7168">unregister event</text><rect fill="#EEEEEE" filter="url(#f7ija2ov51se2)" height="47.9375" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="292" x="204.5" y="371.5938"/><line style="stroke: #A80036; stroke-width: 1.0; stroke-dasharray: 1.0,2.0;" x1="204.5" x2="234.5" y1="388.5781" y2="388.5781"/><text fill="#000000" font-family="sans-serif" font-size="12" font-style="italic" lengthAdjust="spacingAndGlyphs" textLength="232" x="234.5" y="392.2324">URT_CFG_PUBSUB_PROFILING == true</text><line style="stroke: #A80036; stroke-width: 1.0; stroke-dasharray: 1.0,2.0;" x1="466.5" x2="496.5" y1="388.5781" y2="388.5781"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="272" x="214.5" y="406.7012">decrement counter of subscribers (@topic)</text><rect fill="#000000" filter="url(#f7ija2ov51se2)" height="6" rx="2.5" ry="2.5" style="stroke: #000000; stroke-width: 1.0;" width="472" x="38.5" y="439.5313"/><rect fill="#EEEEEE" filter="url(#f7ija2ov51se2)" height="47.9375" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="252" x="148.5" y="465.5313"/><line style="stroke: #A80036; stroke-width: 1.0; stroke-dasharray: 1.0,2.0;" x1="148.5" x2="158.5" y1="482.5156" y2="482.5156"/><text fill="#000000" font-family="sans-serif" font-size="12" font-style="italic" lengthAdjust="spacingAndGlyphs" textLength="232" x="158.5" y="486.1699">URT_CFG_PUBSUB_PROFILING == true</text><line style="stroke: #A80036; stroke-width: 1.0; stroke-dasharray: 1.0,2.0;" x1="390.5" x2="400.5" y1="482.5156" y2="482.5156"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="76" x="158.5" y="500.6387">unlock topic</text><path d="M10,523.4688 L10,594 A0,0 0 0 0 10,594 L197,594 A0,0 0 0 0 197,594 L197,562.7344 L217,558.7344 L197,554.7344 L197,533.4688 L187,523.4688 L10,523.4688 A0,0 0 0 0 10,523.4688 " fill="#FBFB77" filter="url(#f7ija2ov51se2)" style="stroke: #A80036; stroke-width: 1.0;"/><path d="M187,523.4688 L187,533.4688 L197,533.4688 L187,523.4688 " fill="#FBFB77" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.0;" x1="10" x2="32.5" y1="536.0352" y2="536.0352"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="134" x="36.5" y="540.0356">urt_basesubscriber_t</text><line style="stroke: #A80036; stroke-width: 1.0;" x1="174.5" x2="197" y1="536.0352" y2="536.0352"/><ellipse cx="21.5" cy="551.2344" fill="#000000" rx="2.5" ry="2.5" style="stroke: #000000; stroke-width: 0.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="37" x="27" y="555.6685">topic</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="11" x="68" y="555.6685">←</text><text fill="#000000" font-family="monospace" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="32" x="83" y="555.6685">NULL</text><ellipse cx="21.5" cy="566.3672" fill="#000000" rx="2.5" ry="2.5" style="stroke: #000000; stroke-width: 0.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="93" x="27" y="570.8013">lastMessage</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="11" x="124" y="570.8013">←</text><text fill="#000000" font-family="monospace" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="32" x="139" y="570.8013">NULL</text><ellipse cx="21.5" cy="581.5" fill="#000000" rx="2.5" ry="2.5" style="stroke: #000000; stroke-width: 0.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="128" x="27" y="585.9341">lastMessageTime</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="23" x="159" y="585.9341">← 0</text><rect fill="#FEFECE" filter="url(#f7ija2ov51se2)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="115" x="217" y="541.75"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="95" x="227" y="562.8887">reset members</text><path d="M61.5,612.4336 L61.5,637.5664 A0,0 0 0 0 61.5,637.5664 L243.5,637.5664 A0,0 0 0 0 243.5,637.5664 L243.5,630.4336 L263.5,625 L243.5,622.4336 L243.5,622.4336 L233.5,612.4336 L61.5,612.4336 A0,0 0 0 0 61.5,612.4336 " fill="#FBFB77" filter="url(#f7ija2ov51se2)" style="stroke: #A80036; stroke-width: 1.0;"/><path d="M233.5,612.4336 L233.5,622.4336 L243.5,622.4336 L233.5,612.4336 " fill="#FBFB77" style="stroke: #A80036; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="49" x="67.5" y="629.5005">Returns</text><text fill="#000000" font-family="monospace" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="104" x="120.5" y="629.5005">URT_STATUS_OK</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="4" x="224.5" y="629.5005">.</text><ellipse cx="274.5" cy="625" fill="#FFFFFF" filter="url(#f7ija2ov51se2)" rx="11" ry="11" style="stroke: #000000; stroke-width: 1.0;"/><ellipse cx="274.5" cy="625" fill="#000000" rx="6" ry="6" style="stroke: #7F7F7F; stroke-width: 1.0;"/><path d="M530.5,277.6563 L530.5,302.7891 A0,0 0 0 0 530.5,302.7891 L848.5,302.7891 A0,0 0 0 0 848.5,302.7891 L848.5,295.6563 L868.5,290.2227 L848.5,287.6563 L848.5,287.6563 L838.5,277.6563 L530.5,277.6563 A0,0 0 0 0 530.5,277.6563 " fill="#FBFB77" filter="url(#f7ija2ov51se2)" style="stroke: #A80036; stroke-width: 1.0;"/><path d="M838.5,277.6563 L838.5,287.6563 L848.5,287.6563 L838.5,277.6563 " fill="#FBFB77" style="stroke: #A80036; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="49" x="536.5" y="294.7231">Returns</text><text fill="#000000" font-family="monospace" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="240" x="589.5" y="294.7231">URT_STATUS_UNSUBSCRIBE_NOTOPIC</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="4" x="829.5" y="294.7231">.</text><ellipse cx="879.5" cy="290.2227" fill="#FFFFFF" filter="url(#f7ija2ov51se2)" rx="11" ry="11" style="stroke: #000000; stroke-width: 1.0;"/><ellipse cx="879.5" cy="290.2227" fill="#000000" rx="6" ry="6" style="stroke: #7F7F7F; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="577" x2="577" y1="183.6563" y2="203.6563"/><polygon fill="#A80036" points="573,193.6563,577,203.6563,581,193.6563,577,197.6563" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="114.5" x2="114.5" y1="351.5938" y2="378.5781"/><polygon fill="#A80036" points="110.5,368.5781,114.5,378.5781,118.5,368.5781,114.5,372.5781" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="350.5" x2="350.5" y1="351.5938" y2="371.5938"/><polygon fill="#A80036" points="346.5,361.5938,350.5,371.5938,354.5,361.5938,350.5,365.5938" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="114.5" x2="114.5" y1="412.5469" y2="439.5313"/><polygon fill="#A80036" points="110.5,429.5313,114.5,439.5313,118.5,429.5313,114.5,433.5313" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="350.5" x2="350.5" y1="419.5313" y2="439.5313"/><polygon fill="#A80036" points="346.5,429.5313,350.5,439.5313,354.5,429.5313,350.5,433.5313" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="274.5" x2="274.5" y1="325.5938" y2="345.5938"/><polygon fill="#A80036" points="270.5,335.5938,274.5,345.5938,278.5,335.5938,274.5,339.5938" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="274.5" x2="274.5" y1="445.5313" y2="465.5313"/><polygon fill="#A80036" points="270.5,455.5313,274.5,465.5313,278.5,455.5313,274.5,459.5313" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="274.5" x2="274.5" y1="513.4688" y2="541.75"/><polygon fill="#A80036" points="270.5,531.75,274.5,541.75,278.5,531.75,274.5,535.75" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="274.5" x2="274.5" y1="575.7188" y2="614"/><polygon fill="#A80036" points="270.5,604,274.5,614,278.5,604,274.5,608" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="502.5" x2="274.5" y1="255.6563" y2="255.6563"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="274.5" x2="274.5" y1="255.6563" y2="277.6563"/><polygon fill="#A80036" points="270.5,267.6563,274.5,277.6563,278.5,267.6563,274.5,271.6563" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="651.5" x2="879.5" y1="255.6563" y2="255.6563"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="879.5" x2="879.5" y1="255.6563" y2="279.2227"/><polygon fill="#A80036" points="875.5,269.2227,879.5,279.2227,883.5,269.2227,879.5,273.2227" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="577" x2="577" y1="223.6563" y2="243.6563"/><polygon fill="#A80036" points="573,233.6563,577,243.6563,581,233.6563,577,237.6563" style="stroke: #A80036; stroke-width: 1.0;"/><!--MD5=[0b035c8ace3b95ea145a5fe8f773d788]
2 dd31cb03 Thomas Schöpping
@startuml
3
4
title **µRtWare**\nurtSrtSubscriberUnsubscribe()\n
5
6
7
note
8
  - - **subscriber** : urt_srtsubscriber_t* - -
9
  The SRT subscriber to be unsubscribed.
10
  Must not be ""NULL"".
11
  ====
12
  - - **return** : urt_status_t - -
13
  Returns ""URT_STATUS_OK"" on sucess.
14
  Returns ""URT_STATUS_UNSUBSCRIBE_NOTOPIC"" if the subscriber is not associated to a topic.
15
endnote
16
17
18
start
19
if (Associated to a topic?) then (yes)
20
  #EEEEEE:..//URT_CFG_PUBSUB_PROFILING == true//..\nlock topic;
21
  fork
22
    :unregister event;
23
  fork again
24
    #EEEEEE:..//URT_CFG_PUBSUB_PROFILING == true//..\ndecrement counter of subscribers (@topic);
25
  endfork
26
  #EEEEEE:..//URT_CFG_PUBSUB_PROFILING == true//..\nunlock topic;
27
  :reset members;
28
  note
29
    - - urt_basesubscriber_t - -
30
    * **topic** ← ""NULL""
31
    * **lastMessage** ← ""NULL""
32
    * **lastMessageTime** ← 0
33
  endnote
34
  stop
35
  note
36
    Returns ""URT_STATUS_OK"".
37
  endnote
38
else (no)
39
  stop
40
  note
41
    Returns ""URT_STATUS_UNSUBSCRIBE_NOTOPIC"".
42
  endnote
43
endif
44
45
46
@enduml
47
48
PlantUML version 1.2020.00(Sat Jan 11 13:30:53 CET 2020)
49
(GPL source distribution)
50
Java Runtime: OpenJDK Runtime Environment
51
JVM: OpenJDK 64-Bit Server VM
52 2d315870 Thomas Schöpping
Java Version: 11.0.7+10-post-Ubuntu-2ubuntu218.04
53 dd31cb03 Thomas Schöpping
Operating System: Linux
54
Default Encoding: UTF-8
55
Language: en
56
Country: US
57
--></g></svg>