YES kutmodel werkt
[mc1516the.git] / uppaal / 3_v2.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE nta PUBLIC '-//Uppaal Team//DTD Flat System 1.1//EN' 'http://www.it.uu.se/research/group/darts/uppaal/flat-1_2.dtd'>
3 <nta>
4 <declaration>// Place global declarations here.
5
6 clock r1, r2;
7 clock t;
8 clock time;</declaration>
9 <template>
10 <name x="5" y="5">Vessel</name>
11 <declaration>// Place local declarations here.</declaration>
12 <location id="id0" x="-374" y="-153">
13 <name x="-384" y="-187">Start</name>
14 <label kind="invariant" x="-459" y="-161">t &lt;= 102</label>
15 <urgent/>
16 </location>
17 <location id="id1" x="-467" y="8">
18 <name x="-552" y="-25">overheating</name>
19 <label kind="invariant" x="-501" y="25">t' == 0.1*t - 10.0
20 &amp;&amp; r1' == 1
21 &amp;&amp; r2' == 1</label>
22 </location>
23 <location id="id2" x="-42" y="85">
24 <name x="-52" y="51">rod2</name>
25 <label kind="invariant" x="-8" y="68">t' == 0.1*t - 12.0
26 &amp;&amp; r1' == 1
27 &amp;&amp; r2' == 1
28 &amp;&amp; t &gt;= 102</label>
29 </location>
30 <location id="id3" x="-42" y="-68">
31 <name x="-52" y="-102">rod1</name>
32 <label kind="invariant" x="-17" y="-102">t' == 0.1*t - 11.2
33 &amp;&amp; r1' == 1
34 &amp;&amp; r2' == 1
35 &amp;&amp; t &gt;= 102</label>
36 </location>
37 <location id="id4" x="-178" y="8">
38 <name x="-238" y="-59">inRange</name>
39 <label kind="invariant" x="-314" y="17">t' == 0.1*t - 10.0
40 &amp;&amp; r1' == 1
41 &amp;&amp; r2' == 1
42 &amp;&amp; t &gt;= 102
43 &amp;&amp; t &lt;= 110</label>
44 </location>
45 <init ref="id0"/>
46 <transition>
47 <source ref="id0"/>
48 <target ref="id0"/>
49 <label kind="guard" x="-408" y="-221">t &lt; 102</label>
50 <label kind="assignment" x="-493" y="-221">t = 102,
51 r1 = 25,
52 r2 = 25</label>
53 <nail x="-433" y="-195"/>
54 <nail x="-331" y="-204"/>
55 </transition>
56 <transition>
57 <source ref="id0"/>
58 <target ref="id4"/>
59 <label kind="guard" x="-561" y="-127">t &gt;= 102 &amp;&amp; r1 &gt; 20 &amp;&amp; r2 &gt; 20</label>
60 </transition>
61 <transition>
62 <source ref="id4"/>
63 <target ref="id1"/>
64 <label kind="guard" x="-408" y="-51">t &gt;= 110 &amp;&amp;
65 r1 &lt;= 20
66 &amp;&amp; r2 &lt;= 20</label>
67 <nail x="-195" y="8"/>
68 </transition>
69 <transition>
70 <source ref="id2"/>
71 <target ref="id4"/>
72 <label kind="guard" x="-187" y="178">t &gt;= 102 &amp;&amp; t &lt;= 105</label>
73 <label kind="assignment" x="-160" y="161">r2 = 0</label>
74 <nail x="-42" y="161"/>
75 <nail x="-178" y="161"/>
76 </transition>
77 <transition>
78 <source ref="id4"/>
79 <target ref="id2"/>
80 <label kind="guard" x="-136" y="8">t &gt;= 110 &amp;&amp; r2 &gt; 20</label>
81 </transition>
82 <transition>
83 <source ref="id3"/>
84 <target ref="id4"/>
85 <label kind="guard" x="-160" y="-178">t &gt;= 102 &amp;&amp; t &lt;= 105</label>
86 <label kind="assignment" x="-153" y="-161">r1 = 0</label>
87 <nail x="-42" y="-144"/>
88 <nail x="-178" y="-144"/>
89 </transition>
90 <transition>
91 <source ref="id4"/>
92 <target ref="id3"/>
93 <label kind="guard" x="-136" y="-17">t &gt;= 110 &amp;&amp; r1 &gt; 20</label>
94 </transition>
95 </template>
96 <system>// Place template instantiations here.
97 // List one or more processes to be composed into a system.
98 v = Vessel();
99 system v;
100 </system>
101 <queries>
102 <query>
103 <formula>simulate 5 [&lt;=50] { t }
104 </formula>
105 <comment>
106 </comment>
107 </query>
108 </queries>
109 </nta>