R_CreateTable.model 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676
  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. 49,
  13. 175
  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. 525,
  103. 175
  104. ]
  105. },
  106. "orientation": {
  107. "type": "double",
  108. "value": 0
  109. },
  110. "scale": {
  111. "type": "list<double>",
  112. "value": [
  113. 1.4177777777777778,
  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": "TableIcon"
  188. },
  189. "position": {
  190. "type": "list<double>",
  191. "value": [
  192. 638,
  193. 292
  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": "/* mapping and parsing code is disabled by default because pattern attribute values are code */"
  210. },
  211. "parser": {
  212. "type": "code",
  213. "value": "/* mapping and parsing code is disabled by default because pattern attribute values are code */"
  214. },
  215. "$contents": {
  216. "type": "map<string,*>",
  217. "value": {
  218. "nodes": {
  219. "1": {
  220. "width": {
  221. "type": "double",
  222. "value": 500
  223. },
  224. "height": {
  225. "type": "double",
  226. "value": 20
  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": "#000000",
  238. "fill-opacity": 0.75,
  239. "font-size": "20px",
  240. "stroke-width": 1,
  241. "arrow-start": "none",
  242. "arrow-end": "none",
  243. "": ""
  244. }
  245. },
  246. "mapper": {
  247. "type": "code",
  248. "value": "/* mapping and parsing code is disabled by default because pattern attribute values are code */"
  249. },
  250. "parser": {
  251. "type": "code",
  252. "value": "/* mapping and parsing code is disabled by default because pattern attribute values are code */"
  253. },
  254. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  255. "position": {
  256. "type": "list<double>",
  257. "value": [
  258. 5,
  259. 4
  260. ]
  261. },
  262. "orientation": {
  263. "type": "double",
  264. "value": 0
  265. },
  266. "scale": {
  267. "type": "list<double>",
  268. "value": [
  269. 1,
  270. 1
  271. ]
  272. }
  273. },
  274. "2": {
  275. "width": {
  276. "type": "double",
  277. "value": 20
  278. },
  279. "height": {
  280. "type": "double",
  281. "value": 100
  282. },
  283. "cornerRadius": {
  284. "type": "double",
  285. "value": 0
  286. },
  287. "style": {
  288. "type": "map<string,string>",
  289. "value": {
  290. "stroke": "#000000",
  291. "stroke-dasharray": "",
  292. "fill": "#000000",
  293. "fill-opacity": 0.75,
  294. "font-size": "20px",
  295. "stroke-width": 1,
  296. "arrow-start": "none",
  297. "arrow-end": "none",
  298. "": ""
  299. }
  300. },
  301. "mapper": {
  302. "type": "code",
  303. "value": "/* mapping and parsing code is disabled by default because pattern attribute values are code */"
  304. },
  305. "parser": {
  306. "type": "code",
  307. "value": "/* mapping and parsing code is disabled by default because pattern attribute values are code */"
  308. },
  309. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  310. "position": {
  311. "type": "list<double>",
  312. "value": [
  313. 31,
  314. 26
  315. ]
  316. },
  317. "orientation": {
  318. "type": "double",
  319. "value": 0
  320. },
  321. "scale": {
  322. "type": "list<double>",
  323. "value": [
  324. 1,
  325. 1
  326. ]
  327. }
  328. },
  329. "3": {
  330. "width": {
  331. "type": "double",
  332. "value": 20
  333. },
  334. "height": {
  335. "type": "double",
  336. "value": 100
  337. },
  338. "cornerRadius": {
  339. "type": "double",
  340. "value": 0
  341. },
  342. "style": {
  343. "type": "map<string,string>",
  344. "value": {
  345. "stroke": "#000000",
  346. "stroke-dasharray": "",
  347. "fill": "#000000",
  348. "fill-opacity": 0.75,
  349. "font-size": "20px",
  350. "stroke-width": 1,
  351. "arrow-start": "none",
  352. "arrow-end": "none",
  353. "": ""
  354. }
  355. },
  356. "mapper": {
  357. "type": "code",
  358. "value": "/* mapping and parsing code is disabled by default because pattern attribute values are code */"
  359. },
  360. "parser": {
  361. "type": "code",
  362. "value": "/* mapping and parsing code is disabled by default because pattern attribute values are code */"
  363. },
  364. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  365. "position": {
  366. "type": "list<double>",
  367. "value": [
  368. 406,
  369. 26
  370. ]
  371. },
  372. "orientation": {
  373. "type": "double",
  374. "value": 0
  375. },
  376. "scale": {
  377. "type": "list<double>",
  378. "value": [
  379. 1,
  380. 1
  381. ]
  382. }
  383. },
  384. "4": {
  385. "width": {
  386. "type": "double",
  387. "value": 20
  388. },
  389. "height": {
  390. "type": "double",
  391. "value": 50
  392. },
  393. "cornerRadius": {
  394. "type": "double",
  395. "value": 0
  396. },
  397. "style": {
  398. "type": "map<string,string>",
  399. "value": {
  400. "stroke": "#000000",
  401. "stroke-dasharray": "",
  402. "fill": "#000000",
  403. "fill-opacity": 0.75,
  404. "font-size": "20px",
  405. "stroke-width": 1,
  406. "arrow-start": "none",
  407. "arrow-end": "none",
  408. "": ""
  409. }
  410. },
  411. "mapper": {
  412. "type": "code",
  413. "value": "/* mapping and parsing code is disabled by default because pattern attribute values are code */"
  414. },
  415. "parser": {
  416. "type": "code",
  417. "value": "/* mapping and parsing code is disabled by default because pattern attribute values are code */"
  418. },
  419. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  420. "position": {
  421. "type": "list<double>",
  422. "value": [
  423. 96,
  424. 26
  425. ]
  426. },
  427. "orientation": {
  428. "type": "double",
  429. "value": 0
  430. },
  431. "scale": {
  432. "type": "list<double>",
  433. "value": [
  434. 1,
  435. 1
  436. ]
  437. }
  438. },
  439. "5": {
  440. "width": {
  441. "type": "double",
  442. "value": 20
  443. },
  444. "height": {
  445. "type": "double",
  446. "value": 50
  447. },
  448. "cornerRadius": {
  449. "type": "double",
  450. "value": 0
  451. },
  452. "style": {
  453. "type": "map<string,string>",
  454. "value": {
  455. "stroke": "#000000",
  456. "stroke-dasharray": "",
  457. "fill": "#000000",
  458. "fill-opacity": 0.75,
  459. "font-size": "20px",
  460. "stroke-width": 1,
  461. "arrow-start": "none",
  462. "arrow-end": "none",
  463. "": ""
  464. }
  465. },
  466. "mapper": {
  467. "type": "code",
  468. "value": "/* mapping and parsing code is disabled by default because pattern attribute values are code */"
  469. },
  470. "parser": {
  471. "type": "code",
  472. "value": "/* mapping and parsing code is disabled by default because pattern attribute values are code */"
  473. },
  474. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  475. "position": {
  476. "type": "list<double>",
  477. "value": [
  478. 462,
  479. 26
  480. ]
  481. },
  482. "orientation": {
  483. "type": "double",
  484. "value": 0
  485. },
  486. "scale": {
  487. "type": "list<double>",
  488. "value": [
  489. 1,
  490. 1
  491. ]
  492. }
  493. },
  494. "__pLabelText": {
  495. "position": {
  496. "type": "list<double>",
  497. "value": [
  498. 0,
  499. 0
  500. ]
  501. },
  502. "orientation": {
  503. "type": "double",
  504. "value": 0
  505. },
  506. "scale": {
  507. "type": "list<double>",
  508. "value": [
  509. 1,
  510. 1
  511. ]
  512. },
  513. "textContent": {
  514. "type": "string",
  515. "value": "0"
  516. },
  517. "style": {
  518. "type": "map<string,string>",
  519. "value": {
  520. "stroke": "#6000ff",
  521. "fill": "#6000ff",
  522. "font-size": "15px",
  523. "opacity": "1"
  524. }
  525. },
  526. "mapper": {
  527. "type": "code",
  528. "value": "({'textContent':getAttr('__pLabel')})"
  529. },
  530. "parser": {
  531. "type": "code",
  532. "value": "({'__pLabel':getAttr('textContent')})"
  533. },
  534. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text"
  535. }
  536. },
  537. "edges": []
  538. }
  539. },
  540. "$asuri": {
  541. "type": "string",
  542. "value": "/Formalisms/DiningRoom/DiningRoom.pattern/__pTable/2.instance"
  543. },
  544. "$type": "/Formalisms/DiningRoom/DiningRoom.defaultIcons.pattern/__pTableIcon"
  545. },
  546. "3": {
  547. "link-style": {
  548. "type": "map<string,string>",
  549. "value": {
  550. "stroke": "#00ff00",
  551. "stroke-dasharray": "",
  552. "stroke-opacity": 0.2,
  553. "stroke-width": 1,
  554. "arrow-start": "none",
  555. "arrow-end": "classic-wide-long"
  556. }
  557. },
  558. "typename": {
  559. "type": "string",
  560. "value": "PatternContentsLink"
  561. },
  562. "position": {
  563. "type": "list<double>",
  564. "value": [
  565. 707.75,
  566. 265
  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. "mapper": {
  581. "type": "code",
  582. "value": ""
  583. },
  584. "parser": {
  585. "type": "code",
  586. "value": ""
  587. },
  588. "$contents": {
  589. "type": "map<string,*>",
  590. "value": {
  591. "nodes": {},
  592. "edges": []
  593. }
  594. },
  595. "$asuri": {
  596. "type": "string",
  597. "value": "/Formalisms/__Transformations__/TransformationRule/TransformationRule/PatternContents/3.instance"
  598. },
  599. "$segments": {
  600. "type": "map<string,list<string>>",
  601. "value": {
  602. "/Formalisms/__Transformations__/TransformationRule/TransformationRule.defaultIcons/RHSIcon/1.instance--/Formalisms/__Transformations__/TransformationRule/TransformationRule.defaultIcons/PatternContentsLink/3.instance": "M525,175L707.75,265",
  603. "/Formalisms/__Transformations__/TransformationRule/TransformationRule.defaultIcons/PatternContentsLink/3.instance--/Formalisms/DiningRoom/DiningRoom.defaultIcons.pattern/__pTableIcon/2.instance": "M707.8171539959642,265.0330717353586L890.4994045451156,354.99970675272453"
  604. }
  605. },
  606. "$type": "/Formalisms/__Transformations__/TransformationRule/TransformationRule.defaultIcons/PatternContentsLink"
  607. }
  608. },
  609. "edges": [],
  610. "metamodels": [
  611. "/Formalisms/DiningRoom/DiningRoom.defaultIcons.pattern",
  612. "/Formalisms/__Transformations__/TransformationRule/TransformationRule.defaultIcons"
  613. ]
  614. },
  615. "asm": {
  616. "nodes": {
  617. "0": {
  618. "Condition": {
  619. "type": "code",
  620. "value": "result = True"
  621. },
  622. "$type": "/Formalisms/__Transformations__/TransformationRule/TransformationRule/LHS"
  623. },
  624. "1": {
  625. "Action": {
  626. "type": "code",
  627. "value": ""
  628. },
  629. "$type": "/Formalisms/__Transformations__/TransformationRule/TransformationRule/RHS"
  630. },
  631. "2": {
  632. "__pLabel": {
  633. "type": "string",
  634. "value": "0"
  635. },
  636. "__pPivotIn": {
  637. "type": "string",
  638. "value": ""
  639. },
  640. "__pPivotOut": {
  641. "type": "string",
  642. "value": ""
  643. },
  644. "__pMatchSubtypes": {
  645. "type": "boolean"
  646. },
  647. "x": {
  648. "type": "code",
  649. "value": "result = getAttr()"
  650. },
  651. "y": {
  652. "type": "code",
  653. "value": "result = getAttr()"
  654. },
  655. "$type": "/Formalisms/DiningRoom/DiningRoom.pattern/__pTable"
  656. },
  657. "3": {
  658. "$type": "/Formalisms/__Transformations__/TransformationRule/TransformationRule/PatternContents"
  659. }
  660. },
  661. "edges": [
  662. {
  663. "src": "1",
  664. "dest": "3"
  665. },
  666. {
  667. "src": "3",
  668. "dest": "2"
  669. }
  670. ],
  671. "metamodels": [
  672. "/Formalisms/DiningRoom/DiningRoom.pattern",
  673. "/Formalisms/__Transformations__/TransformationRule/TransformationRule"
  674. ]
  675. }
  676. }