TrainDoor.defaultIcons.metamodel 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501
  1. {
  2. "types": {
  3. "OpenIcon": [
  4. {
  5. "name": "typename",
  6. "type": "string",
  7. "default": "OpenIcon"
  8. },
  9. {
  10. "name": "position",
  11. "type": "list<double>",
  12. "default": [
  13. 382,
  14. 374
  15. ]
  16. },
  17. {
  18. "name": "orientation",
  19. "type": "double",
  20. "default": 0
  21. },
  22. {
  23. "name": "scale",
  24. "type": "list<double>",
  25. "default": [
  26. 1,
  27. 1
  28. ]
  29. },
  30. {
  31. "name": "mapper",
  32. "type": "code",
  33. "default": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  34. },
  35. {
  36. "name": "parser",
  37. "type": "code",
  38. "default": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  39. },
  40. {
  41. "name": "$contents",
  42. "type": "map<string,*>",
  43. "default": {
  44. "nodes": {
  45. "3": {
  46. "src": {
  47. "type": "string",
  48. "value": "/Formalisms/TrainDoor/open.svg"
  49. },
  50. "width": {
  51. "type": "double",
  52. "value": 75
  53. },
  54. "height": {
  55. "type": "double",
  56. "value": 48
  57. },
  58. "style": {
  59. "type": "map<string,string>",
  60. "value": {
  61. "stroke": "#000000",
  62. "stroke-dasharray": "",
  63. "fill": "#ffffff",
  64. "fill-opacity": 0.75,
  65. "font-size": "20px",
  66. "stroke-width": 1,
  67. "arrow-start": "none",
  68. "arrow-end": "none"
  69. }
  70. },
  71. "mapper": {
  72. "type": "code",
  73. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  74. },
  75. "parser": {
  76. "type": "code",
  77. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  78. },
  79. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Image",
  80. "position": {
  81. "type": "list<double>",
  82. "value": [
  83. 1,
  84. 2
  85. ]
  86. },
  87. "orientation": {
  88. "type": "double",
  89. "value": 0
  90. },
  91. "scale": {
  92. "type": "list<double>",
  93. "value": [
  94. 1,
  95. 1
  96. ]
  97. }
  98. },
  99. "11": {
  100. "textContent": {
  101. "type": "string",
  102. "value": "T..."
  103. },
  104. "style": {
  105. "type": "map<string,string>",
  106. "value": {
  107. "stroke": "#000000",
  108. "stroke-dasharray": "",
  109. "fill": "#ffffff",
  110. "fill-opacity": 0.75,
  111. "font-size": "20px",
  112. "stroke-width": 1,
  113. "arrow-start": "none",
  114. "arrow-end": "none"
  115. }
  116. },
  117. "mapper": {
  118. "type": "code",
  119. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */\n({\"textContent\": getAttr(\"name\")})"
  120. },
  121. "parser": {
  122. "type": "code",
  123. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  124. },
  125. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  126. "position": {
  127. "type": "list<double>",
  128. "value": [
  129. 9,
  130. 58
  131. ]
  132. },
  133. "orientation": {
  134. "type": "double",
  135. "value": 0
  136. },
  137. "scale": {
  138. "type": "list<double>",
  139. "value": [
  140. 1,
  141. 1
  142. ]
  143. }
  144. }
  145. },
  146. "edges": []
  147. }
  148. },
  149. {
  150. "name": "$asuri",
  151. "type": "string",
  152. "default": "-1"
  153. }
  154. ],
  155. "ClosedIcon": [
  156. {
  157. "name": "typename",
  158. "type": "string",
  159. "default": "ClosedIcon"
  160. },
  161. {
  162. "name": "position",
  163. "type": "list<double>",
  164. "default": [
  165. 605,
  166. 356
  167. ]
  168. },
  169. {
  170. "name": "orientation",
  171. "type": "double",
  172. "default": 0
  173. },
  174. {
  175. "name": "scale",
  176. "type": "list<double>",
  177. "default": [
  178. 1,
  179. 1
  180. ]
  181. },
  182. {
  183. "name": "mapper",
  184. "type": "code",
  185. "default": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  186. },
  187. {
  188. "name": "parser",
  189. "type": "code",
  190. "default": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  191. },
  192. {
  193. "name": "$contents",
  194. "type": "map<string,*>",
  195. "default": {
  196. "nodes": {
  197. "5": {
  198. "src": {
  199. "type": "string",
  200. "value": "/Formalisms/TrainDoor/closed.svg"
  201. },
  202. "width": {
  203. "type": "double",
  204. "value": 48
  205. },
  206. "height": {
  207. "type": "double",
  208. "value": 48
  209. },
  210. "style": {
  211. "type": "map<string,string>",
  212. "value": {
  213. "stroke": "#000000",
  214. "stroke-dasharray": "",
  215. "fill": "#ffffff",
  216. "fill-opacity": 0.75,
  217. "font-size": "20px",
  218. "stroke-width": 1,
  219. "arrow-start": "none",
  220. "arrow-end": "none"
  221. }
  222. },
  223. "mapper": {
  224. "type": "code",
  225. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  226. },
  227. "parser": {
  228. "type": "code",
  229. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  230. },
  231. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Image",
  232. "position": {
  233. "type": "list<double>",
  234. "value": [
  235. 4,
  236. 10
  237. ]
  238. },
  239. "orientation": {
  240. "type": "double",
  241. "value": 0
  242. },
  243. "scale": {
  244. "type": "list<double>",
  245. "value": [
  246. 1,
  247. 1
  248. ]
  249. }
  250. },
  251. "9": {
  252. "textContent": {
  253. "type": "string",
  254. "value": "T..."
  255. },
  256. "style": {
  257. "type": "map<string,string>",
  258. "value": {
  259. "stroke": "#000000",
  260. "stroke-dasharray": "",
  261. "fill": "#ffffff",
  262. "fill-opacity": 0.75,
  263. "font-size": "20px",
  264. "stroke-width": 1,
  265. "arrow-start": "none",
  266. "arrow-end": "none"
  267. }
  268. },
  269. "mapper": {
  270. "type": "code",
  271. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */\n({\"textContent\": getAttr(\"name\")})"
  272. },
  273. "parser": {
  274. "type": "code",
  275. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  276. },
  277. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  278. "position": {
  279. "type": "list<double>",
  280. "value": [
  281. 12,
  282. 64
  283. ]
  284. },
  285. "orientation": {
  286. "type": "double",
  287. "value": 0
  288. },
  289. "scale": {
  290. "type": "list<double>",
  291. "value": [
  292. 1,
  293. 1
  294. ]
  295. }
  296. }
  297. },
  298. "edges": []
  299. }
  300. },
  301. {
  302. "name": "$asuri",
  303. "type": "string",
  304. "default": "-1"
  305. }
  306. ],
  307. "TransitionLink": [
  308. {
  309. "name": "link-style",
  310. "type": "map<string,string>",
  311. "default": {
  312. "stroke": "#000000",
  313. "stroke-dasharray": "",
  314. "stroke-opacity": 1,
  315. "stroke-width": 2
  316. }
  317. },
  318. {
  319. "name": "arrowHead",
  320. "type": "ENUM(circle-black,circle-black-large,circle-white,circle-white-large,diamond-black,diamond-black-large,diamond-white,diamond-white-large,triangle-black,triangle-black-large,triangle-white,triangle-white-large,arrow-black,arrow-black-large,arrow-empty,arrow-empty-large,custom)",
  321. "default": "custom"
  322. },
  323. {
  324. "name": "arrowTail",
  325. "type": "ENUM(circle-black,circle-black-large,circle-white,circle-white-large,diamond-black,diamond-black-large,diamond-white,diamond-white-large,triangle-black,triangle-black-large,triangle-white,triangle-white-large,arrow-black,arrow-black-large,arrow-empty,arrow-empty-large,custom)",
  326. "default": "arrow-black"
  327. },
  328. {
  329. "name": "typename",
  330. "type": "string",
  331. "default": "TransitionLink"
  332. },
  333. {
  334. "name": "position",
  335. "type": "list<double>",
  336. "default": [
  337. 882,
  338. 366
  339. ]
  340. },
  341. {
  342. "name": "orientation",
  343. "type": "double",
  344. "default": 0
  345. },
  346. {
  347. "name": "scale",
  348. "type": "list<double>",
  349. "default": [
  350. 1,
  351. 1
  352. ]
  353. },
  354. {
  355. "name": "mapper",
  356. "type": "code",
  357. "default": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  358. },
  359. {
  360. "name": "parser",
  361. "type": "code",
  362. "default": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  363. },
  364. {
  365. "name": "$contents",
  366. "type": "map<string,*>",
  367. "default": {
  368. "nodes": {
  369. "7": {
  370. "textContent": {
  371. "type": "string",
  372. "value": "<coded>"
  373. },
  374. "style": {
  375. "type": "map<string,string>",
  376. "value": {
  377. "stroke": "#000000",
  378. "stroke-dasharray": "",
  379. "fill": "#ffffff",
  380. "fill-opacity": 0.75,
  381. "font-size": "20px",
  382. "stroke-width": 1,
  383. "arrow-start": "none",
  384. "arrow-end": "none"
  385. }
  386. },
  387. "mapper": {
  388. "type": "code",
  389. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */\n({'textContent': getAttr(\"event\") + \" [\" + getAttr(\"condition\") + \"]\"})"
  390. },
  391. "parser": {
  392. "type": "code",
  393. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  394. },
  395. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  396. "position": {
  397. "type": "list<double>",
  398. "value": [
  399. 0,
  400. 0
  401. ]
  402. },
  403. "orientation": {
  404. "type": "double",
  405. "value": 0
  406. },
  407. "scale": {
  408. "type": "list<double>",
  409. "value": [
  410. 1,
  411. 1
  412. ]
  413. },
  414. "$linkDecoratorInfo": {
  415. "type": "map<string,double>",
  416. "value": {
  417. "xratio": 0.18404907975460122,
  418. "yoffset": -26.5
  419. }
  420. }
  421. },
  422. "267": {
  423. "segments": {
  424. "type": "string",
  425. "value": "m0,0 l10,4 l-10,4 l3,-4 z"
  426. },
  427. "style": {
  428. "type": "map<string,string>",
  429. "value": {
  430. "stroke": "#000000",
  431. "fill": "#000000",
  432. "opacity": 1,
  433. "stroke-width": 1
  434. }
  435. },
  436. "mapper": {
  437. "type": "code",
  438. "value": ""
  439. },
  440. "parser": {
  441. "type": "code",
  442. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  443. },
  444. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  445. "position": {
  446. "type": "list<double>",
  447. "value": [
  448. 0,
  449. 0
  450. ]
  451. },
  452. "orientation": {
  453. "type": "double",
  454. "value": 0
  455. },
  456. "scale": {
  457. "type": "list<double>",
  458. "value": [
  459. 1,
  460. 1
  461. ]
  462. },
  463. "$linkDecoratorInfo": {
  464. "type": "map<string,double>",
  465. "value": {
  466. "xratio": 1,
  467. "yoffset": -4
  468. }
  469. }
  470. }
  471. },
  472. "edges": []
  473. }
  474. },
  475. {
  476. "name": "$asuri",
  477. "type": "string",
  478. "default": "-1"
  479. },
  480. {
  481. "name": "$segments",
  482. "type": "map<string,list<string>>",
  483. "default": {}
  484. }
  485. ]
  486. },
  487. "constraints": [],
  488. "actions": [],
  489. "cardinalities": {
  490. "OpenIcon": [],
  491. "ClosedIcon": [],
  492. "TransitionLink": []
  493. },
  494. "legalConnections": {},
  495. "connectorTypes": {},
  496. "types2parentTypes": {
  497. "OpenIcon": [],
  498. "ClosedIcon": [],
  499. "TransitionLink": []
  500. }
  501. }