Skip to content

Commit 1144800

Browse files
committed
docs(draw.io): update model structure diagram, adding MonitoredResource
1 parent 029b05b commit 1144800

File tree

2 files changed

+48
-33
lines changed

2 files changed

+48
-33
lines changed

images/model_structure.drawio

Lines changed: 48 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
<mxCell id="0" />
66
<mxCell id="1" parent="0" />
77
<mxCell id="ltitkqDnKHNBnyyiyaz9-99" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#EEEEEE;strokeColor=none;opacity=50;" parent="1" vertex="1">
8-
<mxGeometry x="550" width="344" height="380" as="geometry" />
8+
<mxGeometry x="670" y="225.5" width="344" height="380" as="geometry" />
99
</mxCell>
1010
<mxCell id="ltitkqDnKHNBnyyiyaz9-87" value="" style="rounded=1;whiteSpace=wrap;html=1;strokeColor=none;fillColor=#EEEEEE;fontStyle=1;opacity=50;" parent="1" vertex="1">
11-
<mxGeometry x="-215" y="400" width="815" height="376" as="geometry" />
11+
<mxGeometry x="-215" y="400" width="865" height="490" as="geometry" />
1212
</mxCell>
1313
<mxCell id="ltitkqDnKHNBnyyiyaz9-67" value="" style="rounded=1;whiteSpace=wrap;html=1;strokeColor=none;fillColor=#EEEEEE;fontStyle=1;opacity=50;" parent="1" vertex="1">
14-
<mxGeometry x="-30" y="9.5" width="550" height="321" as="geometry" />
14+
<mxGeometry x="-30" y="9.5" width="680" height="321" as="geometry" />
1515
</mxCell>
1616
<mxCell id="ltitkqDnKHNBnyyiyaz9-64" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="ltitkqDnKHNBnyyiyaz9-3" target="ltitkqDnKHNBnyyiyaz9-30" edge="1">
1717
<mxGeometry relative="1" as="geometry" />
@@ -38,7 +38,7 @@
3838
<mxGeometry relative="1" as="geometry" />
3939
</mxCell>
4040
<mxCell id="ltitkqDnKHNBnyyiyaz9-6" value="&lt;font style=&quot;font-size: 18px;&quot;&gt;Runner&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#68A9D4;" parent="1" vertex="1">
41-
<mxGeometry x="675.25" y="80" width="98.5" height="40" as="geometry" />
41+
<mxGeometry x="795.25" y="305.5" width="98.5" height="40" as="geometry" />
4242
</mxCell>
4343
<mxCell id="ltitkqDnKHNBnyyiyaz9-61" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="ltitkqDnKHNBnyyiyaz9-7" target="ltitkqDnKHNBnyyiyaz9-5" edge="1">
4444
<mxGeometry relative="1" as="geometry" />
@@ -127,7 +127,7 @@
127127
<mxGeometry relative="1" as="geometry" />
128128
</mxCell>
129129
<mxCell id="ltitkqDnKHNBnyyiyaz9-28" value="&lt;font style=&quot;font-size: 14px;&quot;&gt;experiment&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#A9E4F5;" parent="1" vertex="1">
130-
<mxGeometry x="682.5" y="155" width="78.5" height="30" as="geometry" />
130+
<mxGeometry x="802.5" y="380.5" width="78.5" height="30" as="geometry" />
131131
</mxCell>
132132
<mxCell id="ltitkqDnKHNBnyyiyaz9-29" value="&lt;font style=&quot;font-size: 14px;&quot;&gt;patient&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#A9E4F5;" parent="1" vertex="1">
133133
<mxGeometry x="-193" y="525" width="66" height="30" as="geometry" />
@@ -139,13 +139,13 @@
139139
<mxGeometry x="-20" y="270" width="172" height="30" as="geometry" />
140140
</mxCell>
141141
<mxCell id="ltitkqDnKHNBnyyiyaz9-32" value="&lt;font style=&quot;font-size: 14px;&quot;&gt;run_single()&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F2A25C;" parent="1" vertex="1">
142-
<mxGeometry x="592.5" y="238" width="90" height="30" as="geometry" />
142+
<mxGeometry x="712.5" y="463.5" width="90" height="30" as="geometry" />
143143
</mxCell>
144144
<mxCell id="ltitkqDnKHNBnyyiyaz9-33" value="&lt;font style=&quot;font-size: 14px;&quot;&gt;run_reps()&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F2A25C;" parent="1" vertex="1">
145-
<mxGeometry x="761.5" y="238" width="90" height="30" as="geometry" />
145+
<mxGeometry x="881.5" y="463.5" width="90" height="30" as="geometry" />
146146
</mxCell>
147147
<mxCell id="ltitkqDnKHNBnyyiyaz9-34" value="Runs model once&lt;div&gt;Calculates run results&lt;/div&gt;" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=1;" parent="1" vertex="1">
148-
<mxGeometry x="550" y="268" width="175" height="40" as="geometry" />
148+
<mxGeometry x="670" y="493.5" width="175" height="40" as="geometry" />
149149
</mxCell>
150150
<mxCell id="ltitkqDnKHNBnyyiyaz9-35" value="patient-level results" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D3F1E2;" parent="1" vertex="1">
151151
<mxGeometry x="29" y="836" width="120" height="30" as="geometry" />
@@ -154,31 +154,31 @@
154154
<mxGeometry x="350" y="570" width="120" height="30" as="geometry" />
155155
</mxCell>
156156
<mxCell id="ltitkqDnKHNBnyyiyaz9-37" value="run results" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D3F1E2;" parent="1" vertex="1">
157-
<mxGeometry x="577.5" y="308" width="120" height="30" as="geometry" />
157+
<mxGeometry x="697.5" y="533.5" width="120" height="30" as="geometry" />
158158
</mxCell>
159159
<mxCell id="ltitkqDnKHNBnyyiyaz9-38" value="overall results" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D3F1E2;" parent="1" vertex="1">
160-
<mxGeometry x="746.5" y="318" width="120" height="30" as="geometry" />
160+
<mxGeometry x="866.5" y="543.5" width="120" height="30" as="geometry" />
161161
</mxCell>
162162
<mxCell id="ltitkqDnKHNBnyyiyaz9-39" value="Performs multiple runs / replications and finds overall results" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=1;" parent="1" vertex="1">
163-
<mxGeometry x="719" y="273" width="175" height="40" as="geometry" />
163+
<mxGeometry x="839" y="498.5" width="175" height="40" as="geometry" />
164164
</mxCell>
165165
<mxCell id="ltitkqDnKHNBnyyiyaz9-40" value="At specified intervals, records the current nurse utilisation and cumulative mean waiting time" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=1;" parent="1" vertex="1">
166166
<mxGeometry x="239" y="519" width="175" height="40" as="geometry" />
167167
</mxCell>
168168
<mxCell id="ltitkqDnKHNBnyyiyaz9-41" value="Key:" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=1;fontStyle=1;" parent="1" vertex="1">
169-
<mxGeometry x="764" y="655" width="45" height="25" as="geometry" />
169+
<mxGeometry x="786.5" y="700" width="45" height="25" as="geometry" />
170170
</mxCell>
171171
<mxCell id="ltitkqDnKHNBnyyiyaz9-42" value="Results" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D3F1E2;" parent="1" vertex="1">
172-
<mxGeometry x="719" y="806" width="135" height="30" as="geometry" />
172+
<mxGeometry x="741.5" y="851" width="135" height="30" as="geometry" />
173173
</mxCell>
174174
<mxCell id="ltitkqDnKHNBnyyiyaz9-43" value="Functions or methods" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F4CBA1;" parent="1" vertex="1">
175-
<mxGeometry x="719" y="768" width="135" height="30" as="geometry" />
175+
<mxGeometry x="741.5" y="813" width="135" height="30" as="geometry" />
176176
</mxCell>
177177
<mxCell id="ltitkqDnKHNBnyyiyaz9-44" value="Instance of class" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#A9E4F5;" parent="1" vertex="1">
178-
<mxGeometry x="719" y="729" width="135" height="30" as="geometry" />
178+
<mxGeometry x="741.5" y="774" width="135" height="30" as="geometry" />
179179
</mxCell>
180180
<mxCell id="ltitkqDnKHNBnyyiyaz9-45" value="Class" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#68A9D4;" parent="1" vertex="1">
181-
<mxGeometry x="719" y="690.5" width="135" height="30" as="geometry" />
181+
<mxGeometry x="741.5" y="735.5" width="135" height="30" as="geometry" />
182182
</mxCell>
183183
<mxCell id="ltitkqDnKHNBnyyiyaz9-72" value="" style="curved=1;endArrow=classic;html=1;rounded=1;" parent="1" edge="1">
184184
<mxGeometry width="50" height="50" relative="1" as="geometry">
@@ -217,39 +217,54 @@
217217
<mxGeometry x="-230" y="60" width="190" height="71" as="geometry" />
218218
</mxCell>
219219
<mxCell id="ltitkqDnKHNBnyyiyaz9-100" value="&lt;font style=&quot;font-size: 18px;&quot;&gt;Running the model&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=1;fontStyle=1;" parent="1" vertex="1">
220-
<mxGeometry x="629.5" y="20" width="190" height="31" as="geometry" />
220+
<mxGeometry x="749.5" y="245.5" width="190" height="31" as="geometry" />
221221
</mxCell>
222-
<mxCell id="vqxNZKrtE7Uk3ozEDKWz-3" value="&lt;font style=&quot;font-size: 18px;&quot;&gt;SimLogger&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#68A9D4;" parent="1" vertex="1">
223-
<mxGeometry x="307" y="160" width="113" height="40" as="geometry" />
222+
<mxCell id="7yZ3_BnLaosynqhN-OXv-4" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;curved=0;" edge="1" parent="1" source="vqxNZKrtE7Uk3ozEDKWz-3" target="vqxNZKrtE7Uk3ozEDKWz-6">
223+
<mxGeometry relative="1" as="geometry" />
224224
</mxCell>
225-
<mxCell id="vqxNZKrtE7Uk3ozEDKWz-5" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" target="vqxNZKrtE7Uk3ozEDKWz-6" edge="1">
226-
<mxGeometry relative="1" as="geometry">
227-
<mxPoint x="363.5" y="200" as="sourcePoint" />
228-
</mxGeometry>
225+
<mxCell id="vqxNZKrtE7Uk3ozEDKWz-3" value="&lt;font style=&quot;font-size: 18px;&quot;&gt;SimLogger&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#68A9D4;" parent="1" vertex="1">
226+
<mxGeometry x="496.5" y="160" width="113" height="40" as="geometry" />
229227
</mxCell>
230-
<mxCell id="vqxNZKrtE7Uk3ozEDKWz-15" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=12;startSize=8;endSize=8;" parent="1" source="vqxNZKrtE7Uk3ozEDKWz-6" target="vqxNZKrtE7Uk3ozEDKWz-9" edge="1">
231-
<mxGeometry relative="1" as="geometry">
232-
<Array as="points">
233-
<mxPoint x="364" y="410" />
234-
<mxPoint x="495" y="410" />
235-
</Array>
236-
</mxGeometry>
228+
<mxCell id="7yZ3_BnLaosynqhN-OXv-6" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;curved=0;" edge="1" parent="1" source="vqxNZKrtE7Uk3ozEDKWz-6" target="vqxNZKrtE7Uk3ozEDKWz-9">
229+
<mxGeometry relative="1" as="geometry" />
237230
</mxCell>
238231
<mxCell id="vqxNZKrtE7Uk3ozEDKWz-6" value="&lt;font style=&quot;font-size: 14px;&quot;&gt;logger&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#A9E4F5;" parent="1" vertex="1">
239-
<mxGeometry x="330.5" y="250" width="66" height="30" as="geometry" />
232+
<mxGeometry x="520" y="250" width="66" height="30" as="geometry" />
240233
</mxCell>
241234
<mxCell id="vqxNZKrtE7Uk3ozEDKWz-9" value="&lt;font style=&quot;font-size: 14px;&quot;&gt;log()&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F2A25C;" parent="1" vertex="1">
242-
<mxGeometry x="450" y="676" width="90" height="30" as="geometry" />
235+
<mxGeometry x="508" y="658" width="90" height="30" as="geometry" />
243236
</mxCell>
244237
<mxCell id="vqxNZKrtE7Uk3ozEDKWz-11" value="Prints updates&amp;nbsp;&lt;span style=&quot;background-color: transparent; color: light-dark(rgb(0, 0, 0), rgb(255, 255, 255));&quot;&gt;(e.g. &quot;Patient 1 arrives at: 13.174 minutes&quot;) to console or saves to log&lt;/span&gt;" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=1;" parent="1" vertex="1">
245-
<mxGeometry x="396.5" y="713.5" width="185" height="40" as="geometry" />
238+
<mxGeometry x="460.5" y="700" width="185" height="40" as="geometry" />
246239
</mxCell>
247240
<mxCell id="vqxNZKrtE7Uk3ozEDKWz-13" value="&lt;font style=&quot;font-size: 18px;&quot;&gt;Set-up&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=1;fontStyle=1;" parent="1" vertex="1">
248241
<mxGeometry x="6" y="20" width="90" height="31" as="geometry" />
249242
</mxCell>
250243
<mxCell id="vqxNZKrtE7Uk3ozEDKWz-14" value="&lt;font style=&quot;font-size: 18px;&quot;&gt;Simulation&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=1;fontStyle=1;" parent="1" vertex="1">
251244
<mxGeometry x="-150" y="400" width="110" height="31" as="geometry" />
252245
</mxCell>
246+
<mxCell id="7yZ3_BnLaosynqhN-OXv-3" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;curved=0;" edge="1" parent="1" source="7yZ3_BnLaosynqhN-OXv-1" target="7yZ3_BnLaosynqhN-OXv-2">
247+
<mxGeometry relative="1" as="geometry" />
248+
</mxCell>
249+
<mxCell id="7yZ3_BnLaosynqhN-OXv-1" value="&lt;font style=&quot;font-size: 18px;&quot;&gt;MonitoredResource&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#68A9D4;" vertex="1" parent="1">
250+
<mxGeometry x="290" y="160" width="180" height="40" as="geometry" />
251+
</mxCell>
252+
<mxCell id="7yZ3_BnLaosynqhN-OXv-2" value="&lt;font style=&quot;font-size: 14px;&quot;&gt;nurse&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#A9E4F5;" vertex="1" parent="1">
253+
<mxGeometry x="347" y="250" width="66" height="30" as="geometry" />
254+
</mxCell>
255+
<mxCell id="7yZ3_BnLaosynqhN-OXv-8" value="" style="curved=1;endArrow=classic;html=1;rounded=1;dashed=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" edge="1" parent="1" source="ltitkqDnKHNBnyyiyaz9-22">
256+
<mxGeometry width="50" height="50" relative="1" as="geometry">
257+
<mxPoint x="335" y="726" as="sourcePoint" />
258+
<mxPoint x="320" y="790" as="targetPoint" />
259+
<Array as="points">
260+
<mxPoint x="310" y="730" />
261+
<mxPoint x="320" y="740" />
262+
</Array>
263+
</mxGeometry>
264+
</mxCell>
265+
<mxCell id="7yZ3_BnLaosynqhN-OXv-11" value="Nurse is a MonitoredResource, so every time it is requested and released, time-weighted monitoring statistics are updated" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=1;" vertex="1" parent="1">
266+
<mxGeometry x="280" y="810" width="200" height="40" as="geometry" />
267+
</mxCell>
253268
</root>
254269
</mxGraphModel>
255270
</diagram>

images/model_structure.png

58.1 KB
Loading

0 commit comments

Comments
 (0)