MattStammers commited on
Commit
2556662
1 Parent(s): 22760f4

Upload smoking cessation demo.stmx

Browse files
Files changed (1) hide show
  1. smoking cessation demo.stmx +386 -0
smoking cessation demo.stmx ADDED
@@ -0,0 +1,386 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <xmile version="1.0" xmlns="http://docs.oasis-open.org/xmile/ns/XMILE/v1.0" xmlns:isee="http://iseesystems.com/XMILE">
3
+ <header>
4
+ <smile version="1.0" namespace="std, isee" uses_arrays="1"/>
5
+ <name>smoking cessation demo</name>
6
+ <uuid>5ea8eaab-1635-49d0-b82f-57f9a5c4c3d4</uuid>
7
+ <vendor>isee systems, inc.</vendor>
8
+ <product version="1.1" isee:saved_by_v1="true" lang="en">Stella Architect</product>
9
+ </header>
10
+ <sim_specs isee:simulation_delay="0" method="Euler" time_units="Months" isee:pause_after_rates="false" isee:instantaneous_flows="false">
11
+ <start>0</start>
12
+ <stop>36</stop>
13
+ <dt>0.25</dt>
14
+ </sim_specs>
15
+ <dimensions>
16
+ <dim name="Dim_Name_1" size="1"/>
17
+ </dimensions>
18
+ <isee:prefs show_module_prefix="true" live_update_on_drag="true" layer="model"/>
19
+ <model_units/>
20
+ <isee:sensi_specs run="false" method="multivariate" runs="0"/>
21
+ <model>
22
+ <variables>
23
+ <stock name="Current smokers">
24
+ <eqn>900</eqn>
25
+ <format precision="10"/>
26
+ <outflow>Smokers_quitting</outflow>
27
+ <non_negative/>
28
+ </stock>
29
+ <aux name="Effect on spend per quitter">
30
+ <eqn>Current_smokers/INIT(Current_smokers)</eqn>
31
+ <format precision="0.1"/>
32
+ </aux>
33
+ <stock name="Ex smokers">
34
+ <eqn>100</eqn>
35
+ <format precision="10"/>
36
+ <inflow>Smokers_quitting</inflow>
37
+ <outflow>Ex_smokers_starting_again</outflow>
38
+ <non_negative/>
39
+ </stock>
40
+ <flow name="Smokers quitting">
41
+ <eqn>Smoking_cessation_service_funding/Spend_per_quitter</eqn>
42
+ <format precision="0.1"/>
43
+ <non_negative/>
44
+ </flow>
45
+ <aux name="Healthcare savings">
46
+ <eqn>Ex_smokers*Monthly_cost_savings_per_ex_smoker</eqn>
47
+ <format precision="100"/>
48
+ </aux>
49
+ <aux name="Monthly cost savings per ex smoker">
50
+ <eqn>50</eqn>
51
+ <format precision="0.1"/>
52
+ </aux>
53
+ <aux name="Smoking cessation service funding">
54
+ <eqn>Healthcare_savings*(Percentage_of_savings_spent_on_cessation/100)</eqn>
55
+ <format precision="100"/>
56
+ </aux>
57
+ <aux name="Spend per quitter">
58
+ <eqn>200/Effect_on_spend_per_quitter</eqn>
59
+ <format precision="10"/>
60
+ </aux>
61
+ <aux name="Percentage of savings spent on cessation">
62
+ <eqn>80</eqn>
63
+ <format precision="0.1"/>
64
+ </aux>
65
+ <stock name="Lapsed ex smokers">
66
+ <eqn>0</eqn>
67
+ <format precision="10"/>
68
+ <inflow>Ex_smokers_starting_again</inflow>
69
+ <non_negative/>
70
+ </stock>
71
+ <aux name="Average quitter failure rate">
72
+ <eqn>0.05</eqn>
73
+ <format precision="0.0001"/>
74
+ </aux>
75
+ <flow name="Ex smokers starting again">
76
+ <eqn>Ex_smokers*Average_quitter_failure_rate</eqn>
77
+ <format precision="0.1"/>
78
+ <non_negative/>
79
+ </flow>
80
+ </variables>
81
+ <views>
82
+ <style color="black" background="white" font_style="normal" font_weight="normal" text_decoration="none" text_align="center" vertical_text_align="center" font_color="black" font_family="Arial" font_size="10pt" padding="2" border_color="black" border_width="thin" border_style="none">
83
+ <text_box color="black" background="white" text_align="left" vertical_text_align="top" font_size="12pt"/>
84
+ <numeric_display color="blue" background="white" font_size="9pt" isee:transparent="false"/>
85
+ <graph color="black" background="white" font_size="12pt" axis_color="#666666" grid_color="#C8C8C8" legend_position="bottom" isee:transparent="false" axis_label_font_size="9pt"/>
86
+ <table color="black" background="#E0E0E0" text_align="right" font_size="12pt" orientation="vertical" wrap_text="false" isee:auto_fit="true" isee:use_alternate_row_colors="false" blank_column_width="80" column_width="160" isee:report_month_names="false" interval="1" report_balances="beginning" report_flows="instantaneous" header_text_align="center"/>
87
+ <button color="black" background="#E0E0E0" font_size="12pt" transparent="false" corner_radius="0" icon_side="top"/>
88
+ <isee:annotation color="black" background="#E0E0E0" font_size="12pt" transparent="false" corner_radius="0" icon_side="top" popup_background_color="#FFFECF" popup_text_align="left" popup_vertical_text_align="top"/>
89
+ <slider color="black" background="#E0E0E0" font_size="12pt" num_ticks="3" label_side="top"/>
90
+ <knob color="#66CC66" background="#E0E0E0" font_size="12pt" label_side="bottom"/>
91
+ <numeric_input color="black" background="#E0E0E0" font_size="12pt" label_side="left"/>
92
+ <switch color="black" background="#E0E0E0" font_size="12pt" label_side="top"/>
93
+ <options color="black" background="white" appearance="radio-buttons" arrangement="vertical"/>
94
+ <graphical_input color="black" background="#E0E0E0" font_size="12pt"/>
95
+ <group_input color="black" background="#E0E0E0" font_size="12pt"/>
96
+ <lamp color="black" background="white" font_size="9pt"/>
97
+ </style>
98
+ <view isee:show_pages="true" isee:use_lettered_polarity="true" page_width="824" page_height="577" isee:page_cols="2" isee:popup_graphs_are_comparative="true" type="stock_flow">
99
+ <style color="black" background="white" font_style="normal" font_weight="normal" text_decoration="none" text_align="center" vertical_text_align="center" font_color="black" font_family="Arial" font_size="10pt" padding="2" border_color="black" border_width="thin" border_style="none">
100
+ <stock color="blue" background="white" font_color="blue" font_size="12pt" label_side="top" label_angle="0">
101
+ <shape type="rectangle" width="45" height="35"/>
102
+ </stock>
103
+ <flow color="blue" background="white" font_color="blue" font_size="12pt" label_side="bottom" label_angle="0"/>
104
+ <module color="blue" background="white" font_color="blue" font_size="12pt" label_side="top" label_angle="0">
105
+ <shape type="rectangle" width="55" height="45"/>
106
+ </module>
107
+ <aux color="blue" background="white" font_color="blue" font_size="12pt" label_side="bottom" label_angle="0">
108
+ <shape type="circle" radius="18"/>
109
+ </aux>
110
+ <group color="red" background="white" font_color="red" font_size="12pt"/>
111
+ <connector color="#FF007F" background="white" font_color="#FF007F" font_size="9pt" isee:thickness="1"/>
112
+ <text_box color="black" background="white" text_align="left" vertical_text_align="top" font_size="12pt"/>
113
+ <numeric_display color="blue" background="white" font_size="9pt" isee:transparent="false"/>
114
+ <graph color="black" background="white" font_size="12pt" axis_color="#666666" grid_color="#C8C8C8" legend_position="bottom" isee:transparent="false" axis_label_font_size="9pt"/>
115
+ <table color="black" background="#E0E0E0" text_align="right" font_size="12pt" orientation="vertical" wrap_text="false" isee:auto_fit="true" isee:use_alternate_row_colors="false" blank_column_width="80" column_width="160" isee:report_month_names="false" interval="1" report_balances="beginning" report_flows="instantaneous" header_text_align="center"/>
116
+ </style>
117
+ <connector uid="1" polarity="+" isee:polarity_placement="inside" angle="225">
118
+ <from>Healthcare_savings</from>
119
+ <to>Smoking_cessation_service_funding</to>
120
+ </connector>
121
+ <connector uid="2" polarity="+" isee:polarity_placement="inside" angle="232.595">
122
+ <from>Current_smokers</from>
123
+ <to>Effect_on_spend_per_quitter</to>
124
+ </connector>
125
+ <connector uid="3" angle="144.462">
126
+ <from>Percentage_of_savings_spent_on_cessation</from>
127
+ <to>Smoking_cessation_service_funding</to>
128
+ </connector>
129
+ <connector uid="4" polarity="+" isee:polarity_placement="inside" angle="313.152">
130
+ <from>Ex_smokers</from>
131
+ <to>Healthcare_savings</to>
132
+ </connector>
133
+ <connector uid="5" polarity="+" isee:polarity_placement="inside" angle="120.964">
134
+ <from>Smoking_cessation_service_funding</from>
135
+ <to>Smokers_quitting</to>
136
+ </connector>
137
+ <connector uid="6" angle="192.529">
138
+ <from>Monthly_cost_savings_per_ex_smoker</from>
139
+ <to>Healthcare_savings</to>
140
+ </connector>
141
+ <connector uid="7" polarity="+" isee:polarity_placement="inside" angle="36.8699">
142
+ <from>Spend_per_quitter</from>
143
+ <to>Smokers_quitting</to>
144
+ </connector>
145
+ <connector uid="8" polarity="-" isee:polarity_placement="inside" angle="296.565">
146
+ <from>Effect_on_spend_per_quitter</from>
147
+ <to>Spend_per_quitter</to>
148
+ </connector>
149
+ <connector uid="9" angle="180">
150
+ <from>Average_quitter_failure_rate</from>
151
+ <to>Ex_smokers_starting_again</to>
152
+ </connector>
153
+ <connector uid="10" polarity="+" isee:polarity_placement="inside" angle="50.5993">
154
+ <from>Ex_smokers</from>
155
+ <to>Ex_smokers_starting_again</to>
156
+ </connector>
157
+ <stock x="110" y="123" name="Current smokers"/>
158
+ <aux x="82" y="188" name="Effect on spend per quitter"/>
159
+ <stock x="391" y="123" name="Ex smokers"/>
160
+ <flow label_side="top" label_angle="90" x="244.5" y="118" name="Smokers quitting">
161
+ <pts>
162
+ <pt x="132.5" y="118"/>
163
+ <pt x="368.5" y="118"/>
164
+ </pts>
165
+ </flow>
166
+ <aux label_side="right" label_angle="360" x="394" y="207" name="Healthcare savings"/>
167
+ <aux x="484" y="251" name="Monthly cost savings per ex smoker"/>
168
+ <aux label_side="left" label_angle="180" x="278" y="238" name="Smoking cessation service funding"/>
169
+ <aux x="149" y="246" name="Spend per quitter"/>
170
+ <aux x="332" y="320" name="Percentage of savings spent on cessation"/>
171
+ <stock x="765" y="120" name="Lapsed ex smokers"/>
172
+ <aux x="713" y="214" name="Average quitter failure rate"/>
173
+ <flow label_side="right" label_angle="315" x="572" y="121" name="Ex smokers starting again">
174
+ <pts>
175
+ <pt x="413.5" y="121"/>
176
+ <pt x="742.5" y="121"/>
177
+ </pts>
178
+ </flow>
179
+ <text_box text_align="center" vertical_text_align="center" font_size="18pt" uid="11" x="307" y="164" width="23" height="27">R</text_box>
180
+ <text_box text_align="center" vertical_text_align="center" font_size="18pt" uid="12" x="142" y="145" width="23" height="27">B</text_box>
181
+ <text_box text_align="center" vertical_text_align="center" font_size="18pt" uid="13" x="472.5" y="82" width="23" height="27">B</text_box>
182
+ </view>
183
+ <view isee:show_pages="true" page_width="788" page_height="528" home_view="true" type="interface">
184
+ <style/>
185
+ <stacked_container uid="14" x="144" y="58" width="492" height="282">
186
+ <graph background="#FFFFC9" axis_label_font_size="9pt" x="390" y="199" type="time_series" isee:time_precision="1" isee:time_scale_by="1" show_grid="false" include_units_in_legend="false" plot_numbers="true" num_x_grid_lines="5" num_y_grid_lines="5" num_x_labels="7" num_y_labels="6" title="Smokers quitting or who have quit" left_axis_multi_scale="false" left_axis_auto_scale="false" right_axis_multi_scale="true" right_axis_auto_scale="true">
187
+ <plot color="blue" title="Ex smokers" pen_width="3" index="0" show_y_axis="true">
188
+ <format scale_by="1"/>
189
+ <entity name="Ex_smokers"/>
190
+ <scale min="0" max="1000"/>
191
+ </plot>
192
+ <plot color="red" pen_width="3" index="1" show_y_axis="true">
193
+ <format scale_by="1"/>
194
+ <entity name="Smokers_quitting"/>
195
+ <scale min="0" max="1000"/>
196
+ </plot>
197
+ </graph>
198
+ </stacked_container>
199
+ <slider color="blue" font_color="#191919" uid="15" x="180.5" y="385.5" width="197" height="43" increment="1" min="0" max="100" isee:navigate_to="true" show_name="true">
200
+ <format scale_by="1"/>
201
+ <entity name="Percentage_of_savings_spent_on_cessation"/>
202
+ <reset_to after="never"/>
203
+ </slider>
204
+ <button color="white" background="#B3B3B3" corner_radius="0" label="Restore All Devices" uid="16" x="25" y="130" width="89" height="40">
205
+ <actions>
206
+ <action>restore_all</action>
207
+ </actions>
208
+ </button>
209
+ <button color="white" background="#B3B3B3" corner_radius="0" label="Run" uid="17" x="25" y="76" width="89" height="40">
210
+ <actions>
211
+ <action>run_to_end</action>
212
+ </actions>
213
+ </button>
214
+ <button label="Story" uid="18" x="27" y="183" width="85" height="41">
215
+ <actions>
216
+ <action target="story" story="19" view="0">navigate</action>
217
+ </actions>
218
+ </button>
219
+ <slider uid="20" x="507" y="413" increment="0.01" min="0" max="0.1" isee:navigate_to="false" show_name="true">
220
+ <format precision="0.01"/>
221
+ <entity name="Average_quitter_failure_rate"/>
222
+ <reset_to after="never"/>
223
+ </slider>
224
+ </view>
225
+ <isee:templates>
226
+ <view isee:show_pages="false" page_width="788" page_height="528" type="template">
227
+ <style/>
228
+ </view>
229
+ </isee:templates>
230
+ <isee:stories>
231
+ <isee:story uid="19" name="Story 1">
232
+ <view isee:show_pages="false" page_width="788" page_height="528" type="interface">
233
+ <style/>
234
+ <isee:model_view uid="21" x="0" y="0" width="788" height="528" isee:locked="true" zoom="1" center_x="394" center_y="264" locked_view="true" use_visible_list="true">
235
+ <model name="Top-Level"/>
236
+ <isee:visible_list>
237
+ <entity name="Ex_smokers"/>
238
+ <entity name="Smoking_cessation_service_funding"/>
239
+ <entity name="Smokers_quitting"/>
240
+ <item uid="5"/>
241
+ <item uid="4"/>
242
+ <entity name="Healthcare_savings"/>
243
+ <item uid="11"/>
244
+ <item uid="1"/>
245
+ </isee:visible_list>
246
+ <isee:highlight_list/>
247
+ </isee:model_view>
248
+ <stacked_container uid="22" x="587" y="381">
249
+ <graph axis_label_font_size="9pt" x="412" y="256" width="350" height="250" type="time_series" show_grid="false" include_units_in_legend="false" plot_numbers="false" num_x_grid_lines="0" num_y_grid_lines="0" num_x_labels="7" num_y_labels="6" title="Number of ex-smokers" left_axis_multi_scale="false" left_axis_auto_scale="true" right_axis_multi_scale="false" right_axis_auto_scale="true">
250
+ <plot color="blue" pen_width="1" index="0" show_y_axis="true">
251
+ <entity name="Ex_smokers"/>
252
+ <scale min="0" max="1000"/>
253
+ </plot>
254
+ </graph>
255
+ </stacked_container>
256
+ <button label="" uid="23" x="168" y="333">
257
+ <actions>
258
+ <action>start</action>
259
+ </actions>
260
+ </button>
261
+ <button label="Reset" uid="24" x="168" y="372">
262
+ <actions>
263
+ <action>restore_all</action>
264
+ </actions>
265
+ </button>
266
+ <button label="Next" uid="25" x="168" y="410">
267
+ <actions>
268
+ <action target="story" story="19" view="1">navigate</action>
269
+ </actions>
270
+ </button>
271
+ </view>
272
+ <view isee:show_pages="false" page_width="788" page_height="528" type="interface">
273
+ <style/>
274
+ <isee:model_view uid="26" x="0" y="0" width="788" height="528" isee:locked="true" zoom="1" center_x="394" center_y="264" locked_view="true" use_visible_list="true">
275
+ <model name="Top-Level"/>
276
+ <isee:visible_list>
277
+ <item uid="7"/>
278
+ <entity name="Spend_per_quitter"/>
279
+ <item uid="8"/>
280
+ <entity name="Effect_on_spend_per_quitter"/>
281
+ <item uid="2"/>
282
+ <entity name="Current_smokers"/>
283
+ <item uid="12"/>
284
+ <item uid="1"/>
285
+ <item uid="11"/>
286
+ <entity name="Healthcare_savings"/>
287
+ <item uid="4"/>
288
+ <item uid="5"/>
289
+ <entity name="Smokers_quitting"/>
290
+ <entity name="Smoking_cessation_service_funding"/>
291
+ <entity name="Ex_smokers"/>
292
+ </isee:visible_list>
293
+ <isee:highlight_list>
294
+ <item uid="12"/>
295
+ <item uid="7"/>
296
+ <entity name="Spend_per_quitter"/>
297
+ <item uid="8"/>
298
+ <entity name="Effect_on_spend_per_quitter"/>
299
+ <item uid="2"/>
300
+ <entity name="Current_smokers"/>
301
+ </isee:highlight_list>
302
+ </isee:model_view>
303
+ <stacked_container uid="27" x="569" y="383">
304
+ <graph axis_label_font_size="9pt" x="394" y="258" width="350" height="250" type="time_series" show_grid="false" include_units_in_legend="false" plot_numbers="false" num_x_grid_lines="0" num_y_grid_lines="0" num_x_labels="7" num_y_labels="6" title="Number of ex smokers" left_axis_multi_scale="false" left_axis_auto_scale="true" right_axis_multi_scale="false" right_axis_auto_scale="true">
305
+ <plot color="blue" pen_width="1" index="0" show_y_axis="true">
306
+ <entity name="Ex_smokers"/>
307
+ <scale min="0" max="1000"/>
308
+ </plot>
309
+ </graph>
310
+ </stacked_container>
311
+ <button label="" uid="28" x="152" y="345">
312
+ <actions>
313
+ <action>start</action>
314
+ </actions>
315
+ </button>
316
+ <button label="Reset" uid="29" x="152" y="383">
317
+ <actions>
318
+ <action>restore_all</action>
319
+ </actions>
320
+ </button>
321
+ <button label="Next" uid="30" x="152" y="423">
322
+ <actions>
323
+ <action target="story" story="19" view="2">navigate</action>
324
+ </actions>
325
+ </button>
326
+ </view>
327
+ <view isee:show_pages="false" page_width="788" page_height="528" type="interface">
328
+ <style/>
329
+ <isee:model_view uid="31" x="0" y="0" width="788" height="528" isee:locked="true" zoom="1" center_x="394" center_y="264" locked_view="true" use_visible_list="true">
330
+ <model name="Top-Level"/>
331
+ <isee:visible_list>
332
+ <item uid="13"/>
333
+ <entity name="Ex_smokers_starting_again"/>
334
+ <item uid="10"/>
335
+ <entity name="Ex_smokers"/>
336
+ <entity name="Smoking_cessation_service_funding"/>
337
+ <item uid="4"/>
338
+ <entity name="Smokers_quitting"/>
339
+ <item uid="5"/>
340
+ <entity name="Healthcare_savings"/>
341
+ <item uid="12"/>
342
+ <item uid="11"/>
343
+ <item uid="1"/>
344
+ <entity name="Current_smokers"/>
345
+ <item uid="2"/>
346
+ <item uid="8"/>
347
+ <entity name="Effect_on_spend_per_quitter"/>
348
+ <item uid="7"/>
349
+ <entity name="Spend_per_quitter"/>
350
+ </isee:visible_list>
351
+ <isee:highlight_list>
352
+ <item uid="13"/>
353
+ <entity name="Ex_smokers_starting_again"/>
354
+ <item uid="10"/>
355
+ </isee:highlight_list>
356
+ </isee:model_view>
357
+ <stacked_container uid="32" x="578" y="379">
358
+ <graph axis_label_font_size="9pt" x="403" y="254" width="350" height="250" type="time_series" show_grid="false" include_units_in_legend="false" plot_numbers="false" num_x_grid_lines="0" num_y_grid_lines="0" num_x_labels="7" num_y_labels="6" title="Number of ex smokers" left_axis_multi_scale="false" left_axis_auto_scale="true" right_axis_multi_scale="false" right_axis_auto_scale="true">
359
+ <plot color="blue" pen_width="1" index="0" show_y_axis="true">
360
+ <entity name="Ex_smokers"/>
361
+ <scale min="0" max="1000"/>
362
+ </plot>
363
+ </graph>
364
+ </stacked_container>
365
+ <button label="" uid="33" x="168" y="331">
366
+ <actions>
367
+ <action>start</action>
368
+ </actions>
369
+ </button>
370
+ <button label="Reset" uid="34" x="168" y="372">
371
+ <actions>
372
+ <action>restore_all</action>
373
+ </actions>
374
+ </button>
375
+ <button label="Home" uid="35" x="168" y="413">
376
+ <actions>
377
+ <action target="home_page">navigate</action>
378
+ </actions>
379
+ </button>
380
+ </view>
381
+ </isee:story>
382
+ </isee:stories>
383
+ </views>
384
+ </model>
385
+ </xmile>
386
+