Advertisement
Guest User

Uppaal Model

a guest
May 24th, 2019
387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  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. urgent chan u;
  7.  
  8. </declaration>
  9. <template>
  10. <name x="5" y="5">UrgentChannel</name>
  11. <declaration>// Place local declarations here.</declaration>
  12. <location id="id0" x="0" y="0">
  13. </location>
  14. <init ref="id0"/>
  15. <transition>
  16. <source ref="id0"/>
  17. <target ref="id0"/>
  18. <label kind="synchronisation" x="0" y="-51">u!</label>
  19. <nail x="-25" y="-34"/>
  20. <nail x="34" y="-34"/>
  21. </transition>
  22. </template>
  23. <template>
  24. <name>P1</name>
  25. <location id="id1" x="-68" y="-51">
  26. <name x="-78" y="-85">start</name>
  27. </location>
  28. <location id="id2" x="59" y="-51">
  29. <name x="49" y="-85">goal</name>
  30. </location>
  31. <init ref="id1"/>
  32. <transition>
  33. <source ref="id1"/>
  34. <target ref="id2"/>
  35. <label kind="synchronisation" x="-8" y="-76">u?</label>
  36. </transition>
  37. </template>
  38. <template>
  39. <name>P2</name>
  40. <location id="id3" x="0" y="0">
  41. </location>
  42. <init ref="id3"/>
  43. <transition>
  44. <source ref="id3"/>
  45. <target ref="id3"/>
  46. <nail x="-25" y="-25"/>
  47. <nail x="25" y="-25"/>
  48. </transition>
  49. </template>
  50. <system>// Place template instantiations here.
  51.  
  52. // List one or more processes to be composed into a system.
  53. system UrgentChannel, P1, P2;
  54. </system>
  55. <queries>
  56. <query>
  57. <formula>P1.start --&gt; P1.goal</formula>
  58. <comment></comment>
  59. </query>
  60. </queries>
  61. </nta>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement