ActionCodeMM.model 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  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. 300,
  13. 201
  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": ""
  30. },
  31. "parser": {
  32. "type": "code",
  33. "value": ""
  34. },
  35. "$contents": {
  36. "type": "map<string,*>",
  37. "value": {
  38. "nodes": {
  39. "5": {
  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": 5
  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": ""
  65. },
  66. "parser": {
  67. "type": "code",
  68. "value": ""
  69. },
  70. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  71. "position": {
  72. "type": "list<double>",
  73. "value": [
  74. 0,
  75. 0
  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. "6": {
  91. "textContent": {
  92. "type": "string",
  93. "value": "Code"
  94. },
  95. "style": {
  96. "type": "map<string,string>",
  97. "value": {
  98. "stroke": "#000000",
  99. "fill": "#ffffff",
  100. "fill-opacity": 0.75,
  101. "font-size": "20px",
  102. "font-style": "normal"
  103. }
  104. },
  105. "mapper": {
  106. "type": "code",
  107. "value": "var style = \n {\n \"stroke\": \"#000000\",\n \"fill\": \"#ffffff\",\n \"fill-opacity\": 0.75,\n \"font-size\": \"20px\",\n \"font-style\": (getAttr('abstract') ? 'italic' : 'normal')\n };\n\n({'textContent': getAttr('name'), 'style':style})\n\n\n\n"
  108. },
  109. "parser": {
  110. "type": "code",
  111. "value": "({'name': getAttr('textContent')})"
  112. },
  113. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  114. "position": {
  115. "type": "list<double>",
  116. "value": [
  117. 23,
  118. 2
  119. ]
  120. },
  121. "orientation": {
  122. "type": "double",
  123. "value": 0
  124. },
  125. "scale": {
  126. "type": "list<double>",
  127. "value": [
  128. 1,
  129. 1
  130. ]
  131. }
  132. },
  133. "7": {
  134. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  135. "position": {
  136. "type": "list<double>",
  137. "value": [
  138. 13.896110991026944,
  139. 3.0451514439171206
  140. ]
  141. },
  142. "orientation": {
  143. "type": "double",
  144. "value": 0
  145. },
  146. "scale": {
  147. "type": "list<double>",
  148. "value": [
  149. 1,
  150. 1
  151. ]
  152. },
  153. "link-style": {
  154. "type": "map<string,string>",
  155. "value": {
  156. "stroke": "#00ffff",
  157. "stroke-dasharray": "",
  158. "stroke-opacity": 0.1,
  159. "arrow-start": "none",
  160. "arrow-end": "classic-wide-long"
  161. }
  162. }
  163. },
  164. "17": {
  165. "segments": {
  166. "type": "string",
  167. "value": "m0,0l200,0"
  168. },
  169. "style": {
  170. "type": "map<string,string>",
  171. "value": {
  172. "stroke": "#000000",
  173. "stroke-dasharray": "",
  174. "fill": "#ffffff",
  175. "fill-opacity": 0.75,
  176. "font-size": "20px",
  177. "stroke-width": 2,
  178. "arrow-start": "none",
  179. "arrow-end": "none"
  180. }
  181. },
  182. "mapper": {
  183. "type": "code",
  184. "value": ""
  185. },
  186. "parser": {
  187. "type": "code",
  188. "value": ""
  189. },
  190. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  191. "position": {
  192. "type": "list<double>",
  193. "value": [
  194. 1,
  195. 26
  196. ]
  197. },
  198. "orientation": {
  199. "type": "double",
  200. "value": 0
  201. },
  202. "scale": {
  203. "type": "list<double>",
  204. "value": [
  205. 1,
  206. 1
  207. ]
  208. }
  209. },
  210. "18": {
  211. "textContent": {
  212. "type": "string",
  213. "value": "imports\nbody"
  214. },
  215. "style": {
  216. "type": "map<string,string>",
  217. "value": {
  218. "stroke": "#000000",
  219. "stroke-dasharray": "",
  220. "fill": "#ffffff",
  221. "fill-opacity": 0.75,
  222. "font-size": "13px",
  223. "stroke-width": 1,
  224. "arrow-start": "none",
  225. "arrow-end": "none"
  226. }
  227. },
  228. "mapper": {
  229. "type": "code",
  230. "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')})"
  231. },
  232. "parser": {
  233. "type": "code",
  234. "value": ""
  235. },
  236. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  237. "position": {
  238. "type": "list<double>",
  239. "value": [
  240. 3,
  241. 25
  242. ]
  243. },
  244. "orientation": {
  245. "type": "double",
  246. "value": 0
  247. },
  248. "scale": {
  249. "type": "list<double>",
  250. "value": [
  251. 1,
  252. 1
  253. ]
  254. }
  255. },
  256. "19": {
  257. "width": {
  258. "type": "boolean",
  259. "value": true
  260. },
  261. "ratio": {
  262. "type": "double",
  263. "value": 1
  264. },
  265. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Span",
  266. "position": {
  267. "type": "list<double>",
  268. "value": [
  269. 168.09129891774523,
  270. 30.625911571363645
  271. ]
  272. },
  273. "orientation": {
  274. "type": "double",
  275. "value": 0
  276. },
  277. "scale": {
  278. "type": "list<double>",
  279. "value": [
  280. 1,
  281. 1
  282. ]
  283. },
  284. "link-style": {
  285. "type": "map<string,string>",
  286. "value": {
  287. "stroke": "#0000ff",
  288. "stroke-dasharray": "",
  289. "stroke-opacity": 1,
  290. "arrow-start": "none",
  291. "arrow-end": "classic-wide-long"
  292. }
  293. }
  294. },
  295. "20": {
  296. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  297. "position": {
  298. "type": "list<double>",
  299. "value": [
  300. 6.49899850809561,
  301. 18.998998508095553
  302. ]
  303. },
  304. "orientation": {
  305. "type": "double",
  306. "value": 0
  307. },
  308. "scale": {
  309. "type": "list<double>",
  310. "value": [
  311. 1,
  312. 1
  313. ]
  314. },
  315. "link-style": {
  316. "type": "map<string,string>",
  317. "value": {
  318. "stroke": "#00ffff",
  319. "stroke-dasharray": "",
  320. "stroke-opacity": 0.1,
  321. "arrow-start": "none",
  322. "arrow-end": "classic-wide-long"
  323. }
  324. }
  325. }
  326. },
  327. "edges": [
  328. {
  329. "src": "5",
  330. "dest": "7"
  331. },
  332. {
  333. "src": "7",
  334. "dest": "6"
  335. },
  336. {
  337. "src": "17",
  338. "dest": "19"
  339. },
  340. {
  341. "src": "19",
  342. "dest": "5"
  343. },
  344. {
  345. "src": "5",
  346. "dest": "20"
  347. },
  348. {
  349. "src": "20",
  350. "dest": "18"
  351. }
  352. ]
  353. }
  354. },
  355. "$asuri": {
  356. "type": "string",
  357. "value": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Class/0.instance"
  358. },
  359. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons/ClassIcon"
  360. }
  361. },
  362. "edges": [],
  363. "metamodels": [
  364. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons"
  365. ]
  366. },
  367. "asm": {
  368. "nodes": {
  369. "0": {
  370. "name": {
  371. "type": "string",
  372. "value": "Code"
  373. },
  374. "attributes": {
  375. "type": "list<$ATTRIBUTE>",
  376. "value": [
  377. {
  378. "name": "imports",
  379. "type": "code",
  380. "default": ""
  381. },
  382. {
  383. "name": "body",
  384. "type": "code",
  385. "default": "/*newline*/private void runCode() {/*newline*/ returnSomething(\"\");/*newline*/}"
  386. }
  387. ]
  388. },
  389. "constraints": {
  390. "type": "list<$EVENT_HANDLER>",
  391. "value": []
  392. },
  393. "actions": {
  394. "type": "list<$EVENT_HANDLER>",
  395. "value": []
  396. },
  397. "cardinalities": {
  398. "type": "list<$CARDINALITY>",
  399. "value": []
  400. },
  401. "abstract": {
  402. "type": "boolean",
  403. "value": false
  404. },
  405. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Class"
  406. }
  407. },
  408. "edges": [],
  409. "metamodels": [
  410. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram"
  411. ]
  412. }
  413. }