ModelVerse.buttons.model 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611
  1. {
  2. "csm": {
  3. "nodes": {
  4. "0": {
  5. "typename": {
  6. "type": "string",
  7. "value": "ButtonIcon"
  8. },
  9. "position": {
  10. "type": "list<double>",
  11. "value": [
  12. 499,
  13. 271
  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. "1": {
  40. "width": {
  41. "type": "double",
  42. "value": "120"
  43. },
  44. "height": {
  45. "type": "double",
  46. "value": "50"
  47. },
  48. "cornerRadius": {
  49. "type": "double",
  50. "value": "25"
  51. },
  52. "style": {
  53. "type": "map<string,string>",
  54. "value": {
  55. "stroke": "#af0000",
  56. "stroke-dasharray": "",
  57. "fill": "#000000",
  58. "fill-opacity": 0.05,
  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. "2": {
  91. "textContent": {
  92. "type": "string",
  93. "value": "connectMV"
  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": "13px",
  103. "stroke-width": 1
  104. }
  105. },
  106. "mapper": {
  107. "type": "code",
  108. "value": "({\"textContent\":getAttr(\"name\")})"
  109. },
  110. "parser": {
  111. "type": "code",
  112. "value": "({\"name\":getAttr(\"textContent\")})"
  113. },
  114. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  115. "position": {
  116. "type": "list<double>",
  117. "value": [
  118. 10,
  119. 13
  120. ]
  121. },
  122. "orientation": {
  123. "type": "double",
  124. "value": 0
  125. },
  126. "scale": {
  127. "type": "list<double>",
  128. "value": [
  129. 1,
  130. 1
  131. ]
  132. }
  133. },
  134. "3": {
  135. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  136. "position": {
  137. "type": "list<double>",
  138. "value": [
  139. 17.74899850809561,
  140. 12.998998508095553
  141. ]
  142. },
  143. "orientation": {
  144. "type": "double",
  145. "value": 0
  146. },
  147. "scale": {
  148. "type": "list<double>",
  149. "value": [
  150. 1,
  151. 1
  152. ]
  153. },
  154. "link-style": {
  155. "type": "map<string,string>",
  156. "value": {
  157. "stroke": "#00ffff",
  158. "stroke-dasharray": "",
  159. "stroke-opacity": 0.1,
  160. "arrow-start": "none",
  161. "arrow-end": "classic-wide-long"
  162. }
  163. }
  164. }
  165. },
  166. "edges": [
  167. {
  168. "src": "1",
  169. "dest": 3
  170. },
  171. {
  172. "src": 3,
  173. "dest": "2"
  174. }
  175. ]
  176. }
  177. },
  178. "$asuri": {
  179. "type": "string",
  180. "value": "/Formalisms/__Utilities__/Buttons/Buttons/Button/0.instance"
  181. },
  182. "$type": "/Formalisms/__Utilities__/Buttons/Buttons.defaultIcons/ButtonIcon"
  183. },
  184. "1": {
  185. "typename": {
  186. "type": "string",
  187. "value": "ButtonIcon"
  188. },
  189. "position": {
  190. "type": "list<double>",
  191. "value": [
  192. 708,
  193. 315
  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": "120"
  223. },
  224. "height": {
  225. "type": "double",
  226. "value": "50"
  227. },
  228. "cornerRadius": {
  229. "type": "double",
  230. "value": "25"
  231. },
  232. "style": {
  233. "type": "map<string,string>",
  234. "value": {
  235. "stroke": "#af0000",
  236. "stroke-dasharray": "",
  237. "fill": "#000000",
  238. "fill-opacity": 0.05,
  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. 0
  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. "2": {
  271. "textContent": {
  272. "type": "string",
  273. "value": "loadModel"
  274. },
  275. "style": {
  276. "type": "map<string,string>",
  277. "value": {
  278. "stroke": "#000000",
  279. "stroke-dasharray": "",
  280. "fill": "#ffffff",
  281. "fill-opacity": 0.75,
  282. "font-size": "13px",
  283. "stroke-width": 1
  284. }
  285. },
  286. "mapper": {
  287. "type": "code",
  288. "value": "({\"textContent\":getAttr(\"name\")})"
  289. },
  290. "parser": {
  291. "type": "code",
  292. "value": "({\"name\":getAttr(\"textContent\")})"
  293. },
  294. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  295. "position": {
  296. "type": "list<double>",
  297. "value": [
  298. 10,
  299. 13
  300. ]
  301. },
  302. "orientation": {
  303. "type": "double",
  304. "value": 0
  305. },
  306. "scale": {
  307. "type": "list<double>",
  308. "value": [
  309. 1,
  310. 1
  311. ]
  312. }
  313. },
  314. "3": {
  315. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  316. "position": {
  317. "type": "list<double>",
  318. "value": [
  319. 17.74899850809561,
  320. 12.998998508095553
  321. ]
  322. },
  323. "orientation": {
  324. "type": "double",
  325. "value": 0
  326. },
  327. "scale": {
  328. "type": "list<double>",
  329. "value": [
  330. 1,
  331. 1
  332. ]
  333. },
  334. "link-style": {
  335. "type": "map<string,string>",
  336. "value": {
  337. "stroke": "#00ffff",
  338. "stroke-dasharray": "",
  339. "stroke-opacity": 0.1,
  340. "arrow-start": "none",
  341. "arrow-end": "classic-wide-long"
  342. }
  343. }
  344. }
  345. },
  346. "edges": [
  347. {
  348. "src": "1",
  349. "dest": 3
  350. },
  351. {
  352. "src": 3,
  353. "dest": "2"
  354. }
  355. ]
  356. }
  357. },
  358. "$asuri": {
  359. "type": "string",
  360. "value": "/Formalisms/__Utilities__/Buttons/Buttons/Button/1.instance"
  361. },
  362. "$type": "/Formalisms/__Utilities__/Buttons/Buttons.defaultIcons/ButtonIcon"
  363. },
  364. "21": {
  365. "typename": {
  366. "type": "string",
  367. "value": "ButtonIcon"
  368. },
  369. "position": {
  370. "type": "list<double>",
  371. "value": [
  372. 866,
  373. 384
  374. ]
  375. },
  376. "orientation": {
  377. "type": "double",
  378. "value": 0
  379. },
  380. "scale": {
  381. "type": "list<double>",
  382. "value": [
  383. 1,
  384. 1
  385. ]
  386. },
  387. "mapper": {
  388. "type": "code",
  389. "value": ""
  390. },
  391. "parser": {
  392. "type": "code",
  393. "value": ""
  394. },
  395. "$contents": {
  396. "type": "map<string,*>",
  397. "value": {
  398. "nodes": {
  399. "1": {
  400. "width": {
  401. "type": "double",
  402. "value": "120"
  403. },
  404. "height": {
  405. "type": "double",
  406. "value": "50"
  407. },
  408. "cornerRadius": {
  409. "type": "double",
  410. "value": "25"
  411. },
  412. "style": {
  413. "type": "map<string,string>",
  414. "value": {
  415. "stroke": "#af0000",
  416. "stroke-dasharray": "",
  417. "fill": "#000000",
  418. "fill-opacity": 0.05,
  419. "stroke-width": 2
  420. }
  421. },
  422. "mapper": {
  423. "type": "code",
  424. "value": ""
  425. },
  426. "parser": {
  427. "type": "code",
  428. "value": ""
  429. },
  430. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  431. "position": {
  432. "type": "list<double>",
  433. "value": [
  434. 0,
  435. 0
  436. ]
  437. },
  438. "orientation": {
  439. "type": "double",
  440. "value": 0
  441. },
  442. "scale": {
  443. "type": "list<double>",
  444. "value": [
  445. 1,
  446. 1
  447. ]
  448. }
  449. },
  450. "2": {
  451. "textContent": {
  452. "type": "string",
  453. "value": "saveModel"
  454. },
  455. "style": {
  456. "type": "map<string,string>",
  457. "value": {
  458. "stroke": "#000000",
  459. "stroke-dasharray": "",
  460. "fill": "#ffffff",
  461. "fill-opacity": 0.75,
  462. "font-size": "13px",
  463. "stroke-width": 1
  464. }
  465. },
  466. "mapper": {
  467. "type": "code",
  468. "value": "({\"textContent\":getAttr(\"name\")})"
  469. },
  470. "parser": {
  471. "type": "code",
  472. "value": "({\"name\":getAttr(\"textContent\")})"
  473. },
  474. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  475. "position": {
  476. "type": "list<double>",
  477. "value": [
  478. 10,
  479. 13
  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. "3": {
  495. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  496. "position": {
  497. "type": "list<double>",
  498. "value": [
  499. 17.74899850809561,
  500. 12.998998508095553
  501. ]
  502. },
  503. "orientation": {
  504. "type": "double",
  505. "value": 0
  506. },
  507. "scale": {
  508. "type": "list<double>",
  509. "value": [
  510. 1,
  511. 1
  512. ]
  513. },
  514. "link-style": {
  515. "type": "map<string,string>",
  516. "value": {
  517. "stroke": "#00ffff",
  518. "stroke-dasharray": "",
  519. "stroke-opacity": 0.1,
  520. "arrow-start": "none",
  521. "arrow-end": "classic-wide-long"
  522. }
  523. }
  524. }
  525. },
  526. "edges": [
  527. {
  528. "src": "1",
  529. "dest": 3
  530. },
  531. {
  532. "src": 3,
  533. "dest": "2"
  534. }
  535. ]
  536. }
  537. },
  538. "$asuri": {
  539. "type": "string",
  540. "value": "/Formalisms/__Utilities__/Buttons/Buttons/Button/21.instance"
  541. },
  542. "$type": "/Formalisms/__Utilities__/Buttons/Buttons.defaultIcons/ButtonIcon"
  543. }
  544. },
  545. "edges": [],
  546. "metamodels": [
  547. "/Formalisms/__Utilities__/Buttons/Buttons.defaultIcons",
  548. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons",
  549. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons",
  550. "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax.defaultIcons",
  551. "/Formalisms/SCCD/SCCD.defaultIcons"
  552. ]
  553. },
  554. "asm": {
  555. "nodes": {
  556. "0": {
  557. "name": {
  558. "type": "string",
  559. "value": "connectMV"
  560. },
  561. "tooltip": {
  562. "type": "string",
  563. "value": "(ALPHA) Connect to the ModelVerse"
  564. },
  565. "code": {
  566. "type": "code",
  567. "value": "new ModelVerseConnector();\nModelVerseConnector.connect();"
  568. },
  569. "$type": "/Formalisms/__Utilities__/Buttons/Buttons/Button"
  570. },
  571. "1": {
  572. "name": {
  573. "type": "string",
  574. "value": "loadModel"
  575. },
  576. "tooltip": {
  577. "type": "string",
  578. "value": "(ALPHA) Load a model from the ModelVerse"
  579. },
  580. "code": {
  581. "type": "code",
  582. "value": "if (ModelVerseConnector.connected == undefined){\n WindowManagement.openDialog(_ERROR,'Connect to the ModelVerse first');\n}else{\n ModelVerseConnector.choose_model();\n}"
  583. },
  584. "$type": "/Formalisms/__Utilities__/Buttons/Buttons/Button"
  585. },
  586. "21": {
  587. "name": {
  588. "type": "string",
  589. "value": "saveModel"
  590. },
  591. "tooltip": {
  592. "type": "string",
  593. "value": "(ALPHA) Save a model to the ModelVerse"
  594. },
  595. "code": {
  596. "type": "code",
  597. "value": "if (ModelVerseConnector.connected == undefined){\n WindowManagement.openDialog(_ERROR,'Connect to the ModelVerse first');\n}else{\n _httpReq('GET', '/current.state?wid='+_context.aswid, undefined, \n ModelVerseConnector.choose_model);\n}"
  598. },
  599. "$type": "/Formalisms/__Utilities__/Buttons/Buttons/Button"
  600. }
  601. },
  602. "edges": [],
  603. "metamodels": [
  604. "/Formalisms/__Utilities__/Buttons/Buttons",
  605. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram",
  606. "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax",
  607. "/Formalisms/SCCD/SCCD"
  608. ]
  609. }
  610. }