R_RuleTemplate.model 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  1. {
  2. "csm": {
  3. "nodes": {
  4. "0": {
  5. "typename": {
  6. "type": "string",
  7. "value": "LHSIcon"
  8. },
  9. "position": {
  10. "type": "list<double>",
  11. "value": [
  12. 524,
  13. 225
  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. "4": {
  40. "segments": {
  41. "type": "string",
  42. "value": "m0,0 l350,0 l100,250 l-100,250 l-350,0z"
  43. },
  44. "style": {
  45. "type": "map<string,string>",
  46. "value": {
  47. "stroke": "#000000",
  48. "stroke-dasharray": "",
  49. "fill": "#ffffff",
  50. "fill-opacity": 0.75,
  51. "stroke-width": 2,
  52. "arrow-start": "none",
  53. "arrow-end": "none"
  54. }
  55. },
  56. "mapper": {
  57. "type": "code",
  58. "value": ""
  59. },
  60. "parser": {
  61. "type": "code",
  62. "value": ""
  63. },
  64. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  65. "position": {
  66. "type": "list<double>",
  67. "value": [
  68. 1,
  69. 0
  70. ]
  71. },
  72. "orientation": {
  73. "type": "double",
  74. "value": 0
  75. },
  76. "scale": {
  77. "type": "list<double>",
  78. "value": [
  79. 1,
  80. 1
  81. ]
  82. }
  83. }
  84. },
  85. "edges": []
  86. }
  87. },
  88. "$asuri": {
  89. "type": "string",
  90. "value": "/Formalisms/__Transformations__/TransformationRule/TransformationRule/LHS/0.instance"
  91. },
  92. "$type": "/Formalisms/__Transformations__/TransformationRule/TransformationRule.defaultIcons/LHSIcon"
  93. },
  94. "1": {
  95. "typename": {
  96. "type": "string",
  97. "value": "RHSIcon"
  98. },
  99. "position": {
  100. "type": "list<double>",
  101. "value": [
  102. 925,
  103. 225
  104. ]
  105. },
  106. "orientation": {
  107. "type": "double",
  108. "value": 0
  109. },
  110. "scale": {
  111. "type": "list<double>",
  112. "value": [
  113. 1,
  114. 1
  115. ]
  116. },
  117. "mapper": {
  118. "type": "code",
  119. "value": ""
  120. },
  121. "parser": {
  122. "type": "code",
  123. "value": ""
  124. },
  125. "$contents": {
  126. "type": "map<string,*>",
  127. "value": {
  128. "nodes": {
  129. "7": {
  130. "segments": {
  131. "type": "string",
  132. "value": "m0,0 l450,0 l0,500 l-450,0 l100,-250z"
  133. },
  134. "style": {
  135. "type": "map<string,string>",
  136. "value": {
  137. "stroke": "#000000",
  138. "stroke-dasharray": "",
  139. "fill": "#ffffff",
  140. "fill-opacity": 0.75,
  141. "stroke-width": 2,
  142. "arrow-start": "none",
  143. "arrow-end": "none"
  144. }
  145. },
  146. "mapper": {
  147. "type": "code",
  148. "value": ""
  149. },
  150. "parser": {
  151. "type": "code",
  152. "value": ""
  153. },
  154. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  155. "position": {
  156. "type": "list<double>",
  157. "value": [
  158. 0,
  159. 0
  160. ]
  161. },
  162. "orientation": {
  163. "type": "double",
  164. "value": 0
  165. },
  166. "scale": {
  167. "type": "list<double>",
  168. "value": [
  169. 1,
  170. 1
  171. ]
  172. }
  173. }
  174. },
  175. "edges": []
  176. }
  177. },
  178. "$asuri": {
  179. "type": "string",
  180. "value": "/Formalisms/__Transformations__/TransformationRule/TransformationRule/RHS/1.instance"
  181. },
  182. "$type": "/Formalisms/__Transformations__/TransformationRule/TransformationRule.defaultIcons/RHSIcon"
  183. },
  184. "2": {
  185. "typename": {
  186. "type": "string",
  187. "value": "NACIcon"
  188. },
  189. "position": {
  190. "type": "list<double>",
  191. "value": [
  192. 100,
  193. 226
  194. ]
  195. },
  196. "orientation": {
  197. "type": "double",
  198. "value": 0
  199. },
  200. "scale": {
  201. "type": "list<double>",
  202. "value": [
  203. 1,
  204. 1
  205. ]
  206. },
  207. "mapper": {
  208. "type": "code",
  209. "value": ""
  210. },
  211. "parser": {
  212. "type": "code",
  213. "value": ""
  214. },
  215. "$contents": {
  216. "type": "map<string,*>",
  217. "value": {
  218. "nodes": {
  219. "1": {
  220. "width": {
  221. "type": "double",
  222. "value": "400"
  223. },
  224. "height": {
  225. "type": "double",
  226. "value": "500"
  227. },
  228. "cornerRadius": {
  229. "type": "double",
  230. "value": "0"
  231. },
  232. "style": {
  233. "type": "map<string,string>",
  234. "value": {
  235. "stroke": "#000000",
  236. "stroke-dasharray": "- .",
  237. "fill": "#ffffff",
  238. "fill-opacity": 0.75,
  239. "stroke-width": 2
  240. }
  241. },
  242. "mapper": {
  243. "type": "code",
  244. "value": ""
  245. },
  246. "parser": {
  247. "type": "code",
  248. "value": ""
  249. },
  250. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  251. "position": {
  252. "type": "list<double>",
  253. "value": [
  254. 0,
  255. -1
  256. ]
  257. },
  258. "orientation": {
  259. "type": "double",
  260. "value": 0
  261. },
  262. "scale": {
  263. "type": "list<double>",
  264. "value": [
  265. 1,
  266. 1
  267. ]
  268. }
  269. },
  270. "13": {
  271. "textContent": {
  272. "type": "string",
  273. "value": "NAC_"
  274. },
  275. "style": {
  276. "type": "map<string,string>",
  277. "value": {
  278. "stroke": "#000000",
  279. "stroke-dasharray": "",
  280. "fill": "#000000",
  281. "fill-opacity": 1,
  282. "font-size": "20px",
  283. "stroke-width": 1,
  284. "arrow-start": "none",
  285. "arrow-end": "none"
  286. }
  287. },
  288. "mapper": {
  289. "type": "code",
  290. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */\n({'textContent': getAttr('name')})"
  291. },
  292. "parser": {
  293. "type": "code",
  294. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  295. },
  296. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  297. "position": {
  298. "type": "list<double>",
  299. "value": [
  300. 4,
  301. 503
  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. }
  316. },
  317. "edges": []
  318. }
  319. },
  320. "$asuri": {
  321. "type": "string",
  322. "value": "/Formalisms/__Transformations__/TransformationRule/TransformationRule/NAC/2.instance"
  323. },
  324. "$type": "/Formalisms/__Transformations__/TransformationRule/TransformationRule.defaultIcons/NACIcon"
  325. }
  326. },
  327. "edges": [],
  328. "metamodels": [
  329. "/Formalisms/__Transformations__/TransformationRule/TransformationRule.defaultIcons"
  330. ]
  331. },
  332. "asm": {
  333. "nodes": {
  334. "0": {
  335. "Condition": {
  336. "type": "code",
  337. "value": "result = True"
  338. },
  339. "$type": "/Formalisms/__Transformations__/TransformationRule/TransformationRule/LHS"
  340. },
  341. "1": {
  342. "Action": {
  343. "type": "code",
  344. "value": "pass"
  345. },
  346. "$type": "/Formalisms/__Transformations__/TransformationRule/TransformationRule/RHS"
  347. },
  348. "2": {
  349. "name": {
  350. "type": "string",
  351. "value": "NAC_"
  352. },
  353. "Condition": {
  354. "type": "code",
  355. "value": "result = True"
  356. },
  357. "$type": "/Formalisms/__Transformations__/TransformationRule/TransformationRule/NAC"
  358. }
  359. },
  360. "edges": [],
  361. "metamodels": [
  362. "/Formalisms/__Transformations__/TransformationRule/TransformationRule"
  363. ]
  364. }
  365. }