EntityRelationship.defaultIcons.metamodel 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604
  1. {
  2. "types": {
  3. "EntityIcon": [
  4. {
  5. "name": "typename",
  6. "type": "string",
  7. "default": "EntityIcon"
  8. },
  9. {
  10. "name": "position",
  11. "type": "list<double>",
  12. "default": [
  13. 249,
  14. 125
  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": ""
  34. },
  35. {
  36. "name": "parser",
  37. "type": "code",
  38. "default": ""
  39. },
  40. {
  41. "name": "$contents",
  42. "type": "map<string,*>",
  43. "default": {
  44. "nodes": {
  45. "2": {
  46. "width": {
  47. "type": "double",
  48. "value": 200
  49. },
  50. "height": {
  51. "type": "double",
  52. "value": 125
  53. },
  54. "cornerRadius": {
  55. "type": "double",
  56. "value": 5
  57. },
  58. "style": {
  59. "type": "map<string,string>",
  60. "value": {
  61. "stroke": "#ff3000",
  62. "stroke-dasharray": "",
  63. "fill": "#ff3000",
  64. "fill-opacity": 0.25,
  65. "font-size": "20px",
  66. "stroke-width": 2,
  67. "arrow-start": "none",
  68. "arrow-end": "none"
  69. }
  70. },
  71. "mapper": {
  72. "type": "code",
  73. "value": ""
  74. },
  75. "parser": {
  76. "type": "code",
  77. "value": ""
  78. },
  79. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  80. "position": {
  81. "type": "list<double>",
  82. "value": [
  83. 2,
  84. -1
  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. "3": {
  100. "textContent": {
  101. "type": "string",
  102. "value": "<coded>"
  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": "({'textContent': getAttr('name')})\n\n\n\n\n\n\n\n"
  120. },
  121. "parser": {
  122. "type": "code",
  123. "value": ""
  124. },
  125. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  126. "position": {
  127. "type": "list<double>",
  128. "value": [
  129. 16,
  130. 3
  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. "4": {
  146. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  147. "position": {
  148. "type": "list<double>",
  149. "value": [
  150. 15.24899850809561,
  151. 3.9989985080956103
  152. ]
  153. },
  154. "orientation": {
  155. "type": "double",
  156. "value": 0
  157. },
  158. "scale": {
  159. "type": "list<double>",
  160. "value": [
  161. 1,
  162. 1
  163. ]
  164. },
  165. "link-style": {
  166. "type": "map<string,string>",
  167. "value": {
  168. "stroke": "#00ffff",
  169. "stroke-dasharray": "",
  170. "stroke-opacity": 0.1,
  171. "arrow-start": "none",
  172. "arrow-end": "classic-wide-long"
  173. }
  174. }
  175. },
  176. "16": {
  177. "textContent": {
  178. "type": "string",
  179. "value": "T..."
  180. },
  181. "style": {
  182. "type": "map<string,string>",
  183. "value": {
  184. "stroke": "#000000",
  185. "stroke-dasharray": "",
  186. "fill": "#ffffff",
  187. "fill-opacity": 0.75,
  188. "font-size": "13px",
  189. "stroke-width": 1,
  190. "arrow-start": "none",
  191. "arrow-end": "none"
  192. }
  193. },
  194. "mapper": {
  195. "type": "code",
  196. "value": "var filenames = getAttr('attributes').map(\n\t\t\t\tfunction(attr)\n\t\t\t\t{\n\t\t\t\t\treturn attr['name'];\n\t\t\t\t});\n({'textContent': filenames.join('\\n')})"
  197. },
  198. "parser": {
  199. "type": "code",
  200. "value": ""
  201. },
  202. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  203. "position": {
  204. "type": "list<double>",
  205. "value": [
  206. 7,
  207. 23
  208. ]
  209. },
  210. "orientation": {
  211. "type": "double",
  212. "value": 0
  213. },
  214. "scale": {
  215. "type": "list<double>",
  216. "value": [
  217. 1,
  218. 1
  219. ]
  220. }
  221. },
  222. "17": {
  223. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  224. "position": {
  225. "type": "list<double>",
  226. "value": [
  227. 9.49899850809561,
  228. 15.499000000000024
  229. ]
  230. },
  231. "orientation": {
  232. "type": "double",
  233. "value": 0
  234. },
  235. "scale": {
  236. "type": "list<double>",
  237. "value": [
  238. 1,
  239. 1
  240. ]
  241. },
  242. "link-style": {
  243. "type": "map<string,string>",
  244. "value": {
  245. "stroke": "#00ffff",
  246. "stroke-dasharray": "",
  247. "stroke-opacity": 0.1,
  248. "arrow-start": "none",
  249. "arrow-end": "classic-wide-long"
  250. }
  251. }
  252. }
  253. },
  254. "edges": [
  255. {
  256. "src": "2",
  257. "dest": "4"
  258. },
  259. {
  260. "src": "4",
  261. "dest": "3"
  262. },
  263. {
  264. "src": "2",
  265. "dest": "17"
  266. },
  267. {
  268. "src": "17",
  269. "dest": "16"
  270. }
  271. ]
  272. }
  273. },
  274. {
  275. "name": "$asuri",
  276. "type": "string",
  277. "default": "-1"
  278. }
  279. ],
  280. "RelationshipLink": [
  281. {
  282. "name": "link-style",
  283. "type": "map<string,string>",
  284. "default": {
  285. "stroke": "#0000ff",
  286. "stroke-dasharray": "",
  287. "stroke-opacity": 1,
  288. "stroke-width": 2,
  289. "arrow-start": "none",
  290. "arrow-end": "classic-wide-long"
  291. }
  292. },
  293. {
  294. "name": "typename",
  295. "type": "string",
  296. "default": "RelationshipLink"
  297. },
  298. {
  299. "name": "position",
  300. "type": "list<double>",
  301. "default": [
  302. 250,
  303. 403
  304. ]
  305. },
  306. {
  307. "name": "orientation",
  308. "type": "double",
  309. "default": 0
  310. },
  311. {
  312. "name": "scale",
  313. "type": "list<double>",
  314. "default": [
  315. 1,
  316. 1
  317. ]
  318. },
  319. {
  320. "name": "mapper",
  321. "type": "code",
  322. "default": ""
  323. },
  324. {
  325. "name": "parser",
  326. "type": "code",
  327. "default": ""
  328. },
  329. {
  330. "name": "$contents",
  331. "type": "map<string,*>",
  332. "default": {
  333. "nodes": {
  334. "14": {
  335. "textContent": {
  336. "type": "string",
  337. "value": "<coded>"
  338. },
  339. "style": {
  340. "type": "map<string,string>",
  341. "value": {
  342. "stroke": "#0000ff",
  343. "fill": "#000000",
  344. "fill-opacity": 0.75,
  345. "font-size": "20px"
  346. }
  347. },
  348. "mapper": {
  349. "type": "code",
  350. "value": "({'textContent':getAttr('name')})"
  351. },
  352. "parser": {
  353. "type": "code",
  354. "value": "({'name':getAttr('textContent')})"
  355. },
  356. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  357. "position": {
  358. "type": "list<double>",
  359. "value": [
  360. 2,
  361. -16
  362. ]
  363. },
  364. "orientation": {
  365. "type": "double",
  366. "value": 0
  367. },
  368. "scale": {
  369. "type": "list<double>",
  370. "value": [
  371. 1,
  372. 1
  373. ]
  374. }
  375. }
  376. },
  377. "edges": []
  378. }
  379. },
  380. {
  381. "name": "$asuri",
  382. "type": "string",
  383. "default": "-1"
  384. },
  385. {
  386. "name": "$segments",
  387. "type": "map<string,list<string>>",
  388. "default": {}
  389. }
  390. ],
  391. "GlobalConstraintIcon": [
  392. {
  393. "name": "typename",
  394. "type": "string",
  395. "default": "GlobalConstraintIcon"
  396. },
  397. {
  398. "name": "position",
  399. "type": "list<double>",
  400. "default": [
  401. 549,
  402. 149
  403. ]
  404. },
  405. {
  406. "name": "orientation",
  407. "type": "double",
  408. "default": 0
  409. },
  410. {
  411. "name": "scale",
  412. "type": "list<double>",
  413. "default": [
  414. 1,
  415. 1
  416. ]
  417. },
  418. {
  419. "name": "mapper",
  420. "type": "code",
  421. "default": ""
  422. },
  423. {
  424. "name": "parser",
  425. "type": "code",
  426. "default": ""
  427. },
  428. {
  429. "name": "$contents",
  430. "type": "map<string,*>",
  431. "default": {
  432. "nodes": {
  433. "9": {
  434. "textContent": {
  435. "type": "string",
  436. "value": "CONSTRAINT"
  437. },
  438. "style": {
  439. "type": "map<string,string>",
  440. "value": {
  441. "stroke": "#00ff70",
  442. "stroke-dasharray": "",
  443. "fill": "#00ff70",
  444. "fill-opacity": 0.75,
  445. "font-size": "20px",
  446. "stroke-width": 1,
  447. "arrow-start": "none",
  448. "arrow-end": "none"
  449. }
  450. },
  451. "mapper": {
  452. "type": "code",
  453. "value": "({'textContent' : 'check '+getAttr('name')+' on '+getAttr('event')})\n"
  454. },
  455. "parser": {
  456. "type": "code",
  457. "value": ""
  458. },
  459. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  460. "position": {
  461. "type": "list<double>",
  462. "value": [
  463. -1,
  464. 0
  465. ]
  466. },
  467. "orientation": {
  468. "type": "double",
  469. "value": 0
  470. },
  471. "scale": {
  472. "type": "list<double>",
  473. "value": [
  474. 1,
  475. 1
  476. ]
  477. }
  478. }
  479. },
  480. "edges": []
  481. }
  482. },
  483. {
  484. "name": "$asuri",
  485. "type": "string",
  486. "default": "-1"
  487. }
  488. ],
  489. "GlobalActionIcon": [
  490. {
  491. "name": "typename",
  492. "type": "string",
  493. "default": "GlobalActionIcon"
  494. },
  495. {
  496. "name": "position",
  497. "type": "list<double>",
  498. "default": [
  499. 801,
  500. 175
  501. ]
  502. },
  503. {
  504. "name": "orientation",
  505. "type": "double",
  506. "default": 0
  507. },
  508. {
  509. "name": "scale",
  510. "type": "list<double>",
  511. "default": [
  512. 1,
  513. 1
  514. ]
  515. },
  516. {
  517. "name": "mapper",
  518. "type": "code",
  519. "default": ""
  520. },
  521. {
  522. "name": "parser",
  523. "type": "code",
  524. "default": ""
  525. },
  526. {
  527. "name": "$contents",
  528. "type": "map<string,*>",
  529. "default": {
  530. "nodes": {
  531. "12": {
  532. "textContent": {
  533. "type": "string",
  534. "value": "ACTION"
  535. },
  536. "style": {
  537. "type": "map<string,string>",
  538. "value": {
  539. "stroke": "#af00ff",
  540. "stroke-dasharray": "",
  541. "fill": "#af00ff",
  542. "fill-opacity": 0.75,
  543. "font-size": "20px",
  544. "stroke-width": 1,
  545. "arrow-start": "none",
  546. "arrow-end": "none"
  547. }
  548. },
  549. "mapper": {
  550. "type": "code",
  551. "value": "({'textContent' : 'do '+getAttr('name')+' on '+getAttr('event')})\n"
  552. },
  553. "parser": {
  554. "type": "code",
  555. "value": ""
  556. },
  557. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  558. "position": {
  559. "type": "list<double>",
  560. "value": [
  561. 1,
  562. 0
  563. ]
  564. },
  565. "orientation": {
  566. "type": "double",
  567. "value": 0
  568. },
  569. "scale": {
  570. "type": "list<double>",
  571. "value": [
  572. 1,
  573. 1
  574. ]
  575. }
  576. }
  577. },
  578. "edges": []
  579. }
  580. },
  581. {
  582. "name": "$asuri",
  583. "type": "string",
  584. "default": "-1"
  585. }
  586. ]
  587. },
  588. "constraints": [],
  589. "actions": [],
  590. "cardinalities": {
  591. "EntityIcon": [],
  592. "RelationshipLink": [],
  593. "GlobalConstraintIcon": [],
  594. "GlobalActionIcon": []
  595. },
  596. "legalConnections": {},
  597. "connectorTypes": {},
  598. "types2parentTypes": {
  599. "EntityIcon": [],
  600. "RelationshipLink": [],
  601. "GlobalConstraintIcon": [],
  602. "GlobalActionIcon": []
  603. }
  604. }