Statistics
| Branch: | Revision:

urtware / doc / activitydiagrams / subscriber / urtSubscriberCalculateUsefulness.svg @ c22d21ad

History | View | Annotate | Download (17.53 KB)

1 c22d21ad 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="420px" preserveAspectRatio="none" style="width:1061px;height:420px;" version="1.1" viewBox="0 0 1061 420" width="1061px" zoomAndPan="magnify"><defs><filter height="300%" id="fi54d3amdm4ll" 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="485" y="26.708">µRtWare</text><text fill="#000000" font-family="sans-serif" font-size="18" lengthAdjust="spacingAndGlyphs" textLength="307" x="376" y="47.6611">urtSubscriberCalculateUsefulness()</text><text fill="#000000" font-family="sans-serif" font-size="18" lengthAdjust="spacingAndGlyphs" textLength="0" x="532.5" y="68.6143"/><path d="M174,72.8594 L174,158.5234 A0,0 0 0 0 174,158.5234 L525,158.5234 A0,0 0 0 0 525,158.5234 L525,119.6914 L545,115.6914 L525,111.6914 L525,82.8594 L515,72.8594 L174,72.8594 A0,0 0 0 0 174,72.8594 " fill="#FBFB77" filter="url(#fi54d3amdm4ll)" style="stroke: #A80036; stroke-width: 1.0;"/><path d="M515,72.8594 L515,82.8594 L525,82.8594 L515,72.8594 " fill="#FBFB77" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.0;" x1="174" x2="225.5" y1="85.4258" y2="85.4258"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="0" x="229.5" y="89.4263"/><text fill="#000000" font-family="monospace" font-size="13" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="80" x="229.5" y="89.4263">subscriber</text><text fill="#000000" font-family="monospace" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="152" x="317.5" y="89.4263">: urt_subscriber_t*</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="0" x="473.5" y="89.4263"/><line style="stroke: #A80036; stroke-width: 1.0;" x1="473.5" x2="525" y1="85.4258" y2="85.4258"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="223" x="180" y="105.0591">The subscriber to be unsubscribed.</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="76" x="180" y="120.1919">Must not be</text><text fill="#000000" font-family="monospace" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="32" x="260" y="120.1919">NULL</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="4" x="292" y="120.1919">.</text><line style="stroke: #A80036; stroke-width: 1.0;" x1="174" x2="261.5" y1="130.8242" y2="130.8242"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="0" x="265.5" y="134.8247"/><text fill="#000000" font-family="monospace" font-size="13" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="56" x="265.5" y="134.8247">latency</text><text fill="#000000" font-family="monospace" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="104" x="329.5" y="134.8247">: urt_delay_t</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="0" x="437.5" y="134.8247"/><line style="stroke: #A80036; stroke-width: 1.0;" x1="437.5" x2="525" y1="130.8242" y2="130.8242"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="330" x="180" y="150.4575">Delay (of a mesage) to calculate the usefulness for.</text><ellipse cx="555" cy="115.6914" fill="#000000" filter="url(#fi54d3amdm4ll)" rx="10" ry="10" style="stroke: none; stroke-width: 1.0;"/><polygon fill="#FEFECE" filter="url(#fi54d3amdm4ll)" points="375,178.5234,423,178.5234,435,190.5234,423,202.5234,375,202.5234,363,190.5234,375,178.5234" style="stroke: #A80036; stroke-width: 1.5;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="22" x="403" y="212.7339">HRT</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="48" x="375" y="194.3315">RT class</text><path d="M10,238.6519 L10,263.7847 A0,0 0 0 0 10,263.7847 L344,263.7847 A0,0 0 0 0 344,263.7847 L344,256.6519 L364,251.2183 L344,248.6519 L344,248.6519 L334,238.6519 L10,238.6519 A0,0 0 0 0 10,238.6519 " fill="#FBFB77" filter="url(#fi54d3amdm4ll)" style="stroke: #A80036; stroke-width: 1.0;"/><path d="M334,238.6519 L334,248.6519 L344,248.6519 L334,238.6519 " fill="#FBFB77" style="stroke: #A80036; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="313" x="16" y="255.7188">Otherwise some QoS timer would have triggered.</text><rect fill="#FEFECE" filter="url(#fi54d3amdm4ll)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="70" x="364" y="234.2339"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="39" x="374" y="255.3726">return</text><text fill="#000000" font-family="monospace" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="7" x="417" y="255.3726">1</text><polygon fill="#FEFECE" filter="url(#fi54d3amdm4ll)" points="716.5,178.5234,764.5,178.5234,776.5,190.5234,764.5,202.5234,716.5,202.5234,704.5,190.5234,716.5,178.5234" style="stroke: #A80036; stroke-width: 1.5;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="20" x="744.5" y="212.7339">FRT</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="48" x="716.5" y="194.3315">RT class</text><path d="M455,270.6519 L455,295.7847 L636,295.7847 L636,280.6519 L626,270.6519 L455,270.6519 " fill="#FBFB77" filter="url(#fi54d3amdm4ll)" style="stroke: #A80036; stroke-width: 1.0;"/><path d="M626,270.6519 L626,280.6519 L636,280.6519 L626,270.6519 " fill="#FBFB77" style="stroke: #A80036; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="160" x="461" y="287.7188">ToDo: When is timing ok?</text><polygon fill="#FEFECE" filter="url(#fi54d3amdm4ll)" points="710,234.2339,771,234.2339,783,246.2339,771,258.2339,710,258.2339,698,246.2339,710,234.2339" style="stroke: #A80036; stroke-width: 1.5;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="61" x="710" y="250.042">Timing ok?</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="20" x="678" y="243.6396">yes</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="14" x="783" y="243.6396">no</text><rect fill="#FEFECE" filter="url(#fi54d3amdm4ll)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="84" x="646" y="268.2339"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="39" x="656" y="289.3726">return</text><text fill="#000000" font-family="monospace" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="21" x="699" y="289.3726">1.0</text><rect fill="#FEFECE" filter="url(#fi54d3amdm4ll)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="84" x="751" y="268.2339"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="39" x="761" y="289.3726">return</text><text fill="#000000" font-family="monospace" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="21" x="804" y="289.3726">0.0</text><polygon fill="#FEFECE" filter="url(#fi54d3amdm4ll)" points="740.5,308.2026,752.5,320.2026,740.5,332.2026,728.5,320.2026,740.5,308.2026" style="stroke: #A80036; stroke-width: 1.5;"/><polygon fill="#FEFECE" filter="url(#fi54d3amdm4ll)" points="883.5,178.5234,931.5,178.5234,943.5,190.5234,931.5,202.5234,883.5,202.5234,871.5,190.5234,883.5,178.5234" style="stroke: #A80036; stroke-width: 1.5;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="22" x="911.5" y="212.7339">SRT</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="48" x="883.5" y="194.3315">RT class</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="22" x="943.5" y="187.9292">NRT</text><rect fill="#FEFECE" filter="url(#fi54d3amdm4ll)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="125" x="845" y="234.2339"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="105" x="855" y="255.3726">execute callback</text><rect fill="#FEFECE" filter="url(#fi54d3amdm4ll)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="99" x="858" y="303.2026"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="79" x="868" y="324.3413">return result</text><rect fill="#FEFECE" filter="url(#fi54d3amdm4ll)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="70" x="980" y="265.3159"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="39" x="990" y="286.4546">return</text><text fill="#000000" font-family="monospace" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="7" x="1033" y="286.4546">1</text><path d="M200,368.0386 L200,408.3042 A0,0 0 0 0 200,408.3042 L524,408.3042 A0,0 0 0 0 524,408.3042 L524,392.1714 L544,388.1714 L524,384.1714 L524,378.0386 L514,368.0386 L200,368.0386 A0,0 0 0 0 200,368.0386 " fill="#FBFB77" filter="url(#fi54d3amdm4ll)" style="stroke: #A80036; stroke-width: 1.0;"/><path d="M514,368.0386 L514,378.0386 L524,378.0386 L514,368.0386 " fill="#FBFB77" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.0;" x1="200" x2="313.5" y1="380.605" y2="380.605"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="0" x="317.5" y="384.6055"/><text fill="#000000" font-family="sans-serif" font-size="13" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="45" x="317.5" y="384.6055">return</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="0" x="366.5" y="384.6055"/><text fill="#000000" font-family="monospace" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="40" x="366.5" y="384.6055">float</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="0" x="410.5" y="384.6055"/><line style="stroke: #A80036; stroke-width: 1.0;" x1="410.5" x2="524" y1="380.605" y2="380.605"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="255" x="206" y="400.2383">Returns the usefulness as a value within</text><text fill="#000000" font-family="monospace" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="40" x="465" y="400.2383">[0,1]</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="4" x="505" y="400.2383">.</text><ellipse cx="555" cy="388.1714" fill="#FFFFFF" filter="url(#fi54d3amdm4ll)" rx="11" ry="11" style="stroke: #000000; stroke-width: 1.0;"/><ellipse cx="555" cy="388.1714" fill="#000000" rx="6" ry="6" style="stroke: #7F7F7F; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="698" x2="688" y1="246.2339" y2="246.2339"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="688" x2="688" y1="246.2339" y2="268.2339"/><polygon fill="#A80036" points="684,258.2339,688,268.2339,692,258.2339,688,262.2339" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="783" x2="793" y1="246.2339" y2="246.2339"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="793" x2="793" y1="246.2339" y2="268.2339"/><polygon fill="#A80036" points="789,258.2339,793,268.2339,797,258.2339,793,262.2339" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="688" x2="688" y1="302.2026" y2="320.2026"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="688" x2="728.5" y1="320.2026" y2="320.2026"/><polygon fill="#A80036" points="718.5,316.2026,728.5,320.2026,718.5,324.2026,722.5,320.2026" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="793" x2="793" y1="302.2026" y2="320.2026"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="793" x2="752.5" y1="320.2026" y2="320.2026"/><polygon fill="#A80036" points="762.5,316.2026,752.5,320.2026,762.5,324.2026,758.5,320.2026" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="907.5" x2="907.5" y1="268.2026" y2="303.2026"/><polygon fill="#A80036" points="903.5,293.2026,907.5,303.2026,911.5,293.2026,907.5,297.2026" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="399" x2="399" y1="202.5234" y2="234.2339"/><polygon fill="#A80036" points="395,224.2339,399,234.2339,403,224.2339,399,228.2339" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="399" x2="399" y1="268.2026" y2="357.1714"/><polygon fill="#A80036" points="395,347.1714,399,357.1714,403,347.1714,399,351.1714" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="740.5" x2="740.5" y1="202.5234" y2="234.2339"/><polygon fill="#A80036" points="736.5,224.2339,740.5,234.2339,744.5,224.2339,740.5,228.2339" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="740.5" x2="740.5" y1="332.2026" y2="357.1714"/><polygon fill="#A80036" points="736.5,347.1714,740.5,357.1714,744.5,347.1714,740.5,351.1714" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="907.5" x2="907.5" y1="202.5234" y2="234.2339"/><polygon fill="#A80036" points="903.5,224.2339,907.5,234.2339,911.5,224.2339,907.5,228.2339" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="907.5" x2="907.5" y1="337.1714" y2="357.1714"/><polygon fill="#A80036" points="903.5,347.1714,907.5,357.1714,911.5,347.1714,907.5,351.1714" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="435" x2="704.5" y1="190.5234" y2="190.5234"/><polygon fill="#A80036" points="694.5,186.5234,704.5,190.5234,694.5,194.5234,698.5,190.5234" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="776.5" x2="871.5" y1="190.5234" y2="190.5234"/><polygon fill="#A80036" points="861.5,186.5234,871.5,190.5234,861.5,194.5234,865.5,190.5234" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="555" x2="555" y1="125.6914" y2="163.5234"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="555" x2="399" y1="163.5234" y2="163.5234"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="399" x2="399" y1="163.5234" y2="178.5234"/><polygon fill="#A80036" points="395,168.5234,399,178.5234,403,168.5234,399,172.5234" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="943.5" x2="1015" y1="190.5234" y2="190.5234"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="1015" x2="1015" y1="190.5234" y2="265.3159"/><polygon fill="#A80036" points="1011,255.3159,1015,265.3159,1019,255.3159,1015,259.3159" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="1015" x2="1015" y1="299.2847" y2="357.1714"/><polygon fill="#A80036" points="1011,347.1714,1015,357.1714,1019,347.1714,1015,351.1714" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="399" x2="1015" y1="357.1714" y2="357.1714"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="555" x2="555" y1="357.1714" y2="377.1714"/><polygon fill="#A80036" points="551,367.1714,555,377.1714,559,367.1714,555,371.1714" style="stroke: #A80036; stroke-width: 1.0;"/><!--MD5=[f084c67ec7a24c3b56fd38c273a593b9]
2 7491c395 Thomas Schöpping
@startuml
3
4
title **µRtWare**\nurtSubscriberCalculateUsefulness()\n
5
6
7
8
9
10
11
12
13
14
15
16
17
start
18
note
19
  - - ""**subscriber** : urt_subscriber_t*"" - -
20
  The subscriber to be unsubscribed.
21
  Must not be ""NULL"".
22
  - - ""**latency** : urt_delay_t"" - -
23
  Delay (of a mesage) to calculate the usefulness for.
24
end note
25
26
27
if (RT class) then (HRT)
28
  :return ""1"";
29
  note: Otherwise some QoS timer would have triggered.
30
elseif (RT class) then (FRT)
31
  if (Timing ok?) then (yes)
32 c22d21ad Thomas Schöpping
  note: ToDo: When is timing ok?
33 7491c395 Thomas Schöpping
    :return ""1.0"";
34
  else (no)
35
    :return ""0.0"";
36
  endif
37
elseif (RT class) then (SRT)
38
  :execute callback;
39
  :return result;
40
else (NRT)
41
  :return ""1"";
42
endif
43
44
45
stop
46
note
47
  - - **return** ""float"" - -
48
  Returns the usefulness as a value within ""[0,1]"".
49
end note
50
51
52
@enduml
53
54
PlantUML version 1.2020.00(Sat Jan 11 13:30:53 CET 2020)
55
(GPL source distribution)
56
Java Runtime: OpenJDK Runtime Environment
57
JVM: OpenJDK 64-Bit Server VM
58
Java Version: 11.0.6+10-post-Ubuntu-1ubuntu118.04.1
59
Operating System: Linux
60
Default Encoding: UTF-8
61
Language: en
62
Country: US
63
--></g></svg>