SCCD_Debug.defaultIcons.metamodel 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433
  1. {
  2. "types": {
  3. "GlobalBreakpointIcon": [
  4. {
  5. "name": "typename",
  6. "type": "string",
  7. "default": "GlobalBreakpointIcon"
  8. },
  9. {
  10. "name": "position",
  11. "type": "list<double>",
  12. "default": [
  13. 150,
  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": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  34. },
  35. {
  36. "name": "parser",
  37. "type": "code",
  38. "default": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  39. },
  40. {
  41. "name": "$contents",
  42. "type": "map<string,*>",
  43. "default": {
  44. "nodes": {
  45. "3": {
  46. "width": {
  47. "type": "double",
  48. "value": 150
  49. },
  50. "height": {
  51. "type": "double",
  52. "value": 50
  53. },
  54. "cornerRadius": {
  55. "type": "double",
  56. "value": 25
  57. },
  58. "style": {
  59. "type": "map<string,string>",
  60. "value": {
  61. "stroke": "#ffffff",
  62. "stroke-dasharray": "",
  63. "fill": "red",
  64. "fill-opacity": 1,
  65. "font-size": "20px",
  66. "stroke-width": 1,
  67. "arrow-start": "none",
  68. "arrow-end": "none"
  69. }
  70. },
  71. "mapper": {
  72. "type": "code",
  73. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */\nvar style = {\n \"stroke\": \"#ffffff\",\n \"stroke-dasharray\": \"\",\n \"fill\": \"red\",\n \"fill-opacity\": 1,\n \"font-size\": \"20px\",\n \"stroke-width\": 1,\n \"arrow-start\": \"none\",\n \"arrow-end\": \"none\"\n};\nif (!getAttr(\"enabled\")) {\n style[\"fill\"] = \"grey\";\n}\n({\"style\": style})"
  74. },
  75. "parser": {
  76. "type": "code",
  77. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  78. },
  79. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  80. "position": {
  81. "type": "list<double>",
  82. "value": [
  83. 5,
  84. 3
  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. "4": {
  100. "textContent": {
  101. "type": "string",
  102. "value": "<coded>"
  103. },
  104. "style": {
  105. "type": "map<string,string>",
  106. "value": {
  107. "stroke": "#ffffff",
  108. "stroke-dasharray": "",
  109. "fill": "#000000",
  110. "fill-opacity": 1,
  111. "font-size": "12px",
  112. "stroke-width": 0,
  113. "arrow-start": "none",
  114. "arrow-end": "none"
  115. }
  116. },
  117. "mapper": {
  118. "type": "code",
  119. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */\n/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */\nvar splitted = getAttr('condition').split('\\n'),\n textContent = \"\";\nif (splitted.length > 1) {\n textContent = \"...\\n\" + splitted[splitted.length - 1];\n} else if (splitted.length == 1) {\n textContent = splitted[0];\n}\n({'textContent': textContent})"
  120. },
  121. "parser": {
  122. "type": "code",
  123. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  124. },
  125. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  126. "position": {
  127. "type": "list<double>",
  128. "value": [
  129. 16,
  130. 11
  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. "7": {
  146. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  147. "position": {
  148. "type": "list<double>",
  149. "value": [
  150. 23.31953002410694,
  151. 11.55769180195216
  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. "stroke-width": 1
  172. }
  173. }
  174. }
  175. },
  176. "edges": [
  177. {
  178. "src": "3",
  179. "dest": "7"
  180. },
  181. {
  182. "src": "7",
  183. "dest": "4"
  184. }
  185. ]
  186. }
  187. },
  188. {
  189. "name": "$asuri",
  190. "type": "string",
  191. "default": "-1"
  192. }
  193. ],
  194. "BreakpointIcon": [
  195. {
  196. "name": "typename",
  197. "type": "string",
  198. "default": "BreakpointIcon"
  199. },
  200. {
  201. "name": "position",
  202. "type": "list<double>",
  203. "default": [
  204. 400,
  205. 125
  206. ]
  207. },
  208. {
  209. "name": "orientation",
  210. "type": "double",
  211. "default": 0
  212. },
  213. {
  214. "name": "scale",
  215. "type": "list<double>",
  216. "default": [
  217. 1,
  218. 1
  219. ]
  220. },
  221. {
  222. "name": "mapper",
  223. "type": "code",
  224. "default": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  225. },
  226. {
  227. "name": "parser",
  228. "type": "code",
  229. "default": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  230. },
  231. {
  232. "name": "$contents",
  233. "type": "map<string,*>",
  234. "default": {
  235. "nodes": {
  236. "2": {
  237. "r": {
  238. "type": "double",
  239. "value": 15
  240. },
  241. "style": {
  242. "type": "map<string,string>",
  243. "value": {
  244. "stroke": "#ffffff",
  245. "stroke-dasharray": "",
  246. "fill": "red",
  247. "fill-opacity": 1,
  248. "font-size": "20px",
  249. "stroke-width": 1,
  250. "arrow-start": "none",
  251. "arrow-end": "none"
  252. }
  253. },
  254. "mapper": {
  255. "type": "code",
  256. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */\nvar style = {\n \"stroke\": \"#ffffff\",\n \"stroke-dasharray\": \"\",\n \"fill\": \"red\",\n \"fill-opacity\": 1,\n \"font-size\": \"20px\",\n \"stroke-width\": 1,\n \"arrow-start\": \"none\",\n \"arrow-end\": \"none\"\n};\nif (!getAttr(\"enabled\")) {\n style[\"fill\"] = \"grey\";\n}\n({\"style\": style})"
  257. },
  258. "parser": {
  259. "type": "code",
  260. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  261. },
  262. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Circle",
  263. "position": {
  264. "type": "list<double>",
  265. "value": [
  266. 4,
  267. 4
  268. ]
  269. },
  270. "orientation": {
  271. "type": "double",
  272. "value": 0
  273. },
  274. "scale": {
  275. "type": "list<double>",
  276. "value": [
  277. 1,
  278. 1
  279. ]
  280. }
  281. }
  282. },
  283. "edges": []
  284. }
  285. },
  286. {
  287. "name": "$asuri",
  288. "type": "string",
  289. "default": "-1"
  290. }
  291. ],
  292. "targetLink": [
  293. {
  294. "name": "link-style",
  295. "type": "map<string,string>",
  296. "default": {
  297. "stroke": "red",
  298. "stroke-dasharray": ". ",
  299. "stroke-opacity": 1,
  300. "stroke-width": 2
  301. }
  302. },
  303. {
  304. "name": "arrowHead",
  305. "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)",
  306. "default": "custom"
  307. },
  308. {
  309. "name": "arrowTail",
  310. "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)",
  311. "default": "arrow-black"
  312. },
  313. {
  314. "name": "typename",
  315. "type": "string",
  316. "default": "targetLink"
  317. },
  318. {
  319. "name": "position",
  320. "type": "list<double>",
  321. "default": [
  322. 647,
  323. 123
  324. ]
  325. },
  326. {
  327. "name": "orientation",
  328. "type": "double",
  329. "default": 0
  330. },
  331. {
  332. "name": "scale",
  333. "type": "list<double>",
  334. "default": [
  335. 1,
  336. 1
  337. ]
  338. },
  339. {
  340. "name": "mapper",
  341. "type": "code",
  342. "default": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  343. },
  344. {
  345. "name": "parser",
  346. "type": "code",
  347. "default": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  348. },
  349. {
  350. "name": "$contents",
  351. "type": "map<string,*>",
  352. "default": {
  353. "nodes": {
  354. "267": {
  355. "segments": {
  356. "type": "string",
  357. "value": "m0,0 l10,4 l-10,4 l3,-4 z"
  358. },
  359. "style": {
  360. "type": "map<string,string>",
  361. "value": {
  362. "stroke": "#000000",
  363. "fill": "#000000",
  364. "opacity": 1,
  365. "stroke-width": 1
  366. }
  367. },
  368. "mapper": {
  369. "type": "code",
  370. "value": ""
  371. },
  372. "parser": {
  373. "type": "code",
  374. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  375. },
  376. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  377. "position": {
  378. "type": "list<double>",
  379. "value": [
  380. 0,
  381. 0
  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. "$linkDecoratorInfo": {
  396. "type": "map<string,double>",
  397. "value": {
  398. "xratio": 1,
  399. "yoffset": -4
  400. }
  401. }
  402. }
  403. },
  404. "edges": []
  405. }
  406. },
  407. {
  408. "name": "$asuri",
  409. "type": "string",
  410. "default": "-1"
  411. },
  412. {
  413. "name": "$segments",
  414. "type": "map<string,list<string>>",
  415. "default": {}
  416. }
  417. ]
  418. },
  419. "constraints": [],
  420. "actions": [],
  421. "cardinalities": {
  422. "GlobalBreakpointIcon": [],
  423. "BreakpointIcon": [],
  424. "targetLink": []
  425. },
  426. "legalConnections": {},
  427. "connectorTypes": {},
  428. "types2parentTypes": {
  429. "GlobalBreakpointIcon": [],
  430. "BreakpointIcon": [],
  431. "targetLink": []
  432. }
  433. }