LCAMM.model 31 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051
  1. {
  2. "csm": {
  3. "nodes": {
  4. "0": {
  5. "typename": {
  6. "type": "string",
  7. "value": "ClassIcon"
  8. },
  9. "position": {
  10. "type": "list<double>",
  11. "value": [
  12. 348,
  13. 268
  14. ]
  15. },
  16. "orientation": {
  17. "type": "double",
  18. "value": 0
  19. },
  20. "scale": {
  21. "type": "list<double>",
  22. "value": [
  23. 1,
  24. 1
  25. ]
  26. },
  27. "mapper": {
  28. "type": "code",
  29. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  30. },
  31. "parser": {
  32. "type": "code",
  33. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  34. },
  35. "$contents": {
  36. "type": "map<string,*>",
  37. "value": {
  38. "nodes": {
  39. "96": {
  40. "width": {
  41. "type": "double",
  42. "value": 200
  43. },
  44. "height": {
  45. "type": "double",
  46. "value": 125
  47. },
  48. "cornerRadius": {
  49. "type": "double",
  50. "value": 0
  51. },
  52. "style": {
  53. "type": "map<string,string>",
  54. "value": {
  55. "stroke": "#000000",
  56. "stroke-dasharray": "",
  57. "fill": "#ffffff",
  58. "fill-opacity": 0.75,
  59. "stroke-width": 2
  60. }
  61. },
  62. "mapper": {
  63. "type": "code",
  64. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  65. },
  66. "parser": {
  67. "type": "code",
  68. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  69. },
  70. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  71. "position": {
  72. "type": "list<double>",
  73. "value": [
  74. 4,
  75. 3
  76. ]
  77. },
  78. "orientation": {
  79. "type": "double",
  80. "value": 0
  81. },
  82. "scale": {
  83. "type": "list<double>",
  84. "value": [
  85. 1,
  86. 1
  87. ]
  88. }
  89. },
  90. "97": {
  91. "segments": {
  92. "type": "string",
  93. "value": "m0,0l197,0"
  94. },
  95. "style": {
  96. "type": "map<string,string>",
  97. "value": {
  98. "stroke": "#000000",
  99. "stroke-dasharray": "",
  100. "fill": "#ffffff",
  101. "fill-opacity": 0.75,
  102. "font-size": "20px",
  103. "stroke-width": 2,
  104. "arrow-start": "none",
  105. "arrow-end": "none"
  106. }
  107. },
  108. "mapper": {
  109. "type": "code",
  110. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  111. },
  112. "parser": {
  113. "type": "code",
  114. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  115. },
  116. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  117. "position": {
  118. "type": "list<double>",
  119. "value": [
  120. 6,
  121. 36
  122. ]
  123. },
  124. "orientation": {
  125. "type": "double",
  126. "value": 0
  127. },
  128. "scale": {
  129. "type": "list<double>",
  130. "value": [
  131. 1,
  132. 1
  133. ]
  134. }
  135. },
  136. "98": {
  137. "textContent": {
  138. "type": "string",
  139. "value": "Node"
  140. },
  141. "style": {
  142. "type": "map<string,string>",
  143. "value": {
  144. "font-size": "18px",
  145. "font-style": "normal",
  146. "font-weight": "bold",
  147. "line-height": "100%",
  148. "letter-spacing": "0px",
  149. "word-spacing": "0px",
  150. "fill": "#000000",
  151. "fill-opacity": "1",
  152. "stroke": "none"
  153. }
  154. },
  155. "mapper": {
  156. "type": "code",
  157. "value": "var style = \n{\n \"font-size\": \"18px\",\n \"font-style\": \"normal\",\n \"font-weight\": \"bold\",\n \"line-height\": \"100%\",\n \"letter-spacing\": \"0px\",\n \"word-spacing\": \"0px\",\n \"fill\": \"#000000\",\n \"fill-opacity\": \"1\",\n \"stroke\": \"none\",\n \"font-style\": (getAttr('abstract') ? 'italic' : 'normal')\n};\n\n({'textContent': getAttr('name'), 'style':style})\n\n\n"
  158. },
  159. "parser": {
  160. "type": "code",
  161. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */\n({'name': getAttr('textContent')})"
  162. },
  163. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  164. "position": {
  165. "type": "list<double>",
  166. "value": [
  167. 8,
  168. 8
  169. ]
  170. },
  171. "orientation": {
  172. "type": "double",
  173. "value": 0
  174. },
  175. "scale": {
  176. "type": "list<double>",
  177. "value": [
  178. 1,
  179. 1
  180. ]
  181. }
  182. },
  183. "99": {
  184. "textContent": {
  185. "type": "string",
  186. "value": "+ id : string\n+ input : string = false\n+ highlight : string = no"
  187. },
  188. "style": {
  189. "type": "map<string,string>",
  190. "value": {
  191. "font-size": "14px",
  192. "font-style": "normal",
  193. "font-weight": "bold",
  194. "line-height": "100%",
  195. "letter-spacing": "0px",
  196. "word-spacing": "0px",
  197. "fill": "#000000",
  198. "fill-opacity": "1",
  199. "stroke": "none"
  200. }
  201. },
  202. "mapper": {
  203. "type": "code",
  204. "value": "var filenames = getAttr('attributes').map(\n function(attr)\n {\n var s = '+ '+attr['name'] + ' : ' + attr['type'];\n if (attr['default'])\n s += ' = ' + attr['default'];\n return s;\n });\n\n({'textContent': filenames.join('\\n')})"
  205. },
  206. "parser": {
  207. "type": "code",
  208. "value": ""
  209. },
  210. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  211. "position": {
  212. "type": "list<double>",
  213. "value": [
  214. 10,
  215. 41
  216. ]
  217. },
  218. "orientation": {
  219. "type": "double",
  220. "value": 0
  221. },
  222. "scale": {
  223. "type": "list<double>",
  224. "value": [
  225. 1,
  226. 1
  227. ]
  228. }
  229. },
  230. "100": {
  231. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  232. "position": {
  233. "type": "list<double>",
  234. "value": [
  235. 68.5,
  236. 36.5
  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. "link-style": {
  251. "type": "map<string,string>",
  252. "value": {
  253. "stroke": "#00ffff",
  254. "stroke-dasharray": "",
  255. "stroke-opacity": 0.1,
  256. "stroke-width": 1
  257. }
  258. }
  259. },
  260. "101": {
  261. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  262. "position": {
  263. "type": "list<double>",
  264. "value": [
  265. 12.5,
  266. 27
  267. ]
  268. },
  269. "orientation": {
  270. "type": "double",
  271. "value": 0
  272. },
  273. "scale": {
  274. "type": "list<double>",
  275. "value": [
  276. 1,
  277. 1
  278. ]
  279. },
  280. "link-style": {
  281. "type": "map<string,string>",
  282. "value": {
  283. "stroke": "#00ffff",
  284. "stroke-dasharray": "",
  285. "stroke-opacity": 0.1,
  286. "stroke-width": 1
  287. }
  288. }
  289. },
  290. "102": {
  291. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  292. "position": {
  293. "type": "list<double>",
  294. "value": [
  295. 53.75,
  296. 20
  297. ]
  298. },
  299. "orientation": {
  300. "type": "double",
  301. "value": 0
  302. },
  303. "scale": {
  304. "type": "list<double>",
  305. "value": [
  306. 1,
  307. 1
  308. ]
  309. },
  310. "link-style": {
  311. "type": "map<string,string>",
  312. "value": {
  313. "stroke": "#00ffff",
  314. "stroke-dasharray": "",
  315. "stroke-opacity": 0.1,
  316. "stroke-width": 1
  317. }
  318. }
  319. }
  320. },
  321. "edges": [
  322. {
  323. "src": "96",
  324. "dest": "100"
  325. },
  326. {
  327. "src": "100",
  328. "dest": "98"
  329. },
  330. {
  331. "src": "96",
  332. "dest": "101"
  333. },
  334. {
  335. "src": "101",
  336. "dest": "99"
  337. },
  338. {
  339. "src": "96",
  340. "dest": "102"
  341. },
  342. {
  343. "src": "102",
  344. "dest": "97"
  345. }
  346. ]
  347. }
  348. },
  349. "$asuri": {
  350. "type": "string",
  351. "value": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Class/0.instance"
  352. },
  353. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/ClassIcon"
  354. },
  355. "1": {
  356. "link-style": {
  357. "type": "map<string,string>",
  358. "value": {
  359. "stroke": "#000000",
  360. "stroke-dasharray": "",
  361. "stroke-opacity": 1,
  362. "stroke-width": 2
  363. }
  364. },
  365. "arrowHead": {
  366. "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)",
  367. "value": "custom"
  368. },
  369. "arrowTail": {
  370. "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)",
  371. "value": "arrow-black"
  372. },
  373. "typename": {
  374. "type": "string",
  375. "value": "AssociationLink"
  376. },
  377. "position": {
  378. "type": "list<double>",
  379. "value": [
  380. 666.8428974446585,
  381. 254.4440258950984
  382. ]
  383. },
  384. "orientation": {
  385. "type": "double",
  386. "value": 0
  387. },
  388. "scale": {
  389. "type": "list<double>",
  390. "value": [
  391. 1,
  392. 1
  393. ]
  394. },
  395. "mapper": {
  396. "type": "code",
  397. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  398. },
  399. "parser": {
  400. "type": "code",
  401. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  402. },
  403. "$contents": {
  404. "type": "map<string,*>",
  405. "value": {
  406. "nodes": {
  407. "71": {
  408. "textContent": {
  409. "type": "string",
  410. "value": "parent"
  411. },
  412. "style": {
  413. "type": "map<string,string>",
  414. "value": {
  415. "font-size": "20px",
  416. "font-style": "normal",
  417. "font-weight": "normal",
  418. "line-height": "100%",
  419. "letter-spacing": "0px",
  420. "word-spacing": "0px",
  421. "fill": "#000000",
  422. "fill-opacity": "1",
  423. "stroke": "none",
  424. "font-family": "Sans"
  425. }
  426. },
  427. "mapper": {
  428. "type": "code",
  429. "value": "({'textContent':getAttr('name')})"
  430. },
  431. "parser": {
  432. "type": "code",
  433. "value": "({'name':getAttr('textContent')})"
  434. },
  435. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  436. "position": {
  437. "type": "list<double>",
  438. "value": [
  439. "0;-26.76125419853895,0%",
  440. "0;50.91486156954403,0%"
  441. ]
  442. },
  443. "orientation": {
  444. "type": "double",
  445. "value": "0;-91.974934010882"
  446. },
  447. "scale": {
  448. "type": "list<double>",
  449. "value": [
  450. 1,
  451. 1
  452. ]
  453. },
  454. "$linkDecoratorInfo": {
  455. "type": "map<string,double>",
  456. "value": {
  457. "xratio": 0.3803680981595092,
  458. "yoffset": -28.5
  459. }
  460. }
  461. },
  462. "74": {
  463. "textContent": {
  464. "type": "string",
  465. "value": "*"
  466. },
  467. "style": {
  468. "type": "map<string,string>",
  469. "value": {
  470. "font-size": "20px",
  471. "font-style": "normal",
  472. "font-weight": "normal",
  473. "line-height": "100%",
  474. "letter-spacing": "0px",
  475. "word-spacing": "0px",
  476. "fill": "#000000",
  477. "fill-opacity": "1",
  478. "stroke": "none",
  479. "font-family": "Sans"
  480. }
  481. },
  482. "mapper": {
  483. "type": "code",
  484. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */\nvar clazz = getNeighbors('<'),\n mult = '';\nif (clazz.length > 0) {\n clazz = clazz[0];\n var cardinalities = getAttr('cardinalities', clazz), card;\n for (i = 0; i < cardinalities.length; i++) {\n if (cardinalities[i]['type'] == getAttr('name') && cardinalities[i]['dir'] == 'out') {\n card = cardinalities[i];\n break;\n }\n }\n if (card) {\n var min = card['min'],\n max = card['max'];\n if (min == '')\n min = '0';\n if (max == '' || max == 'Infinity')\n max = '*';\n if (min == '0' && max == '*')\n mult = '*';\n else if (min == max)\n mult = max;\n else mult = min + '..' + max;\n }\n}\nif (mult == '')\n mult = '*';\n({'textContent': mult})"
  485. },
  486. "parser": {
  487. "type": "code",
  488. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  489. },
  490. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  491. "position": {
  492. "type": "list<double>",
  493. "value": [
  494. "0;-106.34289744465855,6.123031769111886e-15%",
  495. "0;20.55530842588925,100%"
  496. ]
  497. },
  498. "orientation": {
  499. "type": "double",
  500. "value": "0;90"
  501. },
  502. "scale": {
  503. "type": "list<double>",
  504. "value": [
  505. 1,
  506. 1
  507. ]
  508. },
  509. "$linkDecoratorInfo": {
  510. "type": "map<string,double>",
  511. "value": {
  512. "xratio": 1,
  513. "yoffset": -33.5
  514. }
  515. }
  516. },
  517. "77": {
  518. "textContent": {
  519. "type": "string",
  520. "value": "*"
  521. },
  522. "style": {
  523. "type": "map<string,string>",
  524. "value": {
  525. "font-size": "20px",
  526. "font-style": "normal",
  527. "font-weight": "normal",
  528. "line-height": "100%",
  529. "letter-spacing": "0px",
  530. "word-spacing": "0px",
  531. "fill": "#000000",
  532. "fill-opacity": "1",
  533. "stroke": "none",
  534. "font-family": "Sans"
  535. }
  536. },
  537. "mapper": {
  538. "type": "code",
  539. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */\nvar clazz = getNeighbors('>'),\n mult = '';\nif (clazz.length > 0) {\n clazz = clazz[0];\n var cardinalities = getAttr('cardinalities', clazz), card;\n for (i = 0; i < cardinalities.length; i++) {\n if (cardinalities[i]['type'] == getAttr('name') && cardinalities[i]['dir'] == 'in') {\n card = cardinalities[i];\n break;\n }\n }\n if (card) {\n var min = card['min'],\n max = card['max'];\n if (min == '')\n min = '0';\n if (max == '' || max == 'Infinity')\n max = '*';\n if (min == '0' && max == '*')\n mult = '*';\n else if (min == max)\n mult = max;\n else mult = min + '..' + max;\n }\n}\nif (mult == '')\n mult = '*';\n({'textContent': mult})"
  540. },
  541. "parser": {
  542. "type": "code",
  543. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  544. },
  545. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  546. "position": {
  547. "type": "list<double>",
  548. "value": [
  549. "0;-130.8206690113601,0%",
  550. "0;28.14438166484274,0%"
  551. ]
  552. },
  553. "orientation": {
  554. "type": "double",
  555. "value": "0;0.39243070934087027"
  556. },
  557. "scale": {
  558. "type": "list<double>",
  559. "value": [
  560. 1,
  561. 1
  562. ]
  563. },
  564. "$linkDecoratorInfo": {
  565. "type": "map<string,double>",
  566. "value": {
  567. "xratio": 0.03067484662576687,
  568. "yoffset": -33.5
  569. }
  570. }
  571. },
  572. "140": {
  573. "segments": {
  574. "type": "string",
  575. "value": "m0,0 l20,8 l-20,8"
  576. },
  577. "style": {
  578. "type": "map<string,string>",
  579. "value": {
  580. "stroke": "#000000",
  581. "fill": "#000000",
  582. "fill-opacity": 0,
  583. "stroke-width": 1,
  584. "opacity": 1
  585. }
  586. },
  587. "mapper": {
  588. "type": "code",
  589. "value": ""
  590. },
  591. "parser": {
  592. "type": "code",
  593. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  594. },
  595. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  596. "position": {
  597. "type": "list<double>",
  598. "value": [
  599. "0;-131.84289744465855,6.123031769111886e-15%",
  600. "0;20.55530842588925,100%"
  601. ]
  602. },
  603. "orientation": {
  604. "type": "double",
  605. "value": "0;90"
  606. },
  607. "scale": {
  608. "type": "list<double>",
  609. "value": [
  610. 1,
  611. 1
  612. ]
  613. },
  614. "$linkDecoratorInfo": {
  615. "type": "map<string,double>",
  616. "value": {
  617. "xratio": 1,
  618. "yoffset": -8
  619. }
  620. }
  621. }
  622. },
  623. "edges": []
  624. }
  625. },
  626. "$asuri": {
  627. "type": "string",
  628. "value": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Association/1.instance"
  629. },
  630. "$segments": {
  631. "type": "map<string,list<string>>",
  632. "value": {
  633. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/ClassIcon/0.instance--/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/AssociationLink/1.instance": "M523,316L669,317L666.8428974446585,254.4440258950984",
  634. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/AssociationLink/1.instance--/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/ClassIcon/0.instance": "M666.8428974446585,254.4440258950984L666,230L527,230L527,274.99933432098766"
  635. }
  636. },
  637. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/AssociationLink"
  638. },
  639. "2": {
  640. "link-style": {
  641. "type": "map<string,string>",
  642. "value": {
  643. "stroke": "#000000",
  644. "stroke-dasharray": "",
  645. "stroke-opacity": 1,
  646. "stroke-width": 2
  647. }
  648. },
  649. "arrowHead": {
  650. "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)",
  651. "value": "custom"
  652. },
  653. "arrowTail": {
  654. "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)",
  655. "value": "arrow-black"
  656. },
  657. "typename": {
  658. "type": "string",
  659. "value": "AssociationLink"
  660. },
  661. "position": {
  662. "type": "list<double>",
  663. "value": [
  664. 628.004920760897,
  665. 422.15857394409846
  666. ]
  667. },
  668. "orientation": {
  669. "type": "double",
  670. "value": 0
  671. },
  672. "scale": {
  673. "type": "list<double>",
  674. "value": [
  675. 1,
  676. 1
  677. ]
  678. },
  679. "mapper": {
  680. "type": "code",
  681. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  682. },
  683. "parser": {
  684. "type": "code",
  685. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  686. },
  687. "$contents": {
  688. "type": "map<string,*>",
  689. "value": {
  690. "nodes": {
  691. "71": {
  692. "textContent": {
  693. "type": "string",
  694. "value": "ancestor"
  695. },
  696. "style": {
  697. "type": "map<string,string>",
  698. "value": {
  699. "font-size": "20px",
  700. "font-style": "normal",
  701. "font-weight": "normal",
  702. "line-height": "100%",
  703. "letter-spacing": "0px",
  704. "word-spacing": "0px",
  705. "fill": "#000000",
  706. "fill-opacity": "1",
  707. "stroke": "none",
  708. "font-family": "Sans"
  709. }
  710. },
  711. "mapper": {
  712. "type": "code",
  713. "value": "({'textContent':getAttr('name')})"
  714. },
  715. "parser": {
  716. "type": "code",
  717. "value": "({'name':getAttr('textContent')})"
  718. },
  719. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  720. "position": {
  721. "type": "list<double>",
  722. "value": [
  723. "0;31.07904567132107,0%",
  724. "0;-34.99960605016378,0%"
  725. ]
  726. },
  727. "orientation": {
  728. "type": "double",
  729. "value": "0;85.91438322002512"
  730. },
  731. "scale": {
  732. "type": "list<double>",
  733. "value": [
  734. 1,
  735. 1
  736. ]
  737. },
  738. "$linkDecoratorInfo": {
  739. "type": "map<string,double>",
  740. "value": {
  741. "xratio": 0.3803680981595092,
  742. "yoffset": -28.5
  743. }
  744. }
  745. },
  746. "74": {
  747. "textContent": {
  748. "type": "string",
  749. "value": "*"
  750. },
  751. "style": {
  752. "type": "map<string,string>",
  753. "value": {
  754. "font-size": "20px",
  755. "font-style": "normal",
  756. "font-weight": "normal",
  757. "line-height": "100%",
  758. "letter-spacing": "0px",
  759. "word-spacing": "0px",
  760. "fill": "#000000",
  761. "fill-opacity": "1",
  762. "stroke": "none",
  763. "font-family": "Sans"
  764. }
  765. },
  766. "mapper": {
  767. "type": "code",
  768. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */\nvar clazz = getNeighbors('<'),\n mult = '';\nif (clazz.length > 0) {\n clazz = clazz[0];\n var cardinalities = getAttr('cardinalities', clazz), card;\n for (i = 0; i < cardinalities.length; i++) {\n if (cardinalities[i]['type'] == getAttr('name') && cardinalities[i]['dir'] == 'out') {\n card = cardinalities[i];\n break;\n }\n }\n if (card) {\n var min = card['min'],\n max = card['max'];\n if (min == '')\n min = '0';\n if (max == '' || max == 'Infinity')\n max = '*';\n if (min == '0' && max == '*')\n mult = '*';\n else if (min == max)\n mult = max;\n else mult = min + '..' + max;\n }\n}\nif (mult == '')\n mult = '*';\n({'textContent': mult})"
  769. },
  770. "parser": {
  771. "type": "code",
  772. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  773. },
  774. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  775. "position": {
  776. "type": "list<double>",
  777. "value": [
  778. "0;-154.50492076089694,1.615542552166338e-13%",
  779. "0;-33.15776459420806,-100%"
  780. ]
  781. },
  782. "orientation": {
  783. "type": "double",
  784. "value": "0;-89.99999999999991"
  785. },
  786. "scale": {
  787. "type": "list<double>",
  788. "value": [
  789. 1,
  790. 1
  791. ]
  792. },
  793. "$linkDecoratorInfo": {
  794. "type": "map<string,double>",
  795. "value": {
  796. "xratio": 1,
  797. "yoffset": -33.5
  798. }
  799. }
  800. },
  801. "77": {
  802. "textContent": {
  803. "type": "string",
  804. "value": "*"
  805. },
  806. "style": {
  807. "type": "map<string,string>",
  808. "value": {
  809. "font-size": "20px",
  810. "font-style": "normal",
  811. "font-weight": "normal",
  812. "line-height": "100%",
  813. "letter-spacing": "0px",
  814. "word-spacing": "0px",
  815. "fill": "#000000",
  816. "fill-opacity": "1",
  817. "stroke": "none",
  818. "font-family": "Sans"
  819. }
  820. },
  821. "mapper": {
  822. "type": "code",
  823. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */\nvar clazz = getNeighbors('>'),\n mult = '';\nif (clazz.length > 0) {\n clazz = clazz[0];\n var cardinalities = getAttr('cardinalities', clazz), card;\n for (i = 0; i < cardinalities.length; i++) {\n if (cardinalities[i]['type'] == getAttr('name') && cardinalities[i]['dir'] == 'in') {\n card = cardinalities[i];\n break;\n }\n }\n if (card) {\n var min = card['min'],\n max = card['max'];\n if (min == '')\n min = '0';\n if (max == '' || max == 'Infinity')\n max = '*';\n if (min == '0' && max == '*')\n mult = '*';\n else if (min == max)\n mult = max;\n else mult = min + '..' + max;\n }\n}\nif (mult == '')\n mult = '*';\n({'textContent': mult})"
  824. },
  825. "parser": {
  826. "type": "code",
  827. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  828. },
  829. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  830. "position": {
  831. "type": "list<double>",
  832. "value": [
  833. "0;-72.9012103088636,0%",
  834. "0;-104.53927381703681,0%"
  835. ]
  836. },
  837. "orientation": {
  838. "type": "double",
  839. "value": "0;0.6902771978650786"
  840. },
  841. "scale": {
  842. "type": "list<double>",
  843. "value": [
  844. 1,
  845. 1
  846. ]
  847. },
  848. "$linkDecoratorInfo": {
  849. "type": "map<string,double>",
  850. "value": {
  851. "xratio": 0.03067484662576687,
  852. "yoffset": -33.5
  853. }
  854. }
  855. },
  856. "140": {
  857. "segments": {
  858. "type": "string",
  859. "value": "m0,0 l20,8 l-20,8"
  860. },
  861. "style": {
  862. "type": "map<string,string>",
  863. "value": {
  864. "stroke": "#000000",
  865. "fill": "#000000",
  866. "fill-opacity": 0,
  867. "stroke-width": 1,
  868. "opacity": 1
  869. }
  870. },
  871. "mapper": {
  872. "type": "code",
  873. "value": ""
  874. },
  875. "parser": {
  876. "type": "code",
  877. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  878. },
  879. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  880. "position": {
  881. "type": "list<double>",
  882. "value": [
  883. "0;-129.00492076089694,1.615542552166338e-13%",
  884. "0;-33.157764594208004,-100%"
  885. ]
  886. },
  887. "orientation": {
  888. "type": "double",
  889. "value": "0;-89.99999999999991"
  890. },
  891. "scale": {
  892. "type": "list<double>",
  893. "value": [
  894. 1,
  895. 1
  896. ]
  897. },
  898. "$linkDecoratorInfo": {
  899. "type": "map<string,double>",
  900. "value": {
  901. "xratio": 1,
  902. "yoffset": -8
  903. }
  904. }
  905. }
  906. },
  907. "edges": []
  908. }
  909. },
  910. "$asuri": {
  911. "type": "string",
  912. "value": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Association/2.instance"
  913. },
  914. "$segments": {
  915. "type": "map<string,list<string>>",
  916. "value": {
  917. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/ClassIcon/0.instance--/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/AssociationLink/2.instance": "M545,351L628,352L633,422L628.004920760897,422.15857394409846",
  918. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/AssociationLink/2.instance--/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/ClassIcon/0.instance": "M628.004920760897,422.15857394409846L507,426L507.00000000000006,389.00080934989046"
  919. }
  920. },
  921. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/AssociationLink"
  922. }
  923. },
  924. "edges": [],
  925. "metamodels": [
  926. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons"
  927. ]
  928. },
  929. "asm": {
  930. "nodes": {
  931. "0": {
  932. "name": {
  933. "type": "string",
  934. "value": "Node"
  935. },
  936. "attributes": {
  937. "type": "list<$ATTRIBUTE>",
  938. "value": [
  939. {
  940. "name": "id",
  941. "type": "string",
  942. "default": ""
  943. },
  944. {
  945. "name": "input",
  946. "type": "string",
  947. "default": "false"
  948. },
  949. {
  950. "name": "highlight",
  951. "type": "string",
  952. "default": "no"
  953. }
  954. ]
  955. },
  956. "constraints": {
  957. "type": "list<$EVENT_HANDLER>",
  958. "value": []
  959. },
  960. "actions": {
  961. "type": "list<$EVENT_HANDLER>",
  962. "value": []
  963. },
  964. "cardinalities": {
  965. "type": "list<$CARDINALITY>",
  966. "value": []
  967. },
  968. "abstract": {
  969. "type": "boolean",
  970. "value": false
  971. },
  972. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Class"
  973. },
  974. "1": {
  975. "name": {
  976. "type": "string",
  977. "value": "parent"
  978. },
  979. "attributes": {
  980. "type": "list<$ATTRIBUTE>",
  981. "value": []
  982. },
  983. "constraints": {
  984. "type": "list<$EVENT_HANDLER>",
  985. "value": []
  986. },
  987. "actions": {
  988. "type": "list<$EVENT_HANDLER>",
  989. "value": []
  990. },
  991. "cardinalities": {
  992. "type": "list<$CARDINALITY>",
  993. "value": []
  994. },
  995. "linktype": {
  996. "type": "ENUM(visual,containment)",
  997. "value": "visual"
  998. },
  999. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Association"
  1000. },
  1001. "2": {
  1002. "name": {
  1003. "type": "string",
  1004. "value": "ancestor"
  1005. },
  1006. "attributes": {
  1007. "type": "list<$ATTRIBUTE>",
  1008. "value": []
  1009. },
  1010. "constraints": {
  1011. "type": "list<$EVENT_HANDLER>",
  1012. "value": []
  1013. },
  1014. "actions": {
  1015. "type": "list<$EVENT_HANDLER>",
  1016. "value": []
  1017. },
  1018. "cardinalities": {
  1019. "type": "list<$CARDINALITY>",
  1020. "value": []
  1021. },
  1022. "linktype": {
  1023. "type": "ENUM(visual,containment)",
  1024. "value": "visual"
  1025. },
  1026. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Association"
  1027. }
  1028. },
  1029. "edges": [
  1030. {
  1031. "src": "0",
  1032. "dest": "1"
  1033. },
  1034. {
  1035. "src": "1",
  1036. "dest": "0"
  1037. },
  1038. {
  1039. "src": "0",
  1040. "dest": "2"
  1041. },
  1042. {
  1043. "src": "2",
  1044. "dest": "0"
  1045. }
  1046. ],
  1047. "metamodels": [
  1048. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram"
  1049. ]
  1050. }
  1051. }