DiningRoomMM.model 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230
  1. {
  2. "csm": {
  3. "nodes": {
  4. "1": {
  5. "typename": {
  6. "type": "string",
  7. "value": "ClassIcon"
  8. },
  9. "position": {
  10. "type": "list<double>",
  11. "value": [
  12. 321,
  13. 222
  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": "Table"
  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": "+ x : int = 0\n+ y : int = 0"
  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/1.instance"
  352. },
  353. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/ClassIcon"
  354. },
  355. "2": {
  356. "typename": {
  357. "type": "string",
  358. "value": "ClassIcon"
  359. },
  360. "position": {
  361. "type": "list<double>",
  362. "value": [
  363. 671,
  364. 222
  365. ]
  366. },
  367. "orientation": {
  368. "type": "double",
  369. "value": 0
  370. },
  371. "scale": {
  372. "type": "list<double>",
  373. "value": [
  374. 1,
  375. 1
  376. ]
  377. },
  378. "mapper": {
  379. "type": "code",
  380. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  381. },
  382. "parser": {
  383. "type": "code",
  384. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  385. },
  386. "$contents": {
  387. "type": "map<string,*>",
  388. "value": {
  389. "nodes": {
  390. "96": {
  391. "width": {
  392. "type": "double",
  393. "value": 200
  394. },
  395. "height": {
  396. "type": "double",
  397. "value": 125
  398. },
  399. "cornerRadius": {
  400. "type": "double",
  401. "value": 0
  402. },
  403. "style": {
  404. "type": "map<string,string>",
  405. "value": {
  406. "stroke": "#000000",
  407. "stroke-dasharray": "",
  408. "fill": "#ffffff",
  409. "fill-opacity": 0.75,
  410. "stroke-width": 2
  411. }
  412. },
  413. "mapper": {
  414. "type": "code",
  415. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  416. },
  417. "parser": {
  418. "type": "code",
  419. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  420. },
  421. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  422. "position": {
  423. "type": "list<double>",
  424. "value": [
  425. 4,
  426. 3
  427. ]
  428. },
  429. "orientation": {
  430. "type": "double",
  431. "value": 0
  432. },
  433. "scale": {
  434. "type": "list<double>",
  435. "value": [
  436. 1,
  437. 1
  438. ]
  439. }
  440. },
  441. "97": {
  442. "segments": {
  443. "type": "string",
  444. "value": "m0,0l197,0"
  445. },
  446. "style": {
  447. "type": "map<string,string>",
  448. "value": {
  449. "stroke": "#000000",
  450. "stroke-dasharray": "",
  451. "fill": "#ffffff",
  452. "fill-opacity": 0.75,
  453. "font-size": "20px",
  454. "stroke-width": 2,
  455. "arrow-start": "none",
  456. "arrow-end": "none"
  457. }
  458. },
  459. "mapper": {
  460. "type": "code",
  461. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  462. },
  463. "parser": {
  464. "type": "code",
  465. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  466. },
  467. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  468. "position": {
  469. "type": "list<double>",
  470. "value": [
  471. 6,
  472. 36
  473. ]
  474. },
  475. "orientation": {
  476. "type": "double",
  477. "value": 0
  478. },
  479. "scale": {
  480. "type": "list<double>",
  481. "value": [
  482. 1,
  483. 1
  484. ]
  485. }
  486. },
  487. "98": {
  488. "textContent": {
  489. "type": "string",
  490. "value": "Chair"
  491. },
  492. "style": {
  493. "type": "map<string,string>",
  494. "value": {
  495. "font-size": "18px",
  496. "font-style": "normal",
  497. "font-weight": "bold",
  498. "line-height": "100%",
  499. "letter-spacing": "0px",
  500. "word-spacing": "0px",
  501. "fill": "#000000",
  502. "fill-opacity": "1",
  503. "stroke": "none"
  504. }
  505. },
  506. "mapper": {
  507. "type": "code",
  508. "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"
  509. },
  510. "parser": {
  511. "type": "code",
  512. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */\n({'name': getAttr('textContent')})"
  513. },
  514. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  515. "position": {
  516. "type": "list<double>",
  517. "value": [
  518. 8,
  519. 8
  520. ]
  521. },
  522. "orientation": {
  523. "type": "double",
  524. "value": 0
  525. },
  526. "scale": {
  527. "type": "list<double>",
  528. "value": [
  529. 1,
  530. 1
  531. ]
  532. }
  533. },
  534. "99": {
  535. "textContent": {
  536. "type": "string",
  537. "value": "+ order : int = 1"
  538. },
  539. "style": {
  540. "type": "map<string,string>",
  541. "value": {
  542. "font-size": "14px",
  543. "font-style": "normal",
  544. "font-weight": "bold",
  545. "line-height": "100%",
  546. "letter-spacing": "0px",
  547. "word-spacing": "0px",
  548. "fill": "#000000",
  549. "fill-opacity": "1",
  550. "stroke": "none"
  551. }
  552. },
  553. "mapper": {
  554. "type": "code",
  555. "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')})"
  556. },
  557. "parser": {
  558. "type": "code",
  559. "value": ""
  560. },
  561. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  562. "position": {
  563. "type": "list<double>",
  564. "value": [
  565. 10,
  566. 41
  567. ]
  568. },
  569. "orientation": {
  570. "type": "double",
  571. "value": 0
  572. },
  573. "scale": {
  574. "type": "list<double>",
  575. "value": [
  576. 1,
  577. 1
  578. ]
  579. }
  580. },
  581. "100": {
  582. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  583. "position": {
  584. "type": "list<double>",
  585. "value": [
  586. 68.5,
  587. 36.5
  588. ]
  589. },
  590. "orientation": {
  591. "type": "double",
  592. "value": 0
  593. },
  594. "scale": {
  595. "type": "list<double>",
  596. "value": [
  597. 1,
  598. 1
  599. ]
  600. },
  601. "link-style": {
  602. "type": "map<string,string>",
  603. "value": {
  604. "stroke": "#00ffff",
  605. "stroke-dasharray": "",
  606. "stroke-opacity": 0.1,
  607. "stroke-width": 1
  608. }
  609. }
  610. },
  611. "101": {
  612. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  613. "position": {
  614. "type": "list<double>",
  615. "value": [
  616. 12.5,
  617. 27
  618. ]
  619. },
  620. "orientation": {
  621. "type": "double",
  622. "value": 0
  623. },
  624. "scale": {
  625. "type": "list<double>",
  626. "value": [
  627. 1,
  628. 1
  629. ]
  630. },
  631. "link-style": {
  632. "type": "map<string,string>",
  633. "value": {
  634. "stroke": "#00ffff",
  635. "stroke-dasharray": "",
  636. "stroke-opacity": 0.1,
  637. "stroke-width": 1
  638. }
  639. }
  640. },
  641. "102": {
  642. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  643. "position": {
  644. "type": "list<double>",
  645. "value": [
  646. 53.75,
  647. 20
  648. ]
  649. },
  650. "orientation": {
  651. "type": "double",
  652. "value": 0
  653. },
  654. "scale": {
  655. "type": "list<double>",
  656. "value": [
  657. 1,
  658. 1
  659. ]
  660. },
  661. "link-style": {
  662. "type": "map<string,string>",
  663. "value": {
  664. "stroke": "#00ffff",
  665. "stroke-dasharray": "",
  666. "stroke-opacity": 0.1,
  667. "stroke-width": 1
  668. }
  669. }
  670. }
  671. },
  672. "edges": [
  673. {
  674. "src": "96",
  675. "dest": "100"
  676. },
  677. {
  678. "src": "100",
  679. "dest": "98"
  680. },
  681. {
  682. "src": "96",
  683. "dest": "101"
  684. },
  685. {
  686. "src": "101",
  687. "dest": "99"
  688. },
  689. {
  690. "src": "96",
  691. "dest": "102"
  692. },
  693. {
  694. "src": "102",
  695. "dest": "97"
  696. }
  697. ]
  698. }
  699. },
  700. "$asuri": {
  701. "type": "string",
  702. "value": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Class/2.instance"
  703. },
  704. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/ClassIcon"
  705. },
  706. "3": {
  707. "link-style": {
  708. "type": "map<string,string>",
  709. "value": {
  710. "stroke": "#000000",
  711. "stroke-dasharray": "",
  712. "stroke-opacity": 1,
  713. "stroke-width": 2
  714. }
  715. },
  716. "arrowHead": {
  717. "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)",
  718. "value": "custom"
  719. },
  720. "arrowTail": {
  721. "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)",
  722. "value": "arrow-black"
  723. },
  724. "typename": {
  725. "type": "string",
  726. "value": "AssociationLink"
  727. },
  728. "position": {
  729. "type": "list<double>",
  730. "value": [
  731. 599,
  732. 282
  733. ]
  734. },
  735. "orientation": {
  736. "type": "double",
  737. "value": 0
  738. },
  739. "scale": {
  740. "type": "list<double>",
  741. "value": [
  742. 1,
  743. 1
  744. ]
  745. },
  746. "mapper": {
  747. "type": "code",
  748. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  749. },
  750. "parser": {
  751. "type": "code",
  752. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  753. },
  754. "$contents": {
  755. "type": "map<string,*>",
  756. "value": {
  757. "nodes": {
  758. "71": {
  759. "textContent": {
  760. "type": "string",
  761. "value": "around"
  762. },
  763. "style": {
  764. "type": "map<string,string>",
  765. "value": {
  766. "font-size": "20px",
  767. "font-style": "normal",
  768. "font-weight": "normal",
  769. "line-height": "100%",
  770. "letter-spacing": "0px",
  771. "word-spacing": "0px",
  772. "fill": "#000000",
  773. "fill-opacity": "1",
  774. "stroke": "none",
  775. "font-family": "Sans"
  776. }
  777. },
  778. "mapper": {
  779. "type": "code",
  780. "value": "({'textContent':getAttr('name')})"
  781. },
  782. "parser": {
  783. "type": "code",
  784. "value": "({'name':getAttr('textContent')})"
  785. },
  786. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  787. "position": {
  788. "type": "list<double>",
  789. "value": [
  790. "0;-18.184349106945547,0%",
  791. "0;-28.5,0%"
  792. ]
  793. },
  794. "orientation": {
  795. "type": "double",
  796. "value": "0;0"
  797. },
  798. "scale": {
  799. "type": "list<double>",
  800. "value": [
  801. 1,
  802. 1
  803. ]
  804. },
  805. "$linkDecoratorInfo": {
  806. "type": "map<string,double>",
  807. "value": {
  808. "xratio": 0.3803680981595092,
  809. "yoffset": -28.5
  810. }
  811. }
  812. },
  813. "74": {
  814. "textContent": {
  815. "type": "string",
  816. "value": "*"
  817. },
  818. "style": {
  819. "type": "map<string,string>",
  820. "value": {
  821. "font-size": "20px",
  822. "font-style": "normal",
  823. "font-weight": "normal",
  824. "line-height": "100%",
  825. "letter-spacing": "0px",
  826. "word-spacing": "0px",
  827. "fill": "#000000",
  828. "fill-opacity": "1",
  829. "stroke": "none",
  830. "font-family": "Sans"
  831. }
  832. },
  833. "mapper": {
  834. "type": "code",
  835. "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})"
  836. },
  837. "parser": {
  838. "type": "code",
  839. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  840. },
  841. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  842. "position": {
  843. "type": "list<double>",
  844. "value": [
  845. "0;75.99921121883665,100%",
  846. "0;-33.5,0%"
  847. ]
  848. },
  849. "orientation": {
  850. "type": "double",
  851. "value": "0;0"
  852. },
  853. "scale": {
  854. "type": "list<double>",
  855. "value": [
  856. 1,
  857. 1
  858. ]
  859. },
  860. "$linkDecoratorInfo": {
  861. "type": "map<string,double>",
  862. "value": {
  863. "xratio": 1,
  864. "yoffset": -33.5
  865. }
  866. }
  867. },
  868. "77": {
  869. "textContent": {
  870. "type": "string",
  871. "value": "*"
  872. },
  873. "style": {
  874. "type": "map<string,string>",
  875. "value": {
  876. "font-size": "20px",
  877. "font-style": "normal",
  878. "font-weight": "normal",
  879. "line-height": "100%",
  880. "letter-spacing": "0px",
  881. "word-spacing": "0px",
  882. "fill": "#000000",
  883. "fill-opacity": "1",
  884. "stroke": "none",
  885. "font-family": "Sans"
  886. }
  887. },
  888. "mapper": {
  889. "type": "code",
  890. "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})"
  891. },
  892. "parser": {
  893. "type": "code",
  894. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  895. },
  896. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  897. "position": {
  898. "type": "list<double>",
  899. "value": [
  900. "0;-71.33744750862468,0%",
  901. "0;-33.5,0%"
  902. ]
  903. },
  904. "orientation": {
  905. "type": "double",
  906. "value": "0;0"
  907. },
  908. "scale": {
  909. "type": "list<double>",
  910. "value": [
  911. 1,
  912. 1
  913. ]
  914. },
  915. "$linkDecoratorInfo": {
  916. "type": "map<string,double>",
  917. "value": {
  918. "xratio": 0.03067484662576687,
  919. "yoffset": -33.5
  920. }
  921. }
  922. },
  923. "140": {
  924. "segments": {
  925. "type": "string",
  926. "value": "m0,0 l20,8 l-20,8"
  927. },
  928. "style": {
  929. "type": "map<string,string>",
  930. "value": {
  931. "stroke": "#000000",
  932. "fill": "#000000",
  933. "fill-opacity": 0,
  934. "stroke-width": 1,
  935. "opacity": 1
  936. }
  937. },
  938. "mapper": {
  939. "type": "code",
  940. "value": ""
  941. },
  942. "parser": {
  943. "type": "code",
  944. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  945. },
  946. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  947. "position": {
  948. "type": "list<double>",
  949. "value": [
  950. "0;75.99921121883665,100%",
  951. "0;-8,0%"
  952. ]
  953. },
  954. "orientation": {
  955. "type": "double",
  956. "value": "0;0"
  957. },
  958. "scale": {
  959. "type": "list<double>",
  960. "value": [
  961. 1,
  962. 1
  963. ]
  964. },
  965. "$linkDecoratorInfo": {
  966. "type": "map<string,double>",
  967. "value": {
  968. "xratio": 1,
  969. "yoffset": -8
  970. }
  971. }
  972. }
  973. },
  974. "edges": []
  975. }
  976. },
  977. "$asuri": {
  978. "type": "string",
  979. "value": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Association/3.instance"
  980. },
  981. "$segments": {
  982. "type": "map<string,list<string>>",
  983. "value": {
  984. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/ClassIcon/1.instance--/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/AssociationLink/3.instance": "M523,282L599,282",
  985. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/AssociationLink/3.instance--/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/ClassIcon/2.instance": "M599.0007947019867,282L674.9992112188366,282"
  986. }
  987. },
  988. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/AssociationLink"
  989. },
  990. "4": {
  991. "typename": {
  992. "type": "string",
  993. "value": "GlobalConstraintIcon"
  994. },
  995. "position": {
  996. "type": "list<double>",
  997. "value": [
  998. 964,
  999. 154
  1000. ]
  1001. },
  1002. "orientation": {
  1003. "type": "double",
  1004. "value": 0
  1005. },
  1006. "scale": {
  1007. "type": "list<double>",
  1008. "value": [
  1009. 1,
  1010. 1
  1011. ]
  1012. },
  1013. "mapper": {
  1014. "type": "code",
  1015. "value": ""
  1016. },
  1017. "parser": {
  1018. "type": "code",
  1019. "value": ""
  1020. },
  1021. "$contents": {
  1022. "type": "map<string,*>",
  1023. "value": {
  1024. "nodes": {
  1025. "11": {
  1026. "textContent": {
  1027. "type": "string",
  1028. "value": "check GC_UniqueTable on validate"
  1029. },
  1030. "style": {
  1031. "type": "map<string,string>",
  1032. "value": {
  1033. "stroke": "#00ff70",
  1034. "stroke-dasharray": "",
  1035. "fill": "#00ff70",
  1036. "fill-opacity": 0.75,
  1037. "font-size": "20px",
  1038. "stroke-width": 1,
  1039. "arrow-start": "none",
  1040. "arrow-end": "none"
  1041. }
  1042. },
  1043. "mapper": {
  1044. "type": "code",
  1045. "value": "({'textContent' : 'check '+getAttr('name')+' on '+(getAttr('event') || 'validate')})\n"
  1046. },
  1047. "parser": {
  1048. "type": "code",
  1049. "value": ""
  1050. },
  1051. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  1052. "position": {
  1053. "type": "list<double>",
  1054. "value": [
  1055. 0,
  1056. -1
  1057. ]
  1058. },
  1059. "orientation": {
  1060. "type": "double",
  1061. "value": 0
  1062. },
  1063. "scale": {
  1064. "type": "list<double>",
  1065. "value": [
  1066. 1,
  1067. 1
  1068. ]
  1069. }
  1070. }
  1071. },
  1072. "edges": []
  1073. }
  1074. },
  1075. "$asuri": {
  1076. "type": "string",
  1077. "value": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/GlobalConstraint/4.instance"
  1078. },
  1079. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/GlobalConstraintIcon"
  1080. }
  1081. },
  1082. "edges": [],
  1083. "metamodels": [
  1084. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons"
  1085. ]
  1086. },
  1087. "asm": {
  1088. "nodes": {
  1089. "1": {
  1090. "name": {
  1091. "type": "string",
  1092. "value": "Table"
  1093. },
  1094. "attributes": {
  1095. "type": "list<$ATTRIBUTE>",
  1096. "value": [
  1097. {
  1098. "name": "x",
  1099. "type": "int",
  1100. "default": "0"
  1101. },
  1102. {
  1103. "name": "y",
  1104. "type": "int",
  1105. "default": "0"
  1106. }
  1107. ]
  1108. },
  1109. "constraints": {
  1110. "type": "list<$EVENT_HANDLER>",
  1111. "value": []
  1112. },
  1113. "actions": {
  1114. "type": "list<$EVENT_HANDLER>",
  1115. "value": []
  1116. },
  1117. "cardinalities": {
  1118. "type": "list<$CARDINALITY>",
  1119. "value": []
  1120. },
  1121. "abstract": {
  1122. "type": "boolean",
  1123. "value": false
  1124. },
  1125. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Class"
  1126. },
  1127. "2": {
  1128. "name": {
  1129. "type": "string",
  1130. "value": "Chair"
  1131. },
  1132. "attributes": {
  1133. "type": "list<$ATTRIBUTE>",
  1134. "value": [
  1135. {
  1136. "name": "order",
  1137. "type": "int",
  1138. "default": "1"
  1139. }
  1140. ]
  1141. },
  1142. "constraints": {
  1143. "type": "list<$EVENT_HANDLER>",
  1144. "value": []
  1145. },
  1146. "actions": {
  1147. "type": "list<$EVENT_HANDLER>",
  1148. "value": []
  1149. },
  1150. "cardinalities": {
  1151. "type": "list<$CARDINALITY>",
  1152. "value": []
  1153. },
  1154. "abstract": {
  1155. "type": "boolean",
  1156. "value": false
  1157. },
  1158. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Class"
  1159. },
  1160. "3": {
  1161. "name": {
  1162. "type": "string",
  1163. "value": "around"
  1164. },
  1165. "attributes": {
  1166. "type": "list<$ATTRIBUTE>",
  1167. "value": [
  1168. {
  1169. "name": "",
  1170. "type": "",
  1171. "default": ""
  1172. }
  1173. ]
  1174. },
  1175. "constraints": {
  1176. "type": "list<$EVENT_HANDLER>",
  1177. "value": []
  1178. },
  1179. "actions": {
  1180. "type": "list<$EVENT_HANDLER>",
  1181. "value": []
  1182. },
  1183. "cardinalities": {
  1184. "type": "list<$CARDINALITY>",
  1185. "value": [
  1186. {
  1187. "dir": "in",
  1188. "type": "around",
  1189. "min": "0",
  1190. "max": "1"
  1191. }
  1192. ]
  1193. },
  1194. "linktype": {
  1195. "type": "ENUM(visual,containment)",
  1196. "value": "visual"
  1197. },
  1198. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Association"
  1199. },
  1200. "4": {
  1201. "name": {
  1202. "type": "string",
  1203. "value": "GC_UniqueTable"
  1204. },
  1205. "event": {
  1206. "type": "$EVENT",
  1207. "value": ""
  1208. },
  1209. "code": {
  1210. "type": "code",
  1211. "value": "(getAllNodes(['/Formalisms/DiningRoom/DiningRoom/Table']).length <= 1)"
  1212. },
  1213. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/GlobalConstraint"
  1214. }
  1215. },
  1216. "edges": [
  1217. {
  1218. "src": "1",
  1219. "dest": "3"
  1220. },
  1221. {
  1222. "src": "3",
  1223. "dest": "2"
  1224. }
  1225. ],
  1226. "metamodels": [
  1227. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram"
  1228. ]
  1229. }
  1230. }