traffic.model 25 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082
  1. {
  2. "csm": {
  3. "nodes": {
  4. "0": {
  5. "typename": {
  6. "type": "string",
  7. "value": "GeneratorIcon"
  8. },
  9. "position": {
  10. "type": "list<double>",
  11. "value": [
  12. 131,
  13. 199
  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": "({'position':getAttr('position')})"
  30. },
  31. "parser": {
  32. "type": "code",
  33. "value": "({'position':getAttr('position')})"
  34. },
  35. "$contents": {
  36. "type": "map<string,*>",
  37. "value": {
  38. "nodes": {
  39. "12": {
  40. "textContent": {
  41. "type": "string",
  42. "value": "0 >>"
  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. "font-size": "20px",
  52. "stroke-width": 1,
  53. "arrow-start": "none",
  54. "arrow-end": "none"
  55. }
  56. },
  57. "mapper": {
  58. "type": "code",
  59. "value": "({'textContent':getAttr('producedCars')+ ' >>'})"
  60. },
  61. "parser": {
  62. "type": "code",
  63. "value": ""
  64. },
  65. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  66. "position": {
  67. "type": "list<double>",
  68. "value": [
  69. 3,
  70. 79
  71. ]
  72. },
  73. "orientation": {
  74. "type": "double",
  75. "value": 0
  76. },
  77. "scale": {
  78. "type": "list<double>",
  79. "value": [
  80. 1,
  81. 1
  82. ]
  83. }
  84. },
  85. "22": {
  86. "segments": {
  87. "type": "string",
  88. "value": "m0,0l80,40,l-80,40z"
  89. },
  90. "style": {
  91. "type": "map<string,string>",
  92. "value": {
  93. "stroke": "#aa00ff",
  94. "fill": "#aa00ff",
  95. "fill-opacity": 1,
  96. "arrow-start": "none",
  97. "arrow-end": "none"
  98. }
  99. },
  100. "mapper": {
  101. "type": "code",
  102. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  103. },
  104. "parser": {
  105. "type": "code",
  106. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  107. },
  108. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  109. "position": {
  110. "type": "list<double>",
  111. "value": [
  112. 1,
  113. -1
  114. ]
  115. },
  116. "orientation": {
  117. "type": "double",
  118. "value": 0
  119. },
  120. "scale": {
  121. "type": "list<double>",
  122. "value": [
  123. 1,
  124. 1
  125. ]
  126. }
  127. }
  128. },
  129. "edges": []
  130. }
  131. },
  132. "$asuri": {
  133. "type": "string",
  134. "value": "/__Examples__/Formalisms/Traffic/Traffic/Generator/0.instance"
  135. },
  136. "$type": "/__Examples__/Formalisms/Traffic/Traffic.defaultIcons/GeneratorIcon"
  137. },
  138. "1": {
  139. "typename": {
  140. "type": "string",
  141. "value": "RoadSegmentIcon"
  142. },
  143. "position": {
  144. "type": "list<double>",
  145. "value": [
  146. 211,
  147. 199
  148. ]
  149. },
  150. "orientation": {
  151. "type": "double",
  152. "value": 0
  153. },
  154. "scale": {
  155. "type": "list<double>",
  156. "value": [
  157. 1,
  158. 1
  159. ]
  160. },
  161. "mapper": {
  162. "type": "code",
  163. "value": "({'position':getAttr('position')})"
  164. },
  165. "parser": {
  166. "type": "code",
  167. "value": "({'position':getAttr('position')})"
  168. },
  169. "$contents": {
  170. "type": "map<string,*>",
  171. "value": {
  172. "nodes": {
  173. "36": {
  174. "width": {
  175. "type": "double",
  176. "value": 300
  177. },
  178. "height": {
  179. "type": "double",
  180. "value": 100
  181. },
  182. "cornerRadius": {
  183. "type": "double",
  184. "value": 0
  185. },
  186. "style": {
  187. "type": "map<string,string>",
  188. "value": {
  189. "stroke": "#000000",
  190. "stroke-dasharray": "",
  191. "fill": "#bbbbbb",
  192. "fill-opacity": 1,
  193. "font-size": "20px",
  194. "stroke-width": 1,
  195. "arrow-start": "none",
  196. "arrow-end": "none"
  197. }
  198. },
  199. "mapper": {
  200. "type": "code",
  201. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  202. },
  203. "parser": {
  204. "type": "code",
  205. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  206. },
  207. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  208. "position": {
  209. "type": "list<double>",
  210. "value": [
  211. 1,
  212. 0
  213. ]
  214. },
  215. "orientation": {
  216. "type": "double",
  217. "value": 0
  218. },
  219. "scale": {
  220. "type": "list<double>",
  221. "value": [
  222. 1,
  223. 1
  224. ]
  225. }
  226. },
  227. "37": {
  228. "segments": {
  229. "type": "string",
  230. "value": "m0,0l300,0"
  231. },
  232. "style": {
  233. "type": "map<string,string>",
  234. "value": {
  235. "stroke": "#ffff00",
  236. "stroke-dasharray": "- ",
  237. "fill": "#ffff00",
  238. "fill-opacity": 0.75,
  239. "stroke-width": 4,
  240. "arrow-start": "none",
  241. "arrow-end": "none"
  242. }
  243. },
  244. "mapper": {
  245. "type": "code",
  246. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  247. },
  248. "parser": {
  249. "type": "code",
  250. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  251. },
  252. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  253. "position": {
  254. "type": "list<double>",
  255. "value": [
  256. 3,
  257. 52
  258. ]
  259. },
  260. "orientation": {
  261. "type": "double",
  262. "value": 0
  263. },
  264. "scale": {
  265. "type": "list<double>",
  266. "value": [
  267. 1,
  268. 1
  269. ]
  270. }
  271. }
  272. },
  273. "edges": []
  274. }
  275. },
  276. "$asuri": {
  277. "type": "string",
  278. "value": "/__Examples__/Formalisms/Traffic/Traffic/RoadSegment/1.instance"
  279. },
  280. "$type": "/__Examples__/Formalisms/Traffic/Traffic.defaultIcons/RoadSegmentIcon"
  281. },
  282. "2": {
  283. "link-style": {
  284. "type": "map<string,string>",
  285. "value": {
  286. "stroke": "#00ff00",
  287. "stroke-dasharray": "",
  288. "stroke-opacity": 0.2,
  289. "stroke-width": 1,
  290. "arrow-start": "none",
  291. "arrow-end": "classic-wide-long"
  292. }
  293. },
  294. "typename": {
  295. "type": "string",
  296. "value": "RS2GLink"
  297. },
  298. "position": {
  299. "type": "list<double>",
  300. "value": [
  301. "223.5,50%",
  302. "233.5,50%"
  303. ]
  304. },
  305. "orientation": {
  306. "type": "double",
  307. "value": 0
  308. },
  309. "scale": {
  310. "type": "list<double>",
  311. "value": [
  312. 1,
  313. 1
  314. ]
  315. },
  316. "mapper": {
  317. "type": "code",
  318. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  319. },
  320. "parser": {
  321. "type": "code",
  322. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  323. },
  324. "$contents": {
  325. "type": "map<string,*>",
  326. "value": {
  327. "nodes": {},
  328. "edges": []
  329. }
  330. },
  331. "$asuri": {
  332. "type": "string",
  333. "value": "/__Examples__/Formalisms/Traffic/Traffic/RS2G/2.instance"
  334. },
  335. "$segments": {
  336. "type": "map<string,list<string>>",
  337. "value": {
  338. "/__Examples__/Formalisms/Traffic/Traffic.defaultIcons/RoadSegmentIcon/1.instance--/__Examples__/Formalisms/Traffic/Traffic.defaultIcons/RS2GLink/2.instance": "M291,235L223.5,233.5",
  339. "/__Examples__/Formalisms/Traffic/Traffic.defaultIcons/RS2GLink/2.instance--/__Examples__/Formalisms/Traffic/Traffic.defaultIcons/GeneratorIcon/0.instance": "M223.35044455321125,233.4966765456269L156.00088801097394,232.00001973357718"
  340. }
  341. },
  342. "$type": "/__Examples__/Formalisms/Traffic/Traffic.defaultIcons/RS2GLink"
  343. },
  344. "3": {
  345. "typename": {
  346. "type": "string",
  347. "value": "RoadSegmentIcon"
  348. },
  349. "position": {
  350. "type": "list<double>",
  351. "value": [
  352. 511,
  353. 199
  354. ]
  355. },
  356. "orientation": {
  357. "type": "double",
  358. "value": 0
  359. },
  360. "scale": {
  361. "type": "list<double>",
  362. "value": [
  363. 1,
  364. 1
  365. ]
  366. },
  367. "mapper": {
  368. "type": "code",
  369. "value": "({'position':getAttr('position')})"
  370. },
  371. "parser": {
  372. "type": "code",
  373. "value": "({'position':getAttr('position')})"
  374. },
  375. "$contents": {
  376. "type": "map<string,*>",
  377. "value": {
  378. "nodes": {
  379. "36": {
  380. "width": {
  381. "type": "double",
  382. "value": 300
  383. },
  384. "height": {
  385. "type": "double",
  386. "value": 100
  387. },
  388. "cornerRadius": {
  389. "type": "double",
  390. "value": 0
  391. },
  392. "style": {
  393. "type": "map<string,string>",
  394. "value": {
  395. "stroke": "#000000",
  396. "stroke-dasharray": "",
  397. "fill": "#bbbbbb",
  398. "fill-opacity": 1,
  399. "font-size": "20px",
  400. "stroke-width": 1,
  401. "arrow-start": "none",
  402. "arrow-end": "none"
  403. }
  404. },
  405. "mapper": {
  406. "type": "code",
  407. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  408. },
  409. "parser": {
  410. "type": "code",
  411. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  412. },
  413. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  414. "position": {
  415. "type": "list<double>",
  416. "value": [
  417. 1,
  418. 0
  419. ]
  420. },
  421. "orientation": {
  422. "type": "double",
  423. "value": 0
  424. },
  425. "scale": {
  426. "type": "list<double>",
  427. "value": [
  428. 1,
  429. 1
  430. ]
  431. }
  432. },
  433. "37": {
  434. "segments": {
  435. "type": "string",
  436. "value": "m0,0l300,0"
  437. },
  438. "style": {
  439. "type": "map<string,string>",
  440. "value": {
  441. "stroke": "#ffff00",
  442. "stroke-dasharray": "- ",
  443. "fill": "#ffff00",
  444. "fill-opacity": 0.75,
  445. "stroke-width": 4,
  446. "arrow-start": "none",
  447. "arrow-end": "none"
  448. }
  449. },
  450. "mapper": {
  451. "type": "code",
  452. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  453. },
  454. "parser": {
  455. "type": "code",
  456. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  457. },
  458. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  459. "position": {
  460. "type": "list<double>",
  461. "value": [
  462. 3,
  463. 52
  464. ]
  465. },
  466. "orientation": {
  467. "type": "double",
  468. "value": 0
  469. },
  470. "scale": {
  471. "type": "list<double>",
  472. "value": [
  473. 1,
  474. 1
  475. ]
  476. }
  477. }
  478. },
  479. "edges": []
  480. }
  481. },
  482. "$asuri": {
  483. "type": "string",
  484. "value": "/__Examples__/Formalisms/Traffic/Traffic/RoadSegment/3.instance"
  485. },
  486. "$type": "/__Examples__/Formalisms/Traffic/Traffic.defaultIcons/RoadSegmentIcon"
  487. },
  488. "4": {
  489. "link-style": {
  490. "type": "map<string,string>",
  491. "value": {
  492. "stroke": "#00ff00",
  493. "stroke-dasharray": "",
  494. "stroke-opacity": 0.2,
  495. "stroke-width": 1,
  496. "arrow-start": "none",
  497. "arrow-end": "classic-wide-long"
  498. }
  499. },
  500. "typename": {
  501. "type": "string",
  502. "value": "RS2RSLink"
  503. },
  504. "position": {
  505. "type": "list<double>",
  506. "value": [
  507. "529.5,50%",
  508. "224.5,50%"
  509. ]
  510. },
  511. "orientation": {
  512. "type": "double",
  513. "value": 0
  514. },
  515. "scale": {
  516. "type": "list<double>",
  517. "value": [
  518. 1,
  519. 1
  520. ]
  521. },
  522. "mapper": {
  523. "type": "code",
  524. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  525. },
  526. "parser": {
  527. "type": "code",
  528. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  529. },
  530. "$contents": {
  531. "type": "map<string,*>",
  532. "value": {
  533. "nodes": {},
  534. "edges": []
  535. }
  536. },
  537. "$asuri": {
  538. "type": "string",
  539. "value": "/__Examples__/Formalisms/Traffic/Traffic/RS2RS/4.instance"
  540. },
  541. "$segments": {
  542. "type": "map<string,list<string>>",
  543. "value": {
  544. "/__Examples__/Formalisms/Traffic/Traffic.defaultIcons/RoadSegmentIcon/3.instance--/__Examples__/Formalisms/Traffic/Traffic.defaultIcons/RS2RSLink/4.instance": "M576,227L529.5,224.5",
  545. "/__Examples__/Formalisms/Traffic/Traffic.defaultIcons/RS2RSLink/4.instance--/__Examples__/Formalisms/Traffic/Traffic.defaultIcons/RoadSegmentIcon/1.instance": "M529.4251613190415,224.49597641500222L483.00032234940454,222.00001733061313"
  546. }
  547. },
  548. "$type": "/__Examples__/Formalisms/Traffic/Traffic.defaultIcons/RS2RSLink"
  549. },
  550. "5": {
  551. "typename": {
  552. "type": "string",
  553. "value": "RoadSegmentIcon"
  554. },
  555. "position": {
  556. "type": "list<double>",
  557. "value": [
  558. 811,
  559. 199
  560. ]
  561. },
  562. "orientation": {
  563. "type": "double",
  564. "value": 0
  565. },
  566. "scale": {
  567. "type": "list<double>",
  568. "value": [
  569. 1,
  570. 1
  571. ]
  572. },
  573. "mapper": {
  574. "type": "code",
  575. "value": "({'position':getAttr('position')})"
  576. },
  577. "parser": {
  578. "type": "code",
  579. "value": "({'position':getAttr('position')})"
  580. },
  581. "$contents": {
  582. "type": "map<string,*>",
  583. "value": {
  584. "nodes": {
  585. "36": {
  586. "width": {
  587. "type": "double",
  588. "value": 300
  589. },
  590. "height": {
  591. "type": "double",
  592. "value": 100
  593. },
  594. "cornerRadius": {
  595. "type": "double",
  596. "value": 0
  597. },
  598. "style": {
  599. "type": "map<string,string>",
  600. "value": {
  601. "stroke": "#000000",
  602. "stroke-dasharray": "",
  603. "fill": "#bbbbbb",
  604. "fill-opacity": 1,
  605. "font-size": "20px",
  606. "stroke-width": 1,
  607. "arrow-start": "none",
  608. "arrow-end": "none"
  609. }
  610. },
  611. "mapper": {
  612. "type": "code",
  613. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  614. },
  615. "parser": {
  616. "type": "code",
  617. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  618. },
  619. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  620. "position": {
  621. "type": "list<double>",
  622. "value": [
  623. 1,
  624. 0
  625. ]
  626. },
  627. "orientation": {
  628. "type": "double",
  629. "value": 0
  630. },
  631. "scale": {
  632. "type": "list<double>",
  633. "value": [
  634. 1,
  635. 1
  636. ]
  637. }
  638. },
  639. "37": {
  640. "segments": {
  641. "type": "string",
  642. "value": "m0,0l300,0"
  643. },
  644. "style": {
  645. "type": "map<string,string>",
  646. "value": {
  647. "stroke": "#ffff00",
  648. "stroke-dasharray": "- ",
  649. "fill": "#ffff00",
  650. "fill-opacity": 0.75,
  651. "stroke-width": 4,
  652. "arrow-start": "none",
  653. "arrow-end": "none"
  654. }
  655. },
  656. "mapper": {
  657. "type": "code",
  658. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  659. },
  660. "parser": {
  661. "type": "code",
  662. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  663. },
  664. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  665. "position": {
  666. "type": "list<double>",
  667. "value": [
  668. 3,
  669. 52
  670. ]
  671. },
  672. "orientation": {
  673. "type": "double",
  674. "value": 0
  675. },
  676. "scale": {
  677. "type": "list<double>",
  678. "value": [
  679. 1,
  680. 1
  681. ]
  682. }
  683. }
  684. },
  685. "edges": []
  686. }
  687. },
  688. "$asuri": {
  689. "type": "string",
  690. "value": "/__Examples__/Formalisms/Traffic/Traffic/RoadSegment/5.instance"
  691. },
  692. "$type": "/__Examples__/Formalisms/Traffic/Traffic.defaultIcons/RoadSegmentIcon"
  693. },
  694. "6": {
  695. "link-style": {
  696. "type": "map<string,string>",
  697. "value": {
  698. "stroke": "#00ff00",
  699. "stroke-dasharray": "",
  700. "stroke-opacity": 0.2,
  701. "stroke-width": 1,
  702. "arrow-start": "none",
  703. "arrow-end": "classic-wide-long"
  704. }
  705. },
  706. "typename": {
  707. "type": "string",
  708. "value": "RS2RSLink"
  709. },
  710. "position": {
  711. "type": "list<double>",
  712. "value": [
  713. "823.5,50%",
  714. "217.5,50%"
  715. ]
  716. },
  717. "orientation": {
  718. "type": "double",
  719. "value": 0
  720. },
  721. "scale": {
  722. "type": "list<double>",
  723. "value": [
  724. 1,
  725. 1
  726. ]
  727. },
  728. "mapper": {
  729. "type": "code",
  730. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  731. },
  732. "parser": {
  733. "type": "code",
  734. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  735. },
  736. "$contents": {
  737. "type": "map<string,*>",
  738. "value": {
  739. "nodes": {},
  740. "edges": []
  741. }
  742. },
  743. "$asuri": {
  744. "type": "string",
  745. "value": "/__Examples__/Formalisms/Traffic/Traffic/RS2RS/6.instance"
  746. },
  747. "$segments": {
  748. "type": "map<string,list<string>>",
  749. "value": {
  750. "/__Examples__/Formalisms/Traffic/Traffic.defaultIcons/RoadSegmentIcon/5.instance--/__Examples__/Formalisms/Traffic/Traffic.defaultIcons/RS2RSLink/6.instance": "M876,216L823.5,217.5",
  751. "/__Examples__/Formalisms/Traffic/Traffic.defaultIcons/RS2RSLink/6.instance--/__Examples__/Formalisms/Traffic/Traffic.defaultIcons/RoadSegmentIcon/3.instance": "M823.4251428796892,217.502138774866L771.0002855328797,218.9999918419177"
  752. }
  753. },
  754. "$type": "/__Examples__/Formalisms/Traffic/Traffic.defaultIcons/RS2RSLink"
  755. },
  756. "7": {
  757. "typename": {
  758. "type": "string",
  759. "value": "SinkIcon"
  760. },
  761. "position": {
  762. "type": "list<double>",
  763. "value": [
  764. 1111,
  765. 199
  766. ]
  767. },
  768. "orientation": {
  769. "type": "double",
  770. "value": 0
  771. },
  772. "scale": {
  773. "type": "list<double>",
  774. "value": [
  775. 1,
  776. 1
  777. ]
  778. },
  779. "mapper": {
  780. "type": "code",
  781. "value": "({'position':getAttr('position')})"
  782. },
  783. "parser": {
  784. "type": "code",
  785. "value": "({'position':getAttr('position')})"
  786. },
  787. "$contents": {
  788. "type": "map<string,*>",
  789. "value": {
  790. "nodes": {
  791. "17": {
  792. "textContent": {
  793. "type": "string",
  794. "value": ">> 0"
  795. },
  796. "style": {
  797. "type": "map<string,string>",
  798. "value": {
  799. "stroke": "#000000",
  800. "stroke-dasharray": "",
  801. "fill": "#ffffff",
  802. "fill-opacity": 0.75,
  803. "font-size": "20px",
  804. "stroke-width": 1,
  805. "arrow-start": "none",
  806. "arrow-end": "none"
  807. }
  808. },
  809. "mapper": {
  810. "type": "code",
  811. "value": "({'textContent': '>> '+getAttr('consumedCars')})"
  812. },
  813. "parser": {
  814. "type": "code",
  815. "value": ""
  816. },
  817. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  818. "position": {
  819. "type": "list<double>",
  820. "value": [
  821. 40,
  822. 84
  823. ]
  824. },
  825. "orientation": {
  826. "type": "double",
  827. "value": 0
  828. },
  829. "scale": {
  830. "type": "list<double>",
  831. "value": [
  832. 1,
  833. 1
  834. ]
  835. }
  836. },
  837. "24": {
  838. "segments": {
  839. "type": "string",
  840. "value": "m0,0l80,0l-40,80,z"
  841. },
  842. "style": {
  843. "type": "map<string,string>",
  844. "value": {
  845. "stroke": "#ffff00",
  846. "fill": "#ffff00",
  847. "fill-opacity": 1,
  848. "arrow-start": "none",
  849. "arrow-end": "none"
  850. }
  851. },
  852. "mapper": {
  853. "type": "code",
  854. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  855. },
  856. "parser": {
  857. "type": "code",
  858. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  859. },
  860. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  861. "position": {
  862. "type": "list<double>",
  863. "value": [
  864. 3,
  865. 1
  866. ]
  867. },
  868. "orientation": {
  869. "type": "double",
  870. "value": 0
  871. },
  872. "scale": {
  873. "type": "list<double>",
  874. "value": [
  875. 1,
  876. 1
  877. ]
  878. }
  879. }
  880. },
  881. "edges": []
  882. }
  883. },
  884. "$asuri": {
  885. "type": "string",
  886. "value": "/__Examples__/Formalisms/Traffic/Traffic/Sink/7.instance"
  887. },
  888. "$type": "/__Examples__/Formalisms/Traffic/Traffic.defaultIcons/SinkIcon"
  889. },
  890. "8": {
  891. "link-style": {
  892. "type": "map<string,string>",
  893. "value": {
  894. "stroke": "#00ff00",
  895. "stroke-dasharray": "",
  896. "stroke-opacity": 0.2,
  897. "stroke-width": 1,
  898. "arrow-start": "none",
  899. "arrow-end": "classic-wide-long"
  900. }
  901. },
  902. "typename": {
  903. "type": "string",
  904. "value": "S2RSLink"
  905. },
  906. "position": {
  907. "type": "list<double>",
  908. "value": [
  909. "1116,50%",
  910. "215.5,50%"
  911. ]
  912. },
  913. "orientation": {
  914. "type": "double",
  915. "value": 0
  916. },
  917. "scale": {
  918. "type": "list<double>",
  919. "value": [
  920. 1,
  921. 1
  922. ]
  923. },
  924. "mapper": {
  925. "type": "code",
  926. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  927. },
  928. "parser": {
  929. "type": "code",
  930. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  931. },
  932. "$contents": {
  933. "type": "map<string,*>",
  934. "value": {
  935. "nodes": {},
  936. "edges": []
  937. }
  938. },
  939. "$asuri": {
  940. "type": "string",
  941. "value": "/__Examples__/Formalisms/Traffic/Traffic/S2RS/8.instance"
  942. },
  943. "$segments": {
  944. "type": "map<string,list<string>>",
  945. "value": {
  946. "/__Examples__/Formalisms/Traffic/Traffic.defaultIcons/SinkIcon/7.instance--/__Examples__/Formalisms/Traffic/Traffic.defaultIcons/S2RSLink/8.instance": "M1170,213L1116,215.5",
  947. "/__Examples__/Formalisms/Traffic/Traffic.defaultIcons/S2RSLink/8.instance--/__Examples__/Formalisms/Traffic/Traffic.defaultIcons/RoadSegmentIcon/5.instance": "M1115.9251389102035,215.50346579119432L1062.00027760631,217.99998714785602"
  948. }
  949. },
  950. "$type": "/__Examples__/Formalisms/Traffic/Traffic.defaultIcons/S2RSLink"
  951. }
  952. },
  953. "edges": [],
  954. "metamodels": [
  955. "/__Examples__/Formalisms/Traffic/Traffic.defaultIcons"
  956. ]
  957. },
  958. "asm": {
  959. "nodes": {
  960. "0": {
  961. "producedCars": {
  962. "type": "int",
  963. "value": 0
  964. },
  965. "position": {
  966. "type": "list<int>",
  967. "value": [
  968. 131,
  969. 199
  970. ]
  971. },
  972. "$type": "/__Examples__/Formalisms/Traffic/Traffic/Generator"
  973. },
  974. "1": {
  975. "currentCars": {
  976. "type": "int",
  977. "value": 0
  978. },
  979. "position": {
  980. "type": "list<int>",
  981. "value": [
  982. 211,
  983. 199
  984. ]
  985. },
  986. "$type": "/__Examples__/Formalisms/Traffic/Traffic/RoadSegment"
  987. },
  988. "2": {
  989. "$type": "/__Examples__/Formalisms/Traffic/Traffic/RS2G"
  990. },
  991. "3": {
  992. "currentCars": {
  993. "type": "int",
  994. "value": 0
  995. },
  996. "position": {
  997. "type": "list<int>",
  998. "value": [
  999. 511,
  1000. 199
  1001. ]
  1002. },
  1003. "$type": "/__Examples__/Formalisms/Traffic/Traffic/RoadSegment"
  1004. },
  1005. "4": {
  1006. "$type": "/__Examples__/Formalisms/Traffic/Traffic/RS2RS"
  1007. },
  1008. "5": {
  1009. "currentCars": {
  1010. "type": "int",
  1011. "value": 0
  1012. },
  1013. "position": {
  1014. "type": "list<int>",
  1015. "value": [
  1016. 811,
  1017. 199
  1018. ]
  1019. },
  1020. "$type": "/__Examples__/Formalisms/Traffic/Traffic/RoadSegment"
  1021. },
  1022. "6": {
  1023. "$type": "/__Examples__/Formalisms/Traffic/Traffic/RS2RS"
  1024. },
  1025. "7": {
  1026. "consumedCars": {
  1027. "type": "int",
  1028. "value": 0
  1029. },
  1030. "position": {
  1031. "type": "list<int>",
  1032. "value": [
  1033. 1111,
  1034. 199
  1035. ]
  1036. },
  1037. "$type": "/__Examples__/Formalisms/Traffic/Traffic/Sink"
  1038. },
  1039. "8": {
  1040. "$type": "/__Examples__/Formalisms/Traffic/Traffic/S2RS"
  1041. }
  1042. },
  1043. "edges": [
  1044. {
  1045. "src": "1",
  1046. "dest": "2"
  1047. },
  1048. {
  1049. "src": "2",
  1050. "dest": "0"
  1051. },
  1052. {
  1053. "src": "3",
  1054. "dest": "4"
  1055. },
  1056. {
  1057. "src": "4",
  1058. "dest": "1"
  1059. },
  1060. {
  1061. "src": "5",
  1062. "dest": "6"
  1063. },
  1064. {
  1065. "src": "6",
  1066. "dest": "3"
  1067. },
  1068. {
  1069. "src": "7",
  1070. "dest": "8"
  1071. },
  1072. {
  1073. "src": "8",
  1074. "dest": "5"
  1075. }
  1076. ],
  1077. "metamodels": [
  1078. "/__Examples__/Formalisms/Traffic/Traffic"
  1079. ]
  1080. }
  1081. }