You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

354 lines
5.6 KiB

  1. {
  2. "jani-version": 1,
  3. "name": "dice",
  4. "type" : "mdp",
  5. "actions" : [],
  6. "variables" : [
  7. {
  8. "name": "thrownSix",
  9. "type": "bool",
  10. "initial-value": false
  11. },
  12. {
  13. "name": "terminated",
  14. "type": "bool",
  15. "initial-value": false
  16. }
  17. ],
  18. "rewards" : [
  19. {
  20. "name" : "step"
  21. }
  22. ],
  23. "properties" : [
  24. {
  25. "name" : "ProbThrowSix",
  26. "reach" : "thrownSix",
  27. "type": "probability-max-query"
  28. },
  29. {
  30. "name" : "StepsUntilReach",
  31. "reach" : "terminated",
  32. "reward": "step",
  33. "type": "expected-reachability-reward-max-query"
  34. }
  35. ],
  36. "automata" : [
  37. {
  38. "name" : "dice",
  39. "variables" : [
  40. {
  41. "name" : "d",
  42. "type" : {
  43. "kind": "bounded",
  44. "base": "int",
  45. "lower-bound" : 0,
  46. "upper-bound" : 6
  47. },
  48. "initial-value" : 0
  49. }
  50. ],
  51. "locations" : [
  52. {
  53. "name" : "s0"
  54. },
  55. {
  56. "name" : "s1"
  57. },
  58. {
  59. "name" : "s2"
  60. },
  61. {
  62. "name" : "s3"
  63. },
  64. {
  65. "name" : "s4"
  66. },
  67. {
  68. "name" : "s5"
  69. },
  70. {
  71. "name" : "s6"
  72. },
  73. {
  74. "name" : "s7"
  75. }
  76. ],
  77. "initial-location" : "s0",
  78. "edges" : [
  79. {
  80. "location" : "s0",
  81. "guard" : true,
  82. "destinations" : [
  83. {
  84. "probability" : 0.5,
  85. "location" : "s1",
  86. "assignments" : [],
  87. "rewards" : [
  88. {
  89. "ref" : "step",
  90. "value" : 1
  91. }
  92. ]
  93. },
  94. {
  95. "probability" : 0.5,
  96. "location" : "s2",
  97. "assignments" : [],
  98. "rewards" : [
  99. {
  100. "ref" : "step",
  101. "value" : 1
  102. }
  103. ]
  104. }
  105. ]
  106. },
  107. {
  108. "location" : "s1",
  109. "guard" : true,
  110. "destinations" : [
  111. {
  112. "probability" : 0.5,
  113. "location" : "s3",
  114. "assignments" : [],
  115. "rewards" : [
  116. {
  117. "ref" : "step",
  118. "value" : 1
  119. }
  120. ]
  121. },
  122. {
  123. "probability" : 0.5,
  124. "location" : "s4",
  125. "assignments" : [],
  126. "rewards" : [
  127. {
  128. "ref" : "step",
  129. "value" : 1
  130. }
  131. ]
  132. }
  133. ]
  134. },
  135. {
  136. "location" : "s2",
  137. "guard" : true,
  138. "destinations" : [
  139. {
  140. "probability" : 0.5,
  141. "location" : "s5",
  142. "assignments" : [],
  143. "rewards" : [
  144. {
  145. "ref" : "step",
  146. "value" : 1
  147. }
  148. ]
  149. },
  150. {
  151. "probability" : 0.5,
  152. "location" : "s6",
  153. "assignments" : [],
  154. "rewards" : [
  155. {
  156. "ref" : "step",
  157. "value" : 1
  158. }
  159. ]
  160. }
  161. ]
  162. },
  163. {
  164. "location" : "s3",
  165. "guard" : true,
  166. "destinations" : [
  167. {
  168. "probability" : 0.5,
  169. "location" : "s1",
  170. "assignments" : [],
  171. "rewards" : [
  172. {
  173. "ref" : "step",
  174. "value" : 1
  175. }
  176. ]
  177. },
  178. {
  179. "probability" : 0.5,
  180. "location" : "s7",
  181. "assignments" : [
  182. {
  183. "ref" : "d",
  184. "value" : 1
  185. },
  186. {
  187. "ref" : "terminated",
  188. "value" : true
  189. }
  190. ],
  191. "rewards" : [
  192. {
  193. "ref" : "step",
  194. "value" : 1
  195. }
  196. ]
  197. }
  198. ]
  199. },
  200. {
  201. "location" : "s4",
  202. "guard" : true,
  203. "destinations" : [
  204. {
  205. "probability" : 0.5,
  206. "location" : "s7",
  207. "assignments" : [
  208. {
  209. "ref" : "d",
  210. "value" : 2
  211. },
  212. {
  213. "ref" : "terminated",
  214. "value" : true
  215. }
  216. ],
  217. "rewards" : [
  218. {
  219. "ref" : "step",
  220. "value" : 1
  221. }
  222. ]
  223. },
  224. {
  225. "probability" : 0.5,
  226. "location" : "s7",
  227. "assignments" : [
  228. {
  229. "ref" : "d",
  230. "value" : 3
  231. },
  232. {
  233. "ref" : "terminated",
  234. "value" : true
  235. }
  236. ],
  237. "rewards" : [
  238. {
  239. "ref" : "step",
  240. "value" : 1
  241. }
  242. ]
  243. }
  244. ]
  245. },
  246. {
  247. "location" : "s5",
  248. "guard" : true,
  249. "destinations" : [
  250. {
  251. "probability" : 0.5,
  252. "location" : "s7",
  253. "assignments" : [
  254. {
  255. "ref" : "d",
  256. "value" : 4
  257. },
  258. {
  259. "ref" : "terminated",
  260. "value" : true
  261. }
  262. ],
  263. "rewards" : [
  264. {
  265. "ref" : "step",
  266. "value" : 1
  267. }
  268. ]
  269. },
  270. {
  271. "probability" : 0.5,
  272. "location" : "s7",
  273. "assignments" : [
  274. {
  275. "ref" : "d",
  276. "value" : 5
  277. },
  278. {
  279. "ref" : "terminated",
  280. "value" : true
  281. }
  282. ],
  283. "rewards" : [
  284. {
  285. "ref" : "step",
  286. "value" : 1
  287. }
  288. ]
  289. }
  290. ]
  291. },
  292. {
  293. "location" : "s6",
  294. "guard" : true,
  295. "destinations" : [
  296. {
  297. "probability" : 0.5,
  298. "location" : "s2",
  299. "assignments" : [],
  300. "rewards" : [
  301. {
  302. "ref" : "step",
  303. "value" : 1
  304. }
  305. ]
  306. },
  307. {
  308. "probability" : 0.5,
  309. "location" : "s7",
  310. "assignments" : [
  311. {
  312. "ref" : "d",
  313. "value" : 6
  314. },
  315. {
  316. "ref" : "thrownSix",
  317. "value" : true
  318. },
  319. {
  320. "ref" : "terminated",
  321. "value" : true
  322. }
  323. ],
  324. "rewards" : [
  325. {
  326. "ref" : "step",
  327. "value" : 1
  328. }
  329. ]
  330. }
  331. ]
  332. },
  333. {
  334. "location" : "s7",
  335. "guard" : true,
  336. "destinations" : [
  337. {
  338. "probability" : 1,
  339. "location" : "s7",
  340. "assignments" : [],
  341. "rewards" : [
  342. {
  343. "ref" : "step",
  344. "value" : 1
  345. }
  346. ]
  347. }
  348. ]
  349. }
  350. ]
  351. }
  352. ],
  353. "system" : "dice"
  354. }