Statistics
| Branch: | Revision:

urtware / doc / activitydiagrams / subscriber / urtSubscriberCalculateUsefulness.svg @ 7491c395

History | View | Annotate | Download (17.097 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="420px" preserveAspectRatio="none" style="width:880px;height:420px;" version="1.1" viewBox="0 0 880 420" width="880px" zoomAndPan="magnify"><defs><filter height="300%" id="f1bh34zu0bgazr" 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="394.5" y="26.708">µRtWare</text><text fill="#000000" font-family="sans-serif" font-size="18" lengthAdjust="spacingAndGlyphs" textLength="307" x="285.5" y="47.6611">urtSubscriberCalculateUsefulness()</text><text fill="#000000" font-family="sans-serif" font-size="18" lengthAdjust="spacingAndGlyphs" textLength="0" x="442" y="68.6143"/><path d="M73.5,72.8594 L73.5,158.5234 A0,0 0 0 0 73.5,158.5234 L424.5,158.5234 A0,0 0 0 0 424.5,158.5234 L424.5,119.6914 L444.5,115.6914 L424.5,111.6914 L424.5,82.8594 L414.5,72.8594 L73.5,72.8594 A0,0 0 0 0 73.5,72.8594 " fill="#FBFB77" filter="url(#f1bh34zu0bgazr)" style="stroke: #A80036; stroke-width: 1.0;"/><path d="M414.5,72.8594 L414.5,82.8594 L424.5,82.8594 L414.5,72.8594 " fill="#FBFB77" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.0;" x1="73.5" x2="125" y1="85.4258" y2="85.4258"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="0" x="129" y="89.4263"/><text fill="#000000" font-family="monospace" font-size="13" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="80" x="129" y="89.4263">subscriber</text><text fill="#000000" font-family="monospace" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="152" x="217" y="89.4263">: urt_subscriber_t*</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="0" x="373" y="89.4263"/><line style="stroke: #A80036; stroke-width: 1.0;" x1="373" x2="424.5" y1="85.4258" y2="85.4258"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="223" x="79.5" y="105.0591">The subscriber to be unsubscribed.</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="76" x="79.5" y="120.1919">Must not be</text><text fill="#000000" font-family="monospace" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="32" x="159.5" y="120.1919">NULL</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="4" x="191.5" y="120.1919">.</text><line style="stroke: #A80036; stroke-width: 1.0;" x1="73.5" x2="161" y1="130.8242" y2="130.8242"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="0" x="165" y="134.8247"/><text fill="#000000" font-family="monospace" font-size="13" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="56" x="165" y="134.8247">latency</text><text fill="#000000" font-family="monospace" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="104" x="229" y="134.8247">: urt_delay_t</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="0" x="337" y="134.8247"/><line style="stroke: #A80036; stroke-width: 1.0;" x1="337" x2="424.5" y1="130.8242" y2="130.8242"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="330" x="79.5" y="150.4575">Delay (of a mesage) to calculate the usefulness for.</text><ellipse cx="454.5" cy="115.6914" fill="#000000" filter="url(#f1bh34zu0bgazr)" rx="10" ry="10" style="stroke: none; stroke-width: 1.0;"/><polygon fill="#FEFECE" filter="url(#f1bh34zu0bgazr)" 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(#f1bh34zu0bgazr)" 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(#f1bh34zu0bgazr)" 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(#f1bh34zu0bgazr)" points="535.5,178.5234,583.5,178.5234,595.5,190.5234,583.5,202.5234,535.5,202.5234,523.5,190.5234,535.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="563.5" y="212.7339">FRT</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="48" x="535.5" y="194.3315">RT class</text><polygon fill="#FEFECE" filter="url(#f1bh34zu0bgazr)" points="529,234.2339,590,234.2339,602,246.2339,590,258.2339,529,258.2339,517,246.2339,529,234.2339" style="stroke: #A80036; stroke-width: 1.5;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="61" x="529" y="250.042">Timing ok?</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="20" x="497" y="243.6396">yes</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="14" x="602" y="243.6396">no</text><rect fill="#FEFECE" filter="url(#f1bh34zu0bgazr)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="84" x="465" y="268.2339"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="39" x="475" y="289.3726">return</text><text fill="#000000" font-family="monospace" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="21" x="518" y="289.3726">1.0</text><rect fill="#FEFECE" filter="url(#f1bh34zu0bgazr)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="84" x="570" y="268.2339"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="39" x="580" y="289.3726">return</text><text fill="#000000" font-family="monospace" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="21" x="623" y="289.3726">0.0</text><polygon fill="#FEFECE" filter="url(#f1bh34zu0bgazr)" points="559.5,308.2026,571.5,320.2026,559.5,332.2026,547.5,320.2026,559.5,308.2026" style="stroke: #A80036; stroke-width: 1.5;"/><polygon fill="#FEFECE" filter="url(#f1bh34zu0bgazr)" points="702.5,178.5234,750.5,178.5234,762.5,190.5234,750.5,202.5234,702.5,202.5234,690.5,190.5234,702.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="730.5" y="212.7339">SRT</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="48" x="702.5" y="194.3315">RT class</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="22" x="762.5" y="187.9292">NRT</text><rect fill="#FEFECE" filter="url(#f1bh34zu0bgazr)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="125" x="664" y="234.2339"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="105" x="674" y="255.3726">execute callback</text><rect fill="#FEFECE" filter="url(#f1bh34zu0bgazr)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="99" x="677" y="303.2026"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="79" x="687" y="324.3413">return result</text><rect fill="#FEFECE" filter="url(#f1bh34zu0bgazr)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="70" x="799" y="265.3159"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="39" x="809" y="286.4546">return</text><text fill="#000000" font-family="monospace" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="7" x="852" y="286.4546">1</text><path d="M99.5,368.0386 L99.5,408.3042 A0,0 0 0 0 99.5,408.3042 L423.5,408.3042 A0,0 0 0 0 423.5,408.3042 L423.5,392.1714 L443.5,388.1714 L423.5,384.1714 L423.5,378.0386 L413.5,368.0386 L99.5,368.0386 A0,0 0 0 0 99.5,368.0386 " fill="#FBFB77" filter="url(#f1bh34zu0bgazr)" style="stroke: #A80036; stroke-width: 1.0;"/><path d="M413.5,368.0386 L413.5,378.0386 L423.5,378.0386 L413.5,368.0386 " fill="#FBFB77" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.0;" x1="99.5" x2="213" y1="380.605" y2="380.605"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="0" x="217" y="384.6055"/><text fill="#000000" font-family="sans-serif" font-size="13" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="45" x="217" y="384.6055">return</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="0" x="266" y="384.6055"/><text fill="#000000" font-family="monospace" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="40" x="266" y="384.6055">float</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="0" x="310" y="384.6055"/><line style="stroke: #A80036; stroke-width: 1.0;" x1="310" x2="423.5" y1="380.605" y2="380.605"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="255" x="105.5" 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="364.5" y="400.2383">[0,1]</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="4" x="404.5" y="400.2383">.</text><ellipse cx="454.5" cy="388.1714" fill="#FFFFFF" filter="url(#f1bh34zu0bgazr)" rx="11" ry="11" style="stroke: #000000; stroke-width: 1.0;"/><ellipse cx="454.5" 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="517" x2="507" y1="246.2339" y2="246.2339"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="507" x2="507" y1="246.2339" y2="268.2339"/><polygon fill="#A80036" points="503,258.2339,507,268.2339,511,258.2339,507,262.2339" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="602" x2="612" y1="246.2339" y2="246.2339"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="612" x2="612" y1="246.2339" y2="268.2339"/><polygon fill="#A80036" points="608,258.2339,612,268.2339,616,258.2339,612,262.2339" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="507" x2="507" y1="302.2026" y2="320.2026"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="507" x2="547.5" y1="320.2026" y2="320.2026"/><polygon fill="#A80036" points="537.5,316.2026,547.5,320.2026,537.5,324.2026,541.5,320.2026" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="612" x2="612" y1="302.2026" y2="320.2026"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="612" x2="571.5" y1="320.2026" y2="320.2026"/><polygon fill="#A80036" points="581.5,316.2026,571.5,320.2026,581.5,324.2026,577.5,320.2026" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="726.5" x2="726.5" y1="268.2026" y2="303.2026"/><polygon fill="#A80036" points="722.5,293.2026,726.5,303.2026,730.5,293.2026,726.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="559.5" x2="559.5" y1="202.5234" y2="234.2339"/><polygon fill="#A80036" points="555.5,224.2339,559.5,234.2339,563.5,224.2339,559.5,228.2339" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="559.5" x2="559.5" y1="332.2026" y2="357.1714"/><polygon fill="#A80036" points="555.5,347.1714,559.5,357.1714,563.5,347.1714,559.5,351.1714" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="726.5" x2="726.5" y1="202.5234" y2="234.2339"/><polygon fill="#A80036" points="722.5,224.2339,726.5,234.2339,730.5,224.2339,726.5,228.2339" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="726.5" x2="726.5" y1="337.1714" y2="357.1714"/><polygon fill="#A80036" points="722.5,347.1714,726.5,357.1714,730.5,347.1714,726.5,351.1714" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="435" x2="523.5" y1="190.5234" y2="190.5234"/><polygon fill="#A80036" points="513.5,186.5234,523.5,190.5234,513.5,194.5234,517.5,190.5234" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="595.5" x2="690.5" y1="190.5234" y2="190.5234"/><polygon fill="#A80036" points="680.5,186.5234,690.5,190.5234,680.5,194.5234,684.5,190.5234" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="454.5" x2="454.5" y1="125.6914" y2="163.5234"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="454.5" 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="762.5" x2="834" y1="190.5234" y2="190.5234"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="834" x2="834" y1="190.5234" y2="265.3159"/><polygon fill="#A80036" points="830,255.3159,834,265.3159,838,255.3159,834,259.3159" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="834" x2="834" y1="299.2847" y2="357.1714"/><polygon fill="#A80036" points="830,347.1714,834,357.1714,838,347.1714,834,351.1714" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="399" x2="834" y1="357.1714" y2="357.1714"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="454.5" x2="454.5" y1="357.1714" y2="377.1714"/><polygon fill="#A80036" points="450.5,367.1714,454.5,377.1714,458.5,367.1714,454.5,371.1714" style="stroke: #A80036; stroke-width: 1.0;"/><!--MD5=[bd3c76ff93e408c92db722d426e937fe]
2
@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
    :return ""1.0"";
33
  else (no)
34
    :return ""0.0"";
35
  endif
36
elseif (RT class) then (SRT)
37
  :execute callback;
38
  :return result;
39
else (NRT)
40
  :return ""1"";
41
endif
42

    
43

    
44
stop
45
note
46
  - - **return** ""float"" - -
47
  Returns the usefulness as a value within ""[0,1]"".
48
end note
49

    
50

    
51
@enduml
52

    
53
PlantUML version 1.2020.00(Sat Jan 11 13:30:53 CET 2020)
54
(GPL source distribution)
55
Java Runtime: OpenJDK Runtime Environment
56
JVM: OpenJDK 64-Bit Server VM
57
Java Version: 11.0.6+10-post-Ubuntu-1ubuntu118.04.1
58
Operating System: Linux
59
Default Encoding: UTF-8
60
Language: en
61
Country: US
62
--></g></svg>