RaceTrans.metamodel 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412
  1. {
  2. "types": {
  3. "Step": [
  4. {
  5. "name": "position",
  6. "type": "list<int>",
  7. "default": "[0,0]"
  8. }
  9. ],
  10. "next": [],
  11. "StartEngines": [
  12. {
  13. "name": "position",
  14. "type": "list<int>",
  15. "default": "[0,0]"
  16. }
  17. ],
  18. "CarsGoToStart": [
  19. {
  20. "name": "position",
  21. "type": "list<int>",
  22. "default": "[0,0]"
  23. }
  24. ],
  25. "Positionable": [
  26. {
  27. "name": "position",
  28. "type": "list<int>",
  29. "default": "[0,0]"
  30. }
  31. ],
  32. "StepOnGas": [
  33. {
  34. "name": "position",
  35. "type": "list<int>",
  36. "default": "[0,0]"
  37. }
  38. ],
  39. "IsRaceFinished": [
  40. {
  41. "name": "position",
  42. "type": "list<int>",
  43. "default": "[0,0]"
  44. }
  45. ],
  46. "AwardCeremony": [
  47. {
  48. "name": "position",
  49. "type": "list<int>",
  50. "default": "[0,0]"
  51. }
  52. ],
  53. "notFinished": []
  54. },
  55. "constraints": [
  56. {
  57. "name": "noAbstractInstances",
  58. "event": "pre-create",
  59. "code": "false",
  60. "targetType": "Step"
  61. },
  62. {
  63. "name": "noAbstractInstances",
  64. "event": "pre-create",
  65. "code": "false",
  66. "targetType": "Positionable"
  67. }
  68. ],
  69. "actions": [],
  70. "cardinalities": {
  71. "Step": [
  72. {
  73. "dir": "out",
  74. "type": "next",
  75. "min": "0",
  76. "max": "Infinity"
  77. },
  78. {
  79. "dir": "in",
  80. "type": "next",
  81. "min": "0",
  82. "max": "Infinity"
  83. }
  84. ],
  85. "next": [
  86. {
  87. "dir": "in",
  88. "type": "Step",
  89. "min": "0",
  90. "max": "1"
  91. },
  92. {
  93. "dir": "out",
  94. "type": "Step",
  95. "min": "0",
  96. "max": "1"
  97. },
  98. {
  99. "dir": "in",
  100. "type": "StartEngines",
  101. "min": "0",
  102. "max": "1"
  103. },
  104. {
  105. "dir": "out",
  106. "type": "StartEngines",
  107. "min": "0",
  108. "max": "1"
  109. },
  110. {
  111. "dir": "in",
  112. "type": "CarsGoToStart",
  113. "min": "0",
  114. "max": "1"
  115. },
  116. {
  117. "dir": "out",
  118. "type": "CarsGoToStart",
  119. "min": "0",
  120. "max": "1"
  121. },
  122. {
  123. "dir": "in",
  124. "type": "StepOnGas",
  125. "min": "0",
  126. "max": "1"
  127. },
  128. {
  129. "dir": "out",
  130. "type": "StepOnGas",
  131. "min": "0",
  132. "max": "1"
  133. },
  134. {
  135. "dir": "in",
  136. "type": "IsRaceFinished",
  137. "min": "0",
  138. "max": "1"
  139. },
  140. {
  141. "dir": "out",
  142. "type": "IsRaceFinished",
  143. "min": "0",
  144. "max": "1"
  145. },
  146. {
  147. "dir": "in",
  148. "type": "AwardCeremony",
  149. "min": "0",
  150. "max": "1"
  151. },
  152. {
  153. "dir": "out",
  154. "type": "AwardCeremony",
  155. "min": "0",
  156. "max": "1"
  157. }
  158. ],
  159. "StartEngines": [
  160. {
  161. "dir": "out",
  162. "type": "next",
  163. "min": "0",
  164. "max": "Infinity"
  165. },
  166. {
  167. "dir": "in",
  168. "type": "next",
  169. "min": "0",
  170. "max": "Infinity"
  171. }
  172. ],
  173. "CarsGoToStart": [
  174. {
  175. "dir": "out",
  176. "type": "next",
  177. "min": "0",
  178. "max": "Infinity"
  179. },
  180. {
  181. "dir": "in",
  182. "type": "next",
  183. "min": "0",
  184. "max": "Infinity"
  185. }
  186. ],
  187. "Positionable": [],
  188. "StepOnGas": [
  189. {
  190. "dir": "in",
  191. "type": "notFinished",
  192. "min": "0",
  193. "max": "Infinity"
  194. },
  195. {
  196. "dir": "out",
  197. "type": "next",
  198. "min": "0",
  199. "max": "Infinity"
  200. },
  201. {
  202. "dir": "in",
  203. "type": "next",
  204. "min": "0",
  205. "max": "Infinity"
  206. }
  207. ],
  208. "IsRaceFinished": [
  209. {
  210. "dir": "out",
  211. "type": "notFinished",
  212. "min": "0",
  213. "max": "Infinity"
  214. },
  215. {
  216. "dir": "out",
  217. "type": "next",
  218. "min": "0",
  219. "max": "Infinity"
  220. },
  221. {
  222. "dir": "in",
  223. "type": "next",
  224. "min": "0",
  225. "max": "Infinity"
  226. }
  227. ],
  228. "AwardCeremony": [
  229. {
  230. "dir": "out",
  231. "type": "next",
  232. "min": "0",
  233. "max": "Infinity"
  234. },
  235. {
  236. "dir": "in",
  237. "type": "next",
  238. "min": "0",
  239. "max": "Infinity"
  240. }
  241. ],
  242. "notFinished": [
  243. {
  244. "dir": "in",
  245. "type": "IsRaceFinished",
  246. "min": "0",
  247. "max": "1"
  248. },
  249. {
  250. "dir": "out",
  251. "type": "StepOnGas",
  252. "min": "0",
  253. "max": "1"
  254. }
  255. ]
  256. },
  257. "legalConnections": {
  258. "Step": {
  259. "Step": [
  260. "next"
  261. ],
  262. "StartEngines": [
  263. "next"
  264. ],
  265. "CarsGoToStart": [
  266. "next"
  267. ],
  268. "StepOnGas": [
  269. "next"
  270. ],
  271. "IsRaceFinished": [
  272. "next"
  273. ],
  274. "AwardCeremony": [
  275. "next"
  276. ]
  277. },
  278. "StartEngines": {
  279. "Step": [
  280. "next"
  281. ],
  282. "StartEngines": [
  283. "next"
  284. ],
  285. "CarsGoToStart": [
  286. "next"
  287. ],
  288. "StepOnGas": [
  289. "next"
  290. ],
  291. "IsRaceFinished": [
  292. "next"
  293. ],
  294. "AwardCeremony": [
  295. "next"
  296. ]
  297. },
  298. "CarsGoToStart": {
  299. "Step": [
  300. "next"
  301. ],
  302. "StartEngines": [
  303. "next"
  304. ],
  305. "CarsGoToStart": [
  306. "next"
  307. ],
  308. "StepOnGas": [
  309. "next"
  310. ],
  311. "IsRaceFinished": [
  312. "next"
  313. ],
  314. "AwardCeremony": [
  315. "next"
  316. ]
  317. },
  318. "StepOnGas": {
  319. "Step": [
  320. "next"
  321. ],
  322. "StartEngines": [
  323. "next"
  324. ],
  325. "CarsGoToStart": [
  326. "next"
  327. ],
  328. "StepOnGas": [
  329. "next"
  330. ],
  331. "IsRaceFinished": [
  332. "next"
  333. ],
  334. "AwardCeremony": [
  335. "next"
  336. ]
  337. },
  338. "IsRaceFinished": {
  339. "StepOnGas": [
  340. "notFinished",
  341. "next"
  342. ],
  343. "Step": [
  344. "next"
  345. ],
  346. "StartEngines": [
  347. "next"
  348. ],
  349. "CarsGoToStart": [
  350. "next"
  351. ],
  352. "IsRaceFinished": [
  353. "next"
  354. ],
  355. "AwardCeremony": [
  356. "next"
  357. ]
  358. },
  359. "AwardCeremony": {
  360. "Step": [
  361. "next"
  362. ],
  363. "StartEngines": [
  364. "next"
  365. ],
  366. "CarsGoToStart": [
  367. "next"
  368. ],
  369. "StepOnGas": [
  370. "next"
  371. ],
  372. "IsRaceFinished": [
  373. "next"
  374. ],
  375. "AwardCeremony": [
  376. "next"
  377. ]
  378. }
  379. },
  380. "connectorTypes": {
  381. "next": "visual",
  382. "notFinished": "visual"
  383. },
  384. "types2parentTypes": {
  385. "Step": [
  386. "Positionable"
  387. ],
  388. "next": [],
  389. "StartEngines": [
  390. "Step",
  391. "Positionable"
  392. ],
  393. "CarsGoToStart": [
  394. "Step",
  395. "Positionable"
  396. ],
  397. "Positionable": [],
  398. "StepOnGas": [
  399. "Step",
  400. "Positionable"
  401. ],
  402. "IsRaceFinished": [
  403. "Step",
  404. "Positionable"
  405. ],
  406. "AwardCeremony": [
  407. "Step",
  408. "Positionable"
  409. ],
  410. "notFinished": []
  411. }
  412. }