Kut UPPAAL stik er in
[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="-34" y="102">t' == 0.1*t - 12.0
26 &amp;&amp; r1' == 1
27 &amp;&amp; r2' == 1</label>
28 <urgent/>
29 </location>
30 <location id="id3" x="-42" y="-68">
31 <name x="-52" y="-102">rod1</name>
32 <label kind="invariant" x="-25" y="-76">t' == 0.1*t - 11.2
33 &amp;&amp; r1' == 1
34 &amp;&amp; r2' == 1</label>
35 <urgent/>
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 <urgent/>
45 </location>
46 <init ref="id0"/>
47 <transition>
48 <source ref="id0"/>
49 <target ref="id0"/>
50 <label kind="guard" x="-408" y="-221">t &lt; 102</label>
51 <label kind="assignment" x="-493" y="-221">t = 102,
52 r1 = 25,
53 r2 = 25</label>
54 <nail x="-433" y="-195"/>
55 <nail x="-331" y="-204"/>
56 </transition>
57 <transition>
58 <source ref="id0"/>
59 <target ref="id4"/>
60 <label kind="guard" x="-561" y="-127">t &gt;= 102 &amp;&amp; r1 &gt; 20 &amp;&amp; r2 &gt; 20</label>
61 </transition>
62 <transition>
63 <source ref="id4"/>
64 <target ref="id1"/>
65 <label kind="guard" x="-408" y="-51">t &gt;= 110 &amp;&amp;
66 r1 &lt;= 20
67 &amp;&amp; r2 &lt;= 20</label>
68 <nail x="-195" y="8"/>
69 </transition>
70 <transition>
71 <source ref="id2"/>
72 <target ref="id4"/>
73 <label kind="guard" x="-187" y="178">t &gt;= 102 &amp;&amp; t &lt;= 105</label>
74 <label kind="assignment" x="-160" y="161">r2 = 0</label>
75 <nail x="-42" y="161"/>
76 <nail x="-178" y="161"/>
77 </transition>
78 <transition>
79 <source ref="id4"/>
80 <target ref="id2"/>
81 <label kind="guard" x="-136" y="8">t &gt;= 110 &amp;&amp; r2 &gt; 20</label>
82 </transition>
83 <transition>
84 <source ref="id3"/>
85 <target ref="id4"/>
86 <label kind="guard" x="-160" y="-178">t &gt;= 102 &amp;&amp; t &lt;= 105</label>
87 <label kind="assignment" x="-153" y="-161">r1 = 0</label>
88 <nail x="-42" y="-144"/>
89 <nail x="-178" y="-144"/>
90 </transition>
91 <transition>
92 <source ref="id4"/>
93 <target ref="id3"/>
94 <label kind="guard" x="-136" y="-17">t &gt;= 110 &amp;&amp; r1 &gt; 20</label>
95 </transition>
96 </template>
97 <system>// Place template instantiations here.
98 // List one or more processes to be composed into a system.
99 v = Vessel();
100 system v;
101 </system>
102 <queries>
103 <query>
104 <formula>simulate 5 [&lt;=50] { t }
105 </formula>
106 <comment>
107 </comment>
108 </query>
109 </queries>
110 </nta>