Statistics
| Branch: | Revision:

urtware / doc / statediagrams / general / deinitialization.svg @ 6ebd2388

History | View | Annotate | Download (10.686 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="528px" preserveAspectRatio="none" style="width:574px;height:528px;" version="1.1" viewBox="0 0 574 528" width="574px" zoomAndPan="magnify"><defs><filter height="300%" id="fxpz2tqgpdftz" 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="241.5" y="26.708">µRtWare</text><text fill="#000000" font-family="sans-serif" font-size="18" lengthAdjust="spacingAndGlyphs" textLength="131" x="220.5" y="47.6611">Deinitialization</text><text fill="#000000" font-family="sans-serif" font-size="18" lengthAdjust="spacingAndGlyphs" textLength="0" x="289" y="68.6143"/><ellipse cx="339.5" cy="82.8594" fill="#000000" filter="url(#fxpz2tqgpdftz)" rx="10" ry="10" style="stroke: none; stroke-width: 1.0;"/><path d="M38,172.9878 L38,198.1206 A0,0 0 0 0 38,198.1206 L127,198.1206 A0,0 0 0 0 127,198.1206 L127,190.9878 L147,185.5542 L127,182.9878 L127,182.9878 L117,172.9878 L38,172.9878 A0,0 0 0 0 38,172.9878 " fill="#FBFB77" filter="url(#fxpz2tqgpdftz)" style="stroke: #A80036; stroke-width: 1.0;"/><path d="M117,172.9878 L117,182.9878 L127,182.9878 L117,172.9878 " fill="#FBFB77" style="stroke: #A80036; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="68" x="44" y="190.0547">recursively</text><rect fill="#FEFECE" filter="url(#fxpz2tqgpdftz)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="385" x="147" y="168.5698"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="365" x="157" y="189.7085">request current node and al its child threads to terminate</text><rect fill="#FEFECE" filter="url(#fxpz2tqgpdftz)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="146" x="266.5" y="231.6362"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="126" x="276.5" y="252.7749">iterate to next node</text><polygon fill="#FEFECE" filter="url(#fxpz2tqgpdftz)" points="266,112.8594,413,112.8594,425,124.8594,413,136.8594,266,136.8594,254,124.8594,266,112.8594" style="stroke: #A80036; stroke-width: 1.5;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="20" x="343.5" y="147.0698">yes</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="147" x="266" y="128.6675">Nodes left to be stopped?</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="14" x="240" y="122.2651">no</text><path d="M56,421.23 L56,446.3628 A0,0 0 0 0 56,446.3628 L145,446.3628 A0,0 0 0 0 145,446.3628 L145,439.23 L165,433.7964 L145,431.23 L145,431.23 L135,421.23 L56,421.23 A0,0 0 0 0 56,421.23 " fill="#FBFB77" filter="url(#fxpz2tqgpdftz)" style="stroke: #A80036; stroke-width: 1.0;"/><path d="M135,421.23 L135,431.23 L145,431.23 L135,421.23 " fill="#FBFB77" style="stroke: #A80036; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="68" x="62" y="438.2969">recursively</text><rect fill="#FEFECE" filter="url(#fxpz2tqgpdftz)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="349" x="165" y="416.812"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="329" x="175" y="437.9507">wait for current node and al its child threads to stop</text><polygon fill="#FEFECE" filter="url(#fxpz2tqgpdftz)" points="263.5,368.4097,415.5,368.4097,427.5,380.4097,415.5,392.4097,263.5,392.4097,251.5,380.4097,263.5,368.4097" style="stroke: #A80036; stroke-width: 1.5;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="20" x="343.5" y="402.6201">yes</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="152" x="263.5" y="384.2178">Current node still running?</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="14" x="427.5" y="377.8154">no</text><polygon fill="#FEFECE" filter="url(#fxpz2tqgpdftz)" points="339.5,470.7808,351.5,482.7808,339.5,494.7808,327.5,482.7808,339.5,470.7808" style="stroke: #A80036; stroke-width: 1.5;"/><polygon fill="#FEFECE" filter="url(#fxpz2tqgpdftz)" points="285.5,307.605,393.5,307.605,405.5,319.605,393.5,331.605,285.5,331.605,273.5,319.605,285.5,307.605" style="stroke: #A80036; stroke-width: 1.5;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="20" x="343.5" y="341.8154">yes</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="108" x="285.5" y="323.4131">Nodes left to stop?</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="14" x="259.5" y="317.0107">no</text><ellipse cx="24" cy="365.605" fill="none" filter="url(#fxpz2tqgpdftz)" rx="10" ry="10" style="stroke: #000000; stroke-width: 1.0;"/><ellipse cx="24.5" cy="366.105" fill="#000000" filter="url(#fxpz2tqgpdftz)" rx="6" ry="6" style="stroke: none; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="339.5" x2="339.5" y1="202.5386" y2="231.6362"/><polygon fill="#A80036" points="335.5,221.6362,339.5,231.6362,343.5,221.6362,339.5,225.6362" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="339.5" x2="339.5" y1="136.8594" y2="168.5698"/><polygon fill="#A80036" points="335.5,158.5698,339.5,168.5698,343.5,158.5698,339.5,162.5698" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="339.5" x2="339.5" y1="265.605" y2="275.605"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="339.5" x2="544" y1="275.605" y2="275.605"/><polygon fill="#A80036" points="540,211.6362,544,201.6362,548,211.6362,544,207.6362" style="stroke: #A80036; stroke-width: 1.5;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="544" x2="544" y1="124.8594" y2="275.605"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="544" x2="425" y1="124.8594" y2="124.8594"/><polygon fill="#A80036" points="435,120.8594,425,124.8594,435,128.8594,431,124.8594" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="254" x2="26" y1="124.8594" y2="124.8594"/><polygon fill="#A80036" points="22,197.6362,26,207.6362,30,197.6362,26,201.6362" style="stroke: #A80036; stroke-width: 1.5;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="26" x2="26" y1="124.8594" y2="287.605"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="26" x2="339.5" y1="287.605" y2="287.605"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="339.5" x2="339.5" y1="287.605" y2="307.605"/><polygon fill="#A80036" points="335.5,297.605,339.5,307.605,343.5,297.605,339.5,301.605" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="339.5" x2="339.5" y1="92.8594" y2="112.8594"/><polygon fill="#A80036" points="335.5,102.8594,339.5,112.8594,343.5,102.8594,339.5,106.8594" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="339.5" x2="339.5" y1="392.4097" y2="416.812"/><polygon fill="#A80036" points="335.5,406.812,339.5,416.812,343.5,406.812,339.5,410.812" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="427.5" x2="524" y1="380.4097" y2="380.4097"/><polygon fill="#A80036" points="520,423.7964,524,433.7964,528,423.7964,524,427.7964" style="stroke: #A80036; stroke-width: 1.5;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="524" x2="524" y1="380.4097" y2="482.7808"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="524" x2="351.5" y1="482.7808" y2="482.7808"/><polygon fill="#A80036" points="361.5,478.7808,351.5,482.7808,361.5,486.7808,357.5,482.7808" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="339.5" x2="339.5" y1="450.7808" y2="470.7808"/><polygon fill="#A80036" points="335.5,460.7808,339.5,470.7808,343.5,460.7808,339.5,464.7808" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="339.5" x2="339.5" y1="331.605" y2="368.4097"/><polygon fill="#A80036" points="335.5,358.4097,339.5,368.4097,343.5,358.4097,339.5,362.4097" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="339.5" x2="339.5" y1="494.7808" y2="504.7808"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="339.5" x2="548" y1="504.7808" y2="504.7808"/><polygon fill="#A80036" points="544,425.394,548,415.394,552,425.394,548,421.394" style="stroke: #A80036; stroke-width: 1.5;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="548" x2="548" y1="319.605" y2="504.7808"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="548" x2="405.5" y1="319.605" y2="319.605"/><polygon fill="#A80036" points="415.5,315.605,405.5,319.605,415.5,323.605,411.5,319.605" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="273.5" x2="24" y1="319.605" y2="319.605"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="24" x2="24" y1="319.605" y2="355.605"/><polygon fill="#A80036" points="20,345.605,24,355.605,28,345.605,24,349.605" style="stroke: #A80036; stroke-width: 1.0;"/><!--
2
@startuml
3

    
4
title **µRtWare**\nDeinitialization\n
5

    
6

    
7

    
8
start
9
while (Nodes left to be stopped?) is (yes)
10
  :request current node and al its child threads to terminate;
11
  note
12
    recursively
13
  endnote
14
  :iterate to next node;
15
endwhile (no)
16
while (Nodes left to stop?) is (yes)
17
  if (Current node still running?) then (yes)
18
    :wait for current node and al its child threads to stop;
19
    note
20
      recursively
21
    endnote
22
  else (no)
23
  endif
24
endwhile (no)
25
stop
26

    
27
@enduml
28

    
29
PlantUML version 1.2018.11(Sat Sep 22 18:43:53 CEST 2018)
30
(GPL source distribution)
31
Java Runtime: OpenJDK Runtime Environment
32
JVM: OpenJDK 64-Bit Server VM
33
Java Version: 1.8.0_181-8u181-b13-0ubuntu0.16.04.1-b13
34
Operating System: Linux
35
OS Version: 4.15.0-36-generic
36
Default Encoding: UTF-8
37
Language: en
38
Country: US
39
--></g></svg>