dialogBehaviour.model 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681
  1. {
  2. "csm": {
  3. "nodes": {
  4. "0": {
  5. "typename": {
  6. "type": "string",
  7. "value": "BasicStateIcon"
  8. },
  9. "position": {
  10. "type": "list<double>",
  11. "value": [
  12. 199,
  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. "r": {
  41. "type": "double",
  42. "value": 20
  43. },
  44. "style": {
  45. "type": "map<string,string>",
  46. "value": {
  47. "stroke": "#7CFC00",
  48. "fill": "#E6E6FA",
  49. "fill-opacity": 0.75,
  50. "stroke-width": 2
  51. }
  52. },
  53. "mapper": {
  54. "type": "code",
  55. "value": "var style = { \"stroke\": \"#20B2AA\",\n\t\t \"fill\": \"#E6E6FA\",\n\t\t \"fill-opacity\": 0.75,\n \t\t \"stroke-width\": 2};\n\nif( getAttr('isStart') )\n\tstyle['stroke'] = '#7CFC00';\n\n({'style' : style})"
  56. },
  57. "parser": {
  58. "type": "code",
  59. "value": ""
  60. },
  61. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Circle",
  62. "position": {
  63. "type": "list<double>",
  64. "value": [
  65. 18,
  66. 1
  67. ]
  68. },
  69. "orientation": {
  70. "type": "double",
  71. "value": 0
  72. },
  73. "scale": {
  74. "type": "list<double>",
  75. "value": [
  76. 1,
  77. 1
  78. ]
  79. }
  80. },
  81. "5": {
  82. "textContent": {
  83. "type": "string",
  84. "value": "OPEN"
  85. },
  86. "style": {
  87. "type": "map<string,string>",
  88. "value": {
  89. "stroke": "#000000",
  90. "stroke-dasharray": "",
  91. "fill": "#ffffff",
  92. "fill-opacity": 0.75,
  93. "font-size": "13px",
  94. "stroke-width": 1
  95. }
  96. },
  97. "mapper": {
  98. "type": "code",
  99. "value": "({'textContent':getAttr('name')})"
  100. },
  101. "parser": {
  102. "type": "code",
  103. "value": "({'name':getAttr('textContent')})"
  104. },
  105. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  106. "position": {
  107. "type": "list<double>",
  108. "value": [
  109. 2,
  110. 43
  111. ]
  112. },
  113. "orientation": {
  114. "type": "double",
  115. "value": 0
  116. },
  117. "scale": {
  118. "type": "list<double>",
  119. "value": [
  120. 1,
  121. 1
  122. ]
  123. }
  124. },
  125. "6": {
  126. "distance": {
  127. "type": "double",
  128. "value": 10
  129. },
  130. "alignment": {
  131. "type": "ENUM(\"right\",\"left\",\"center\")",
  132. "value": "\"center\""
  133. },
  134. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Below",
  135. "position": {
  136. "type": "list<double>",
  137. "value": [
  138. 32.99899850809555,
  139. 45.99899850809561
  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": "#00ff00",
  157. "stroke-dasharray": "",
  158. "stroke-opacity": 1,
  159. "arrow-start": "none",
  160. "arrow-end": "classic-wide-long"
  161. }
  162. }
  163. }
  164. },
  165. "edges": [
  166. {
  167. "src": "5",
  168. "dest": "6"
  169. },
  170. {
  171. "src": "6",
  172. "dest": "4"
  173. }
  174. ]
  175. }
  176. },
  177. "$asuri": {
  178. "type": "string",
  179. "value": "/Formalisms/SimpleStateChart/SimpleStateChart/BasicState/0.instance"
  180. },
  181. "$type": "/Formalisms/SimpleStateChart/SimpleStateChart.defaultIcons/BasicStateIcon"
  182. },
  183. "1": {
  184. "typename": {
  185. "type": "string",
  186. "value": "BasicStateIcon"
  187. },
  188. "position": {
  189. "type": "list<double>",
  190. "value": [
  191. 473,
  192. 374
  193. ]
  194. },
  195. "orientation": {
  196. "type": "double",
  197. "value": 0
  198. },
  199. "scale": {
  200. "type": "list<double>",
  201. "value": [
  202. 1,
  203. 1
  204. ]
  205. },
  206. "mapper": {
  207. "type": "code",
  208. "value": ""
  209. },
  210. "parser": {
  211. "type": "code",
  212. "value": ""
  213. },
  214. "$contents": {
  215. "type": "map<string,*>",
  216. "value": {
  217. "nodes": {
  218. "4": {
  219. "r": {
  220. "type": "double",
  221. "value": 20
  222. },
  223. "style": {
  224. "type": "map<string,string>",
  225. "value": {
  226. "stroke": "#20B2AA",
  227. "fill": "#E6E6FA",
  228. "fill-opacity": 0.75,
  229. "stroke-width": 2
  230. }
  231. },
  232. "mapper": {
  233. "type": "code",
  234. "value": "var style = { \"stroke\": \"#20B2AA\",\n\t\t \"fill\": \"#E6E6FA\",\n\t\t \"fill-opacity\": 0.75,\n \t\t \"stroke-width\": 2};\n\nif( getAttr('isStart') )\n\tstyle['stroke'] = '#7CFC00';\n\n({'style' : style})"
  235. },
  236. "parser": {
  237. "type": "code",
  238. "value": ""
  239. },
  240. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Circle",
  241. "position": {
  242. "type": "list<double>",
  243. "value": [
  244. 18,
  245. 1
  246. ]
  247. },
  248. "orientation": {
  249. "type": "double",
  250. "value": 0
  251. },
  252. "scale": {
  253. "type": "list<double>",
  254. "value": [
  255. 1,
  256. 1
  257. ]
  258. }
  259. },
  260. "5": {
  261. "textContent": {
  262. "type": "string",
  263. "value": "CLOSED"
  264. },
  265. "style": {
  266. "type": "map<string,string>",
  267. "value": {
  268. "stroke": "#000000",
  269. "stroke-dasharray": "",
  270. "fill": "#ffffff",
  271. "fill-opacity": 0.75,
  272. "font-size": "13px",
  273. "stroke-width": 1
  274. }
  275. },
  276. "mapper": {
  277. "type": "code",
  278. "value": "({'textContent':getAttr('name')})"
  279. },
  280. "parser": {
  281. "type": "code",
  282. "value": "({'name':getAttr('textContent')})"
  283. },
  284. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  285. "position": {
  286. "type": "list<double>",
  287. "value": [
  288. 2,
  289. 43
  290. ]
  291. },
  292. "orientation": {
  293. "type": "double",
  294. "value": 0
  295. },
  296. "scale": {
  297. "type": "list<double>",
  298. "value": [
  299. 1,
  300. 1
  301. ]
  302. }
  303. },
  304. "6": {
  305. "distance": {
  306. "type": "double",
  307. "value": 10
  308. },
  309. "alignment": {
  310. "type": "ENUM(\"right\",\"left\",\"center\")",
  311. "value": "\"center\""
  312. },
  313. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Below",
  314. "position": {
  315. "type": "list<double>",
  316. "value": [
  317. 32.99899850809555,
  318. 45.99899850809561
  319. ]
  320. },
  321. "orientation": {
  322. "type": "double",
  323. "value": 0
  324. },
  325. "scale": {
  326. "type": "list<double>",
  327. "value": [
  328. 1,
  329. 1
  330. ]
  331. },
  332. "link-style": {
  333. "type": "map<string,string>",
  334. "value": {
  335. "stroke": "#00ff00",
  336. "stroke-dasharray": "",
  337. "stroke-opacity": 1,
  338. "arrow-start": "none",
  339. "arrow-end": "classic-wide-long"
  340. }
  341. }
  342. }
  343. },
  344. "edges": [
  345. {
  346. "src": "5",
  347. "dest": "6"
  348. },
  349. {
  350. "src": "6",
  351. "dest": "4"
  352. }
  353. ]
  354. }
  355. },
  356. "$asuri": {
  357. "type": "string",
  358. "value": "/Formalisms/SimpleStateChart/SimpleStateChart/BasicState/1.instance"
  359. },
  360. "$type": "/Formalisms/SimpleStateChart/SimpleStateChart.defaultIcons/BasicStateIcon"
  361. },
  362. "2": {
  363. "link-style": {
  364. "type": "map<string,string>",
  365. "value": {
  366. "stroke": "#000000",
  367. "stroke-dasharray": "",
  368. "stroke-opacity": 1,
  369. "stroke-width": 1,
  370. "arrow-start": "none",
  371. "arrow-end": "classic-wide-long"
  372. }
  373. },
  374. "typename": {
  375. "type": "string",
  376. "value": "TransitionLink"
  377. },
  378. "position": {
  379. "type": "list<double>",
  380. "value": [
  381. 358.48849144406114,
  382. 276.4989127234831
  383. ]
  384. },
  385. "orientation": {
  386. "type": "double",
  387. "value": 0
  388. },
  389. "scale": {
  390. "type": "list<double>",
  391. "value": [
  392. 1,
  393. 1
  394. ]
  395. },
  396. "mapper": {
  397. "type": "code",
  398. "value": ""
  399. },
  400. "parser": {
  401. "type": "code",
  402. "value": ""
  403. },
  404. "$contents": {
  405. "type": "map<string,*>",
  406. "value": {
  407. "nodes": {
  408. "16": {
  409. "textContent": {
  410. "type": "string",
  411. "value": "KEYUP_ESC ||\nCANCELED_DIALOG ||\nOKAYED_DIALOG"
  412. },
  413. "style": {
  414. "type": "map<string,string>",
  415. "value": {
  416. "stroke": "#000000",
  417. "stroke-dasharray": "",
  418. "fill": "#ffffff",
  419. "fill-opacity": 0.75,
  420. "font-size": "13px",
  421. "stroke-width": 1
  422. }
  423. },
  424. "mapper": {
  425. "type": "code",
  426. "value": "({ 'textContent' : getAttr('triggers').join(' ||\\n') })"
  427. },
  428. "parser": {
  429. "type": "code",
  430. "value": ""
  431. },
  432. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  433. "position": {
  434. "type": "list<double>",
  435. "value": [
  436. 1,
  437. 0
  438. ]
  439. },
  440. "orientation": {
  441. "type": "double",
  442. "value": 0
  443. },
  444. "scale": {
  445. "type": "list<double>",
  446. "value": [
  447. 1,
  448. 1
  449. ]
  450. }
  451. }
  452. },
  453. "edges": []
  454. }
  455. },
  456. "$asuri": {
  457. "type": "string",
  458. "value": "/Formalisms/SimpleStateChart/SimpleStateChart/Transition/2.instance"
  459. },
  460. "$segments": {
  461. "type": "map<string,list<string>>",
  462. "value": {
  463. "/Formalisms/SimpleStateChart/SimpleStateChart.defaultIcons/BasicStateIcon/0.instance--/Formalisms/SimpleStateChart/SimpleStateChart.defaultIcons/TransitionLink/2.instance": "M257,249L383,284",
  464. "/Formalisms/SimpleStateChart/SimpleStateChart.defaultIcons/TransitionLink/2.instance--/Formalisms/SimpleStateChart/SimpleStateChart.defaultIcons/BasicStateIcon/1.instance": "M383,284L490.99965734617837,388.9990966399248"
  465. }
  466. },
  467. "$type": "/Formalisms/SimpleStateChart/SimpleStateChart.defaultIcons/TransitionLink"
  468. },
  469. "3": {
  470. "link-style": {
  471. "type": "map<string,string>",
  472. "value": {
  473. "stroke": "#000000",
  474. "stroke-dasharray": "",
  475. "stroke-opacity": 1,
  476. "stroke-width": 1,
  477. "arrow-start": "none",
  478. "arrow-end": "classic-wide-long"
  479. }
  480. },
  481. "typename": {
  482. "type": "string",
  483. "value": "TransitionLink"
  484. },
  485. "position": {
  486. "type": "list<double>",
  487. "value": [
  488. "354.3752325415361,50%",
  489. "353.5363182827484,50%"
  490. ]
  491. },
  492. "orientation": {
  493. "type": "double",
  494. "value": 0
  495. },
  496. "scale": {
  497. "type": "list<double>",
  498. "value": [
  499. 1,
  500. 1
  501. ]
  502. },
  503. "mapper": {
  504. "type": "code",
  505. "value": ""
  506. },
  507. "parser": {
  508. "type": "code",
  509. "value": ""
  510. },
  511. "$contents": {
  512. "type": "map<string,*>",
  513. "value": {
  514. "nodes": {
  515. "16": {
  516. "textContent": {
  517. "type": "string",
  518. "value": "SHOW_DIALOG"
  519. },
  520. "style": {
  521. "type": "map<string,string>",
  522. "value": {
  523. "stroke": "#000000",
  524. "stroke-dasharray": "",
  525. "fill": "#ffffff",
  526. "fill-opacity": 0.75,
  527. "font-size": "13px",
  528. "stroke-width": 1
  529. }
  530. },
  531. "mapper": {
  532. "type": "code",
  533. "value": "({ 'textContent' : getAttr('triggers').join(' ||\\n') })"
  534. },
  535. "parser": {
  536. "type": "code",
  537. "value": ""
  538. },
  539. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  540. "position": {
  541. "type": "list<double>",
  542. "value": [
  543. 1,
  544. 0
  545. ]
  546. },
  547. "orientation": {
  548. "type": "double",
  549. "value": 0
  550. },
  551. "scale": {
  552. "type": "list<double>",
  553. "value": [
  554. 1,
  555. 1
  556. ]
  557. }
  558. }
  559. },
  560. "edges": []
  561. }
  562. },
  563. "$asuri": {
  564. "type": "string",
  565. "value": "/Formalisms/SimpleStateChart/SimpleStateChart/Transition/3.instance"
  566. },
  567. "$segments": {
  568. "type": "map<string,list<string>>",
  569. "value": {
  570. "/Formalisms/SimpleStateChart/SimpleStateChart.defaultIcons/BasicStateIcon/1.instance--/Formalisms/SimpleStateChart/SimpleStateChart.defaultIcons/TransitionLink/3.instance": "M491,398L354.3752325415361,353.5363182827484",
  571. "/Formalisms/SimpleStateChart/SimpleStateChart.defaultIcons/TransitionLink/3.instance--/Formalisms/SimpleStateChart/SimpleStateChart.defaultIcons/BasicStateIcon/0.instance": "M354.3752325415361,353.5363182827484L322,343L253.0001741211973,258.0002144971271"
  572. }
  573. },
  574. "$type": "/Formalisms/SimpleStateChart/SimpleStateChart.defaultIcons/TransitionLink"
  575. }
  576. },
  577. "edges": [],
  578. "metamodels": [
  579. "/Formalisms/SimpleStateChart/SimpleStateChart.defaultIcons"
  580. ]
  581. },
  582. "asm": {
  583. "nodes": {
  584. "0": {
  585. "name": {
  586. "type": "string",
  587. "value": "OPEN"
  588. },
  589. "entryAction": {
  590. "type": "code",
  591. "value": "__showDialog();"
  592. },
  593. "exitAction": {
  594. "type": "code",
  595. "value": ""
  596. },
  597. "isStart": {
  598. "type": "boolean",
  599. "value": true
  600. },
  601. "$type": "/Formalisms/SimpleStateChart/SimpleStateChart/BasicState"
  602. },
  603. "1": {
  604. "name": {
  605. "type": "string",
  606. "value": "CLOSED"
  607. },
  608. "entryAction": {
  609. "type": "code",
  610. "value": "__closeDialog();"
  611. },
  612. "exitAction": {
  613. "type": "code",
  614. "value": ""
  615. },
  616. "isStart": {
  617. "type": "boolean",
  618. "value": false
  619. },
  620. "$type": "/Formalisms/SimpleStateChart/SimpleStateChart/BasicState"
  621. },
  622. "2": {
  623. "triggers": {
  624. "type": "list<string>",
  625. "value": [
  626. "KEYUP_ESC",
  627. "CANCELED_DIALOG",
  628. "OKAYED_DIALOG"
  629. ]
  630. },
  631. "guard": {
  632. "type": "code",
  633. "value": "true"
  634. },
  635. "action": {
  636. "type": "code",
  637. "value": ""
  638. },
  639. "$type": "/Formalisms/SimpleStateChart/SimpleStateChart/Transition"
  640. },
  641. "3": {
  642. "triggers": {
  643. "type": "list<string>",
  644. "value": [
  645. "SHOW_DIALOG"
  646. ]
  647. },
  648. "guard": {
  649. "type": "code",
  650. "value": "true"
  651. },
  652. "action": {
  653. "type": "code",
  654. "value": ""
  655. },
  656. "$type": "/Formalisms/SimpleStateChart/SimpleStateChart/Transition"
  657. }
  658. },
  659. "edges": [
  660. {
  661. "src": "0",
  662. "dest": "2"
  663. },
  664. {
  665. "src": "2",
  666. "dest": "1"
  667. },
  668. {
  669. "src": "1",
  670. "dest": "3"
  671. },
  672. {
  673. "src": "3",
  674. "dest": "0"
  675. }
  676. ],
  677. "metamodels": [
  678. "/Formalisms/SimpleStateChart/SimpleStateChart"
  679. ]
  680. }
  681. }