TrafficLight.model 111 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139
  1. {
  2. "csm": {
  3. "nodes": {
  4. "29": {
  5. "typename": {
  6. "type": "string",
  7. "value": "ClassIcon"
  8. },
  9. "position": {
  10. "type": "list<double>",
  11. "value": [
  12. 236,
  13. 203
  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": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  30. },
  31. "parser": {
  32. "type": "code",
  33. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  34. },
  35. "$contents": {
  36. "type": "map<string,*>",
  37. "value": {
  38. "nodes": {
  39. "96": {
  40. "width": {
  41. "type": "double",
  42. "value": 200
  43. },
  44. "height": {
  45. "type": "double",
  46. "value": 125
  47. },
  48. "cornerRadius": {
  49. "type": "double",
  50. "value": 0
  51. },
  52. "style": {
  53. "type": "map<string,string>",
  54. "value": {
  55. "stroke": "#000000",
  56. "stroke-dasharray": "",
  57. "fill": "#ffffff",
  58. "fill-opacity": 0.75,
  59. "stroke-width": 2
  60. }
  61. },
  62. "mapper": {
  63. "type": "code",
  64. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  65. },
  66. "parser": {
  67. "type": "code",
  68. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  69. },
  70. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  71. "position": {
  72. "type": "list<double>",
  73. "value": [
  74. 4,
  75. 3
  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. "97": {
  91. "segments": {
  92. "type": "string",
  93. "value": "m0,0l197,0"
  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": "20px",
  103. "stroke-width": 2,
  104. "arrow-start": "none",
  105. "arrow-end": "none"
  106. }
  107. },
  108. "mapper": {
  109. "type": "code",
  110. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  111. },
  112. "parser": {
  113. "type": "code",
  114. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  115. },
  116. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  117. "position": {
  118. "type": "list<double>",
  119. "value": [
  120. 6,
  121. 36
  122. ]
  123. },
  124. "orientation": {
  125. "type": "double",
  126. "value": 0
  127. },
  128. "scale": {
  129. "type": "list<double>",
  130. "value": [
  131. 1,
  132. 1
  133. ]
  134. }
  135. },
  136. "98": {
  137. "textContent": {
  138. "type": "string",
  139. "value": "State"
  140. },
  141. "style": {
  142. "type": "map<string,string>",
  143. "value": {
  144. "font-size": "18px",
  145. "font-style": "normal",
  146. "font-weight": "bold",
  147. "line-height": "100%",
  148. "letter-spacing": "0px",
  149. "word-spacing": "0px",
  150. "fill": "#000000",
  151. "fill-opacity": "1",
  152. "stroke": "none"
  153. }
  154. },
  155. "mapper": {
  156. "type": "code",
  157. "value": "var style = \n{\n \"font-size\": \"18px\",\n \"font-style\": \"normal\",\n \"font-weight\": \"bold\",\n \"line-height\": \"100%\",\n \"letter-spacing\": \"0px\",\n \"word-spacing\": \"0px\",\n \"fill\": \"#000000\",\n \"fill-opacity\": \"1\",\n \"stroke\": \"none\",\n \"font-style\": (getAttr('abstract') ? 'italic' : 'normal')\n};\n\n({'textContent': getAttr('name'), 'style':style})\n\n\n"
  158. },
  159. "parser": {
  160. "type": "code",
  161. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */\n({'name': getAttr('textContent')})"
  162. },
  163. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  164. "position": {
  165. "type": "list<double>",
  166. "value": [
  167. 8,
  168. 8
  169. ]
  170. },
  171. "orientation": {
  172. "type": "double",
  173. "value": 0
  174. },
  175. "scale": {
  176. "type": "list<double>",
  177. "value": [
  178. 1,
  179. 1
  180. ]
  181. }
  182. },
  183. "99": {
  184. "textContent": {
  185. "type": "string",
  186. "value": "+ name : string\n+ initial : boolean\n+ current : boolean"
  187. },
  188. "style": {
  189. "type": "map<string,string>",
  190. "value": {
  191. "font-size": "14px",
  192. "font-style": "normal",
  193. "font-weight": "bold",
  194. "line-height": "100%",
  195. "letter-spacing": "0px",
  196. "word-spacing": "0px",
  197. "fill": "#000000",
  198. "fill-opacity": "1",
  199. "stroke": "none"
  200. }
  201. },
  202. "mapper": {
  203. "type": "code",
  204. "value": "var filenames = getAttr('attributes').map(\n function(attr)\n {\n var s = '+ '+attr['name'] + ' : ' + attr['type'];\n if (attr['default'])\n s += ' = ' + attr['default'];\n return s;\n });\n\n({'textContent': filenames.join('\\n')})"
  205. },
  206. "parser": {
  207. "type": "code",
  208. "value": ""
  209. },
  210. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  211. "position": {
  212. "type": "list<double>",
  213. "value": [
  214. 10,
  215. 41
  216. ]
  217. },
  218. "orientation": {
  219. "type": "double",
  220. "value": 0
  221. },
  222. "scale": {
  223. "type": "list<double>",
  224. "value": [
  225. 1,
  226. 1
  227. ]
  228. }
  229. },
  230. "100": {
  231. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  232. "position": {
  233. "type": "list<double>",
  234. "value": [
  235. 68.5,
  236. 36.5
  237. ]
  238. },
  239. "orientation": {
  240. "type": "double",
  241. "value": 0
  242. },
  243. "scale": {
  244. "type": "list<double>",
  245. "value": [
  246. 1,
  247. 1
  248. ]
  249. },
  250. "link-style": {
  251. "type": "map<string,string>",
  252. "value": {
  253. "stroke": "#00ffff",
  254. "stroke-dasharray": "",
  255. "stroke-opacity": 0.1,
  256. "stroke-width": 1
  257. }
  258. }
  259. },
  260. "101": {
  261. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  262. "position": {
  263. "type": "list<double>",
  264. "value": [
  265. 12.5,
  266. 27
  267. ]
  268. },
  269. "orientation": {
  270. "type": "double",
  271. "value": 0
  272. },
  273. "scale": {
  274. "type": "list<double>",
  275. "value": [
  276. 1,
  277. 1
  278. ]
  279. },
  280. "link-style": {
  281. "type": "map<string,string>",
  282. "value": {
  283. "stroke": "#00ffff",
  284. "stroke-dasharray": "",
  285. "stroke-opacity": 0.1,
  286. "stroke-width": 1
  287. }
  288. }
  289. },
  290. "102": {
  291. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  292. "position": {
  293. "type": "list<double>",
  294. "value": [
  295. 53.75,
  296. 20
  297. ]
  298. },
  299. "orientation": {
  300. "type": "double",
  301. "value": 0
  302. },
  303. "scale": {
  304. "type": "list<double>",
  305. "value": [
  306. 1,
  307. 1
  308. ]
  309. },
  310. "link-style": {
  311. "type": "map<string,string>",
  312. "value": {
  313. "stroke": "#00ffff",
  314. "stroke-dasharray": "",
  315. "stroke-opacity": 0.1,
  316. "stroke-width": 1
  317. }
  318. }
  319. }
  320. },
  321. "edges": [
  322. {
  323. "src": "96",
  324. "dest": "100"
  325. },
  326. {
  327. "src": "100",
  328. "dest": "98"
  329. },
  330. {
  331. "src": "96",
  332. "dest": "101"
  333. },
  334. {
  335. "src": "101",
  336. "dest": "99"
  337. },
  338. {
  339. "src": "96",
  340. "dest": "102"
  341. },
  342. {
  343. "src": "102",
  344. "dest": "97"
  345. }
  346. ]
  347. }
  348. },
  349. "$asuri": {
  350. "type": "string",
  351. "value": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Class/13.instance"
  352. },
  353. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/ClassIcon"
  354. },
  355. "30": {
  356. "typename": {
  357. "type": "string",
  358. "value": "ClassIcon"
  359. },
  360. "position": {
  361. "type": "list<double>",
  362. "value": [
  363. 627,
  364. 497
  365. ]
  366. },
  367. "orientation": {
  368. "type": "double",
  369. "value": 0
  370. },
  371. "scale": {
  372. "type": "list<double>",
  373. "value": [
  374. 1,
  375. 1
  376. ]
  377. },
  378. "mapper": {
  379. "type": "code",
  380. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  381. },
  382. "parser": {
  383. "type": "code",
  384. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  385. },
  386. "$contents": {
  387. "type": "map<string,*>",
  388. "value": {
  389. "nodes": {
  390. "96": {
  391. "width": {
  392. "type": "double",
  393. "value": 200
  394. },
  395. "height": {
  396. "type": "double",
  397. "value": 125
  398. },
  399. "cornerRadius": {
  400. "type": "double",
  401. "value": 0
  402. },
  403. "style": {
  404. "type": "map<string,string>",
  405. "value": {
  406. "stroke": "#000000",
  407. "stroke-dasharray": "",
  408. "fill": "#ffffff",
  409. "fill-opacity": 0.75,
  410. "stroke-width": 2
  411. }
  412. },
  413. "mapper": {
  414. "type": "code",
  415. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  416. },
  417. "parser": {
  418. "type": "code",
  419. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  420. },
  421. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  422. "position": {
  423. "type": "list<double>",
  424. "value": [
  425. 4,
  426. 3
  427. ]
  428. },
  429. "orientation": {
  430. "type": "double",
  431. "value": 0
  432. },
  433. "scale": {
  434. "type": "list<double>",
  435. "value": [
  436. 1,
  437. 1
  438. ]
  439. }
  440. },
  441. "97": {
  442. "segments": {
  443. "type": "string",
  444. "value": "m0,0l197,0"
  445. },
  446. "style": {
  447. "type": "map<string,string>",
  448. "value": {
  449. "stroke": "#000000",
  450. "stroke-dasharray": "",
  451. "fill": "#ffffff",
  452. "fill-opacity": 0.75,
  453. "font-size": "20px",
  454. "stroke-width": 2,
  455. "arrow-start": "none",
  456. "arrow-end": "none"
  457. }
  458. },
  459. "mapper": {
  460. "type": "code",
  461. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  462. },
  463. "parser": {
  464. "type": "code",
  465. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  466. },
  467. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  468. "position": {
  469. "type": "list<double>",
  470. "value": [
  471. 6,
  472. 36
  473. ]
  474. },
  475. "orientation": {
  476. "type": "double",
  477. "value": 0
  478. },
  479. "scale": {
  480. "type": "list<double>",
  481. "value": [
  482. 1,
  483. 1
  484. ]
  485. }
  486. },
  487. "98": {
  488. "textContent": {
  489. "type": "string",
  490. "value": "Interrupt"
  491. },
  492. "style": {
  493. "type": "map<string,string>",
  494. "value": {
  495. "font-size": "18px",
  496. "font-style": "normal",
  497. "font-weight": "bold",
  498. "line-height": "100%",
  499. "letter-spacing": "0px",
  500. "word-spacing": "0px",
  501. "fill": "#000000",
  502. "fill-opacity": "1",
  503. "stroke": "none"
  504. }
  505. },
  506. "mapper": {
  507. "type": "code",
  508. "value": "var style = \n{\n \"font-size\": \"18px\",\n \"font-style\": \"normal\",\n \"font-weight\": \"bold\",\n \"line-height\": \"100%\",\n \"letter-spacing\": \"0px\",\n \"word-spacing\": \"0px\",\n \"fill\": \"#000000\",\n \"fill-opacity\": \"1\",\n \"stroke\": \"none\",\n \"font-style\": (getAttr('abstract') ? 'italic' : 'normal')\n};\n\n({'textContent': getAttr('name'), 'style':style})\n\n\n"
  509. },
  510. "parser": {
  511. "type": "code",
  512. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */\n({'name': getAttr('textContent')})"
  513. },
  514. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  515. "position": {
  516. "type": "list<double>",
  517. "value": [
  518. 8,
  519. 8
  520. ]
  521. },
  522. "orientation": {
  523. "type": "double",
  524. "value": 0
  525. },
  526. "scale": {
  527. "type": "list<double>",
  528. "value": [
  529. 1,
  530. 1
  531. ]
  532. }
  533. },
  534. "99": {
  535. "textContent": {
  536. "type": "string",
  537. "value": "+ at : int\n+ event : string = E"
  538. },
  539. "style": {
  540. "type": "map<string,string>",
  541. "value": {
  542. "font-size": "14px",
  543. "font-style": "normal",
  544. "font-weight": "bold",
  545. "line-height": "100%",
  546. "letter-spacing": "0px",
  547. "word-spacing": "0px",
  548. "fill": "#000000",
  549. "fill-opacity": "1",
  550. "stroke": "none"
  551. }
  552. },
  553. "mapper": {
  554. "type": "code",
  555. "value": "var filenames = getAttr('attributes').map(\n function(attr)\n {\n var s = '+ '+attr['name'] + ' : ' + attr['type'];\n if (attr['default'])\n s += ' = ' + attr['default'];\n return s;\n });\n\n({'textContent': filenames.join('\\n')})"
  556. },
  557. "parser": {
  558. "type": "code",
  559. "value": ""
  560. },
  561. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  562. "position": {
  563. "type": "list<double>",
  564. "value": [
  565. 10,
  566. 41
  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. },
  581. "100": {
  582. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  583. "position": {
  584. "type": "list<double>",
  585. "value": [
  586. 68.5,
  587. 36.5
  588. ]
  589. },
  590. "orientation": {
  591. "type": "double",
  592. "value": 0
  593. },
  594. "scale": {
  595. "type": "list<double>",
  596. "value": [
  597. 1,
  598. 1
  599. ]
  600. },
  601. "link-style": {
  602. "type": "map<string,string>",
  603. "value": {
  604. "stroke": "#00ffff",
  605. "stroke-dasharray": "",
  606. "stroke-opacity": 0.1,
  607. "stroke-width": 1
  608. }
  609. }
  610. },
  611. "101": {
  612. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  613. "position": {
  614. "type": "list<double>",
  615. "value": [
  616. 12.5,
  617. 27
  618. ]
  619. },
  620. "orientation": {
  621. "type": "double",
  622. "value": 0
  623. },
  624. "scale": {
  625. "type": "list<double>",
  626. "value": [
  627. 1,
  628. 1
  629. ]
  630. },
  631. "link-style": {
  632. "type": "map<string,string>",
  633. "value": {
  634. "stroke": "#00ffff",
  635. "stroke-dasharray": "",
  636. "stroke-opacity": 0.1,
  637. "stroke-width": 1
  638. }
  639. }
  640. },
  641. "102": {
  642. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  643. "position": {
  644. "type": "list<double>",
  645. "value": [
  646. 53.75,
  647. 20
  648. ]
  649. },
  650. "orientation": {
  651. "type": "double",
  652. "value": 0
  653. },
  654. "scale": {
  655. "type": "list<double>",
  656. "value": [
  657. 1,
  658. 1
  659. ]
  660. },
  661. "link-style": {
  662. "type": "map<string,string>",
  663. "value": {
  664. "stroke": "#00ffff",
  665. "stroke-dasharray": "",
  666. "stroke-opacity": 0.1,
  667. "stroke-width": 1
  668. }
  669. }
  670. }
  671. },
  672. "edges": [
  673. {
  674. "src": "96",
  675. "dest": "100"
  676. },
  677. {
  678. "src": "100",
  679. "dest": "98"
  680. },
  681. {
  682. "src": "96",
  683. "dest": "101"
  684. },
  685. {
  686. "src": "101",
  687. "dest": "99"
  688. },
  689. {
  690. "src": "96",
  691. "dest": "102"
  692. },
  693. {
  694. "src": "102",
  695. "dest": "97"
  696. }
  697. ]
  698. }
  699. },
  700. "$asuri": {
  701. "type": "string",
  702. "value": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Class/16.instance"
  703. },
  704. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/ClassIcon"
  705. },
  706. "31": {
  707. "link-style": {
  708. "type": "map<string,string>",
  709. "value": {
  710. "stroke": "#000000",
  711. "stroke-dasharray": "",
  712. "stroke-opacity": 1,
  713. "stroke-width": 2
  714. }
  715. },
  716. "arrowHead": {
  717. "type": "ENUM(circle-black,circle-black-large,circle-white,circle-white-large,diamond-black,diamond-black-large,diamond-white,diamond-white-large,triangle-black,triangle-black-large,triangle-white,triangle-white-large,arrow-black,arrow-black-large,arrow-empty,arrow-empty-large,custom)",
  718. "value": "custom"
  719. },
  720. "arrowTail": {
  721. "type": "ENUM(circle-black,circle-black-large,circle-white,circle-white-large,diamond-black,diamond-black-large,diamond-white,diamond-white-large,triangle-black,triangle-black-large,triangle-white,triangle-white-large,arrow-black,arrow-black-large,arrow-empty,arrow-empty-large,custom)",
  722. "value": "arrow-black"
  723. },
  724. "typename": {
  725. "type": "string",
  726. "value": "AssociationLink"
  727. },
  728. "position": {
  729. "type": "list<double>",
  730. "value": [
  731. 527.3127594312485,
  732. 233.2016332703214
  733. ]
  734. },
  735. "orientation": {
  736. "type": "double",
  737. "value": 0
  738. },
  739. "scale": {
  740. "type": "list<double>",
  741. "value": [
  742. 1,
  743. 1
  744. ]
  745. },
  746. "mapper": {
  747. "type": "code",
  748. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  749. },
  750. "parser": {
  751. "type": "code",
  752. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  753. },
  754. "$contents": {
  755. "type": "map<string,*>",
  756. "value": {
  757. "nodes": {
  758. "71": {
  759. "textContent": {
  760. "type": "string",
  761. "value": "TimedTransition"
  762. },
  763. "style": {
  764. "type": "map<string,string>",
  765. "value": {
  766. "font-size": "20px",
  767. "font-style": "normal",
  768. "font-weight": "normal",
  769. "line-height": "100%",
  770. "letter-spacing": "0px",
  771. "word-spacing": "0px",
  772. "fill": "#000000",
  773. "fill-opacity": "1",
  774. "stroke": "none",
  775. "font-family": "Sans"
  776. }
  777. },
  778. "mapper": {
  779. "type": "code",
  780. "value": "({'textContent':getAttr('name')})"
  781. },
  782. "parser": {
  783. "type": "code",
  784. "value": "({'name':getAttr('textContent')})"
  785. },
  786. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  787. "position": {
  788. "type": "list<double>",
  789. "value": [
  790. "0;-11.858771701187152,0%",
  791. "0;-41.701633270321395,0%"
  792. ]
  793. },
  794. "orientation": {
  795. "type": "double",
  796. "value": "0;0"
  797. },
  798. "scale": {
  799. "type": "list<double>",
  800. "value": [
  801. 1,
  802. 1
  803. ]
  804. },
  805. "$linkDecoratorInfo": {
  806. "type": "map<string,double>",
  807. "value": {
  808. "xratio": 0.3803680981595092,
  809. "yoffset": -28.5
  810. }
  811. }
  812. },
  813. "74": {
  814. "textContent": {
  815. "type": "string",
  816. "value": "*"
  817. },
  818. "style": {
  819. "type": "map<string,string>",
  820. "value": {
  821. "font-size": "20px",
  822. "font-style": "normal",
  823. "font-weight": "normal",
  824. "line-height": "100%",
  825. "letter-spacing": "0px",
  826. "word-spacing": "0px",
  827. "fill": "#000000",
  828. "fill-opacity": "1",
  829. "stroke": "none",
  830. "font-family": "Sans"
  831. }
  832. },
  833. "mapper": {
  834. "type": "code",
  835. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */\nvar clazz = getNeighbors('>'),\n mult = '';\nif (clazz.length > 0) {\n clazz = clazz[0];\n var cardinalities = getAttr('cardinalities', clazz), card;\n for (i = 0; i < cardinalities.length; i++) {\n if (cardinalities[i]['type'] == getAttr('name') && cardinalities[i]['dir'] == 'in') {\n card = cardinalities[i];\n break;\n }\n }\n if (card) {\n var min = card['min'],\n max = card['max'];\n if (min == '')\n min = '0';\n if (max == '' || max == 'Infinity')\n max = '*';\n if (min == '0' && max == '*')\n mult = '*';\n else if (min == max)\n mult = max;\n else mult = min + '..' + max;\n }\n}\nif (mult == '')\n mult = '*';\n({'textContent': mult})"
  836. },
  837. "parser": {
  838. "type": "code",
  839. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  840. },
  841. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  842. "position": {
  843. "type": "list<double>",
  844. "value": [
  845. "0;-75.98147108769024,0%",
  846. "0;-38.701633270321395,0%"
  847. ]
  848. },
  849. "orientation": {
  850. "type": "double",
  851. "value": "0;0"
  852. },
  853. "scale": {
  854. "type": "list<double>",
  855. "value": [
  856. 1,
  857. 1
  858. ]
  859. },
  860. "$linkDecoratorInfo": {
  861. "type": "map<string,double>",
  862. "value": {
  863. "xratio": 0.06134969325153374,
  864. "yoffset": -25.5
  865. }
  866. }
  867. },
  868. "77": {
  869. "textContent": {
  870. "type": "string",
  871. "value": "0..1"
  872. },
  873. "style": {
  874. "type": "map<string,string>",
  875. "value": {
  876. "font-size": "20px",
  877. "font-style": "normal",
  878. "font-weight": "normal",
  879. "line-height": "100%",
  880. "letter-spacing": "0px",
  881. "word-spacing": "0px",
  882. "fill": "#000000",
  883. "fill-opacity": "1",
  884. "stroke": "none",
  885. "font-family": "Sans"
  886. }
  887. },
  888. "mapper": {
  889. "type": "code",
  890. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */\nvar clazz = getNeighbors('<'),\n mult = '';\nif (clazz.length > 0) {\n clazz = clazz[0];\n var cardinalities = getAttr('cardinalities', clazz), card;\n for (i = 0; i < cardinalities.length; i++) {\n if (cardinalities[i]['type'] == getAttr('name') && cardinalities[i]['dir'] == 'out') {\n card = cardinalities[i];\n break;\n }\n }\n if (card) {\n var min = card['min'],\n max = card['max'];\n if (min == '')\n min = '0';\n if (max == '' || max == 'Infinity')\n max = '*';\n if (min == '0' && max == '*')\n mult = '*';\n else if (min == max)\n mult = max;\n else mult = min + '..' + max;\n }\n}\nif (mult == '')\n mult = '*';\n({'textContent': mult})"
  891. },
  892. "parser": {
  893. "type": "code",
  894. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  895. },
  896. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  897. "position": {
  898. "type": "list<double>",
  899. "value": [
  900. "0;-87.31275943124854,-100%",
  901. "0;36.298366729678605,1.2246467991473532e-14%"
  902. ]
  903. },
  904. "orientation": {
  905. "type": "double",
  906. "value": "0;180"
  907. },
  908. "scale": {
  909. "type": "list<double>",
  910. "value": [
  911. 1,
  912. 1
  913. ]
  914. },
  915. "$linkDecoratorInfo": {
  916. "type": "map<string,double>",
  917. "value": {
  918. "xratio": 1.0245398773006136,
  919. "yoffset": -23.5
  920. }
  921. }
  922. },
  923. "140": {
  924. "segments": {
  925. "type": "string",
  926. "value": "m0,0 l20,8 l-20,8"
  927. },
  928. "style": {
  929. "type": "map<string,string>",
  930. "value": {
  931. "stroke": "#000000",
  932. "fill": "#000000",
  933. "fill-opacity": 0,
  934. "stroke-width": 1,
  935. "opacity": 1
  936. }
  937. },
  938. "mapper": {
  939. "type": "code",
  940. "value": ""
  941. },
  942. "parser": {
  943. "type": "code",
  944. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  945. },
  946. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  947. "position": {
  948. "type": "list<double>",
  949. "value": [
  950. "0;-87.31275943124854,-100%",
  951. "0;20.798366729678605,1.2246467991473532e-14%"
  952. ]
  953. },
  954. "orientation": {
  955. "type": "double",
  956. "value": "0;180"
  957. },
  958. "scale": {
  959. "type": "list<double>",
  960. "value": [
  961. 1,
  962. 1
  963. ]
  964. },
  965. "$linkDecoratorInfo": {
  966. "type": "map<string,double>",
  967. "value": {
  968. "xratio": 1,
  969. "yoffset": -8
  970. }
  971. }
  972. }
  973. },
  974. "edges": []
  975. }
  976. },
  977. "$asuri": {
  978. "type": "string",
  979. "value": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Association/19.instance"
  980. },
  981. "$segments": {
  982. "type": "map<string,list<string>>",
  983. "value": {
  984. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/ClassIcon/29.instance--/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/AssociationLink/31.instance": "M439,220L527,220L527,233",
  985. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/AssociationLink/31.instance--/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/ClassIcon/29.instance": "M527,233L527,246L464,246L440,246"
  986. }
  987. },
  988. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/AssociationLink"
  989. },
  990. "32": {
  991. "link-style": {
  992. "type": "map<string,string>",
  993. "value": {
  994. "stroke": "#000000",
  995. "stroke-dasharray": "",
  996. "stroke-opacity": 1,
  997. "stroke-width": 2
  998. }
  999. },
  1000. "arrowHead": {
  1001. "type": "ENUM(circle-black,circle-black-large,circle-white,circle-white-large,diamond-black,diamond-black-large,diamond-white,diamond-white-large,triangle-black,triangle-black-large,triangle-white,triangle-white-large,arrow-black,arrow-black-large,arrow-empty,arrow-empty-large,custom)",
  1002. "value": "custom"
  1003. },
  1004. "arrowTail": {
  1005. "type": "ENUM(circle-black,circle-black-large,circle-white,circle-white-large,diamond-black,diamond-black-large,diamond-white,diamond-white-large,triangle-black,triangle-black-large,triangle-white,triangle-white-large,arrow-black,arrow-black-large,arrow-empty,arrow-empty-large,custom)",
  1006. "value": "arrow-black"
  1007. },
  1008. "typename": {
  1009. "type": "string",
  1010. "value": "AssociationLink"
  1011. },
  1012. "position": {
  1013. "type": "list<double>",
  1014. "value": [
  1015. 524.2597932111449,
  1016. 297.11661247637056
  1017. ]
  1018. },
  1019. "orientation": {
  1020. "type": "double",
  1021. "value": 0
  1022. },
  1023. "scale": {
  1024. "type": "list<double>",
  1025. "value": [
  1026. 1,
  1027. 1
  1028. ]
  1029. },
  1030. "mapper": {
  1031. "type": "code",
  1032. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  1033. },
  1034. "parser": {
  1035. "type": "code",
  1036. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  1037. },
  1038. "$contents": {
  1039. "type": "map<string,*>",
  1040. "value": {
  1041. "nodes": {
  1042. "71": {
  1043. "textContent": {
  1044. "type": "string",
  1045. "value": "InterruptTransition"
  1046. },
  1047. "style": {
  1048. "type": "map<string,string>",
  1049. "value": {
  1050. "font-size": "20px",
  1051. "font-style": "normal",
  1052. "font-weight": "normal",
  1053. "line-height": "100%",
  1054. "letter-spacing": "0px",
  1055. "word-spacing": "0px",
  1056. "fill": "#000000",
  1057. "fill-opacity": "1",
  1058. "stroke": "none",
  1059. "font-family": "Sans"
  1060. }
  1061. },
  1062. "mapper": {
  1063. "type": "code",
  1064. "value": "({'textContent':getAttr('name')})"
  1065. },
  1066. "parser": {
  1067. "type": "code",
  1068. "value": "({'name':getAttr('textContent')})"
  1069. },
  1070. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  1071. "position": {
  1072. "type": "list<double>",
  1073. "value": [
  1074. "0;-3.903964990285999,0%",
  1075. "0;-42.61661247637056,0%"
  1076. ]
  1077. },
  1078. "orientation": {
  1079. "type": "double",
  1080. "value": "0;0"
  1081. },
  1082. "scale": {
  1083. "type": "list<double>",
  1084. "value": [
  1085. 1,
  1086. 1
  1087. ]
  1088. },
  1089. "$linkDecoratorInfo": {
  1090. "type": "map<string,double>",
  1091. "value": {
  1092. "xratio": 0.3803680981595092,
  1093. "yoffset": -28.5
  1094. }
  1095. }
  1096. },
  1097. "74": {
  1098. "textContent": {
  1099. "type": "string",
  1100. "value": "*"
  1101. },
  1102. "style": {
  1103. "type": "map<string,string>",
  1104. "value": {
  1105. "font-size": "20px",
  1106. "font-style": "normal",
  1107. "font-weight": "normal",
  1108. "line-height": "100%",
  1109. "letter-spacing": "0px",
  1110. "word-spacing": "0px",
  1111. "fill": "#000000",
  1112. "fill-opacity": "1",
  1113. "stroke": "none",
  1114. "font-family": "Sans"
  1115. }
  1116. },
  1117. "mapper": {
  1118. "type": "code",
  1119. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */\nvar clazz = getNeighbors('>'),\n mult = '';\nif (clazz.length > 0) {\n clazz = clazz[0];\n var cardinalities = getAttr('cardinalities', clazz), card;\n for (i = 0; i < cardinalities.length; i++) {\n if (cardinalities[i]['type'] == getAttr('name') && cardinalities[i]['dir'] == 'in') {\n card = cardinalities[i];\n break;\n }\n }\n if (card) {\n var min = card['min'],\n max = card['max'];\n if (min == '')\n min = '0';\n if (max == '' || max == 'Infinity')\n max = '*';\n if (min == '0' && max == '*')\n mult = '*';\n else if (min == max)\n mult = max;\n else mult = min + '..' + max;\n }\n}\nif (mult == '')\n mult = '*';\n({'textContent': mult})"
  1120. },
  1121. "parser": {
  1122. "type": "code",
  1123. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  1124. },
  1125. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  1126. "position": {
  1127. "type": "list<double>",
  1128. "value": [
  1129. "0;-69.62175640132898,0%",
  1130. "0;-39.61661247637056,0%"
  1131. ]
  1132. },
  1133. "orientation": {
  1134. "type": "double",
  1135. "value": "0;0"
  1136. },
  1137. "scale": {
  1138. "type": "list<double>",
  1139. "value": [
  1140. 1,
  1141. 1
  1142. ]
  1143. },
  1144. "$linkDecoratorInfo": {
  1145. "type": "map<string,double>",
  1146. "value": {
  1147. "xratio": 0.06134969325153374,
  1148. "yoffset": -25.5
  1149. }
  1150. }
  1151. },
  1152. "77": {
  1153. "textContent": {
  1154. "type": "string",
  1155. "value": "*"
  1156. },
  1157. "style": {
  1158. "type": "map<string,string>",
  1159. "value": {
  1160. "font-size": "20px",
  1161. "font-style": "normal",
  1162. "font-weight": "normal",
  1163. "line-height": "100%",
  1164. "letter-spacing": "0px",
  1165. "word-spacing": "0px",
  1166. "fill": "#000000",
  1167. "fill-opacity": "1",
  1168. "stroke": "none",
  1169. "font-family": "Sans"
  1170. }
  1171. },
  1172. "mapper": {
  1173. "type": "code",
  1174. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */\nvar clazz = getNeighbors('<'),\n mult = '';\nif (clazz.length > 0) {\n clazz = clazz[0];\n var cardinalities = getAttr('cardinalities', clazz), card;\n for (i = 0; i < cardinalities.length; i++) {\n if (cardinalities[i]['type'] == getAttr('name') && cardinalities[i]['dir'] == 'out') {\n card = cardinalities[i];\n break;\n }\n }\n if (card) {\n var min = card['min'],\n max = card['max'];\n if (min == '')\n min = '0';\n if (max == '' || max == 'Infinity')\n max = '*';\n if (min == '0' && max == '*')\n mult = '*';\n else if (min == max)\n mult = max;\n else mult = min + '..' + max;\n }\n}\nif (mult == '')\n mult = '*';\n({'textContent': mult})"
  1175. },
  1176. "parser": {
  1177. "type": "code",
  1178. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  1179. },
  1180. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  1181. "position": {
  1182. "type": "list<double>",
  1183. "value": [
  1184. "0;-85.25979321114494,-100%",
  1185. "0;48.38338752362944,1.2246467991473532e-14%"
  1186. ]
  1187. },
  1188. "orientation": {
  1189. "type": "double",
  1190. "value": "0;180"
  1191. },
  1192. "scale": {
  1193. "type": "list<double>",
  1194. "value": [
  1195. 1,
  1196. 1
  1197. ]
  1198. },
  1199. "$linkDecoratorInfo": {
  1200. "type": "map<string,double>",
  1201. "value": {
  1202. "xratio": 1.0245398773006136,
  1203. "yoffset": -23.5
  1204. }
  1205. }
  1206. },
  1207. "140": {
  1208. "segments": {
  1209. "type": "string",
  1210. "value": "m0,0 l20,8 l-20,8"
  1211. },
  1212. "style": {
  1213. "type": "map<string,string>",
  1214. "value": {
  1215. "stroke": "#000000",
  1216. "fill": "#000000",
  1217. "fill-opacity": 0,
  1218. "stroke-width": 1,
  1219. "opacity": 1
  1220. }
  1221. },
  1222. "mapper": {
  1223. "type": "code",
  1224. "value": ""
  1225. },
  1226. "parser": {
  1227. "type": "code",
  1228. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  1229. },
  1230. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  1231. "position": {
  1232. "type": "list<double>",
  1233. "value": [
  1234. "0;-85.25979321114494,-100%",
  1235. "0;32.88338752362944,1.2246467991473532e-14%"
  1236. ]
  1237. },
  1238. "orientation": {
  1239. "type": "double",
  1240. "value": "0;180"
  1241. },
  1242. "scale": {
  1243. "type": "list<double>",
  1244. "value": [
  1245. 1,
  1246. 1
  1247. ]
  1248. },
  1249. "$linkDecoratorInfo": {
  1250. "type": "map<string,double>",
  1251. "value": {
  1252. "xratio": 1,
  1253. "yoffset": -8
  1254. }
  1255. }
  1256. }
  1257. },
  1258. "edges": []
  1259. }
  1260. },
  1261. "$asuri": {
  1262. "type": "string",
  1263. "value": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Association/20.instance"
  1264. },
  1265. "$segments": {
  1266. "type": "map<string,list<string>>",
  1267. "value": {
  1268. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/ClassIcon/29.instance--/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/AssociationLink/32.instance": "M442,283L524,283L524,297",
  1269. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/AssociationLink/32.instance--/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/ClassIcon/29.instance": "M524,297L524,322L439,322"
  1270. }
  1271. },
  1272. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/AssociationLink"
  1273. },
  1274. "33": {
  1275. "typename": {
  1276. "type": "string",
  1277. "value": "ClassIcon"
  1278. },
  1279. "position": {
  1280. "type": "list<double>",
  1281. "value": [
  1282. 987,
  1283. 203.18049999999994
  1284. ]
  1285. },
  1286. "orientation": {
  1287. "type": "double",
  1288. "value": 0
  1289. },
  1290. "scale": {
  1291. "type": "list<double>",
  1292. "value": [
  1293. 1,
  1294. 1
  1295. ]
  1296. },
  1297. "mapper": {
  1298. "type": "code",
  1299. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  1300. },
  1301. "parser": {
  1302. "type": "code",
  1303. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  1304. },
  1305. "$contents": {
  1306. "type": "map<string,*>",
  1307. "value": {
  1308. "nodes": {
  1309. "96": {
  1310. "width": {
  1311. "type": "double",
  1312. "value": 200
  1313. },
  1314. "height": {
  1315. "type": "double",
  1316. "value": 125
  1317. },
  1318. "cornerRadius": {
  1319. "type": "double",
  1320. "value": 0
  1321. },
  1322. "style": {
  1323. "type": "map<string,string>",
  1324. "value": {
  1325. "stroke": "#000000",
  1326. "stroke-dasharray": "",
  1327. "fill": "#ffffff",
  1328. "fill-opacity": 0.75,
  1329. "stroke-width": 2
  1330. }
  1331. },
  1332. "mapper": {
  1333. "type": "code",
  1334. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  1335. },
  1336. "parser": {
  1337. "type": "code",
  1338. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  1339. },
  1340. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  1341. "position": {
  1342. "type": "list<double>",
  1343. "value": [
  1344. 4,
  1345. 3
  1346. ]
  1347. },
  1348. "orientation": {
  1349. "type": "double",
  1350. "value": 0
  1351. },
  1352. "scale": {
  1353. "type": "list<double>",
  1354. "value": [
  1355. 1,
  1356. 1
  1357. ]
  1358. }
  1359. },
  1360. "97": {
  1361. "segments": {
  1362. "type": "string",
  1363. "value": "m0,0l197,0"
  1364. },
  1365. "style": {
  1366. "type": "map<string,string>",
  1367. "value": {
  1368. "stroke": "#000000",
  1369. "stroke-dasharray": "",
  1370. "fill": "#ffffff",
  1371. "fill-opacity": 0.75,
  1372. "font-size": "20px",
  1373. "stroke-width": 2,
  1374. "arrow-start": "none",
  1375. "arrow-end": "none"
  1376. }
  1377. },
  1378. "mapper": {
  1379. "type": "code",
  1380. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  1381. },
  1382. "parser": {
  1383. "type": "code",
  1384. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  1385. },
  1386. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  1387. "position": {
  1388. "type": "list<double>",
  1389. "value": [
  1390. 6,
  1391. 36
  1392. ]
  1393. },
  1394. "orientation": {
  1395. "type": "double",
  1396. "value": 0
  1397. },
  1398. "scale": {
  1399. "type": "list<double>",
  1400. "value": [
  1401. 1,
  1402. 1
  1403. ]
  1404. }
  1405. },
  1406. "98": {
  1407. "textContent": {
  1408. "type": "string",
  1409. "value": "Time"
  1410. },
  1411. "style": {
  1412. "type": "map<string,string>",
  1413. "value": {
  1414. "font-size": "18px",
  1415. "font-style": "normal",
  1416. "font-weight": "bold",
  1417. "line-height": "100%",
  1418. "letter-spacing": "0px",
  1419. "word-spacing": "0px",
  1420. "fill": "#000000",
  1421. "fill-opacity": "1",
  1422. "stroke": "none"
  1423. }
  1424. },
  1425. "mapper": {
  1426. "type": "code",
  1427. "value": "var style = \n{\n \"font-size\": \"18px\",\n \"font-style\": \"normal\",\n \"font-weight\": \"bold\",\n \"line-height\": \"100%\",\n \"letter-spacing\": \"0px\",\n \"word-spacing\": \"0px\",\n \"fill\": \"#000000\",\n \"fill-opacity\": \"1\",\n \"stroke\": \"none\",\n \"font-style\": (getAttr('abstract') ? 'italic' : 'normal')\n};\n\n({'textContent': getAttr('name'), 'style':style})\n\n\n"
  1428. },
  1429. "parser": {
  1430. "type": "code",
  1431. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */\n({'name': getAttr('textContent')})"
  1432. },
  1433. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  1434. "position": {
  1435. "type": "list<double>",
  1436. "value": [
  1437. 8,
  1438. 8
  1439. ]
  1440. },
  1441. "orientation": {
  1442. "type": "double",
  1443. "value": 0
  1444. },
  1445. "scale": {
  1446. "type": "list<double>",
  1447. "value": [
  1448. 1,
  1449. 1
  1450. ]
  1451. }
  1452. },
  1453. "99": {
  1454. "textContent": {
  1455. "type": "string",
  1456. "value": "+ clock : int"
  1457. },
  1458. "style": {
  1459. "type": "map<string,string>",
  1460. "value": {
  1461. "font-size": "14px",
  1462. "font-style": "normal",
  1463. "font-weight": "bold",
  1464. "line-height": "100%",
  1465. "letter-spacing": "0px",
  1466. "word-spacing": "0px",
  1467. "fill": "#000000",
  1468. "fill-opacity": "1",
  1469. "stroke": "none"
  1470. }
  1471. },
  1472. "mapper": {
  1473. "type": "code",
  1474. "value": "var filenames = getAttr('attributes').map(\n function(attr)\n {\n var s = '+ '+attr['name'] + ' : ' + attr['type'];\n if (attr['default'])\n s += ' = ' + attr['default'];\n return s;\n });\n\n({'textContent': filenames.join('\\n')})"
  1475. },
  1476. "parser": {
  1477. "type": "code",
  1478. "value": ""
  1479. },
  1480. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  1481. "position": {
  1482. "type": "list<double>",
  1483. "value": [
  1484. 10,
  1485. 41
  1486. ]
  1487. },
  1488. "orientation": {
  1489. "type": "double",
  1490. "value": 0
  1491. },
  1492. "scale": {
  1493. "type": "list<double>",
  1494. "value": [
  1495. 1,
  1496. 1
  1497. ]
  1498. }
  1499. },
  1500. "100": {
  1501. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  1502. "position": {
  1503. "type": "list<double>",
  1504. "value": [
  1505. 68.5,
  1506. 36.5
  1507. ]
  1508. },
  1509. "orientation": {
  1510. "type": "double",
  1511. "value": 0
  1512. },
  1513. "scale": {
  1514. "type": "list<double>",
  1515. "value": [
  1516. 1,
  1517. 1
  1518. ]
  1519. },
  1520. "link-style": {
  1521. "type": "map<string,string>",
  1522. "value": {
  1523. "stroke": "#00ffff",
  1524. "stroke-dasharray": "",
  1525. "stroke-opacity": 0.1,
  1526. "stroke-width": 1
  1527. }
  1528. }
  1529. },
  1530. "101": {
  1531. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  1532. "position": {
  1533. "type": "list<double>",
  1534. "value": [
  1535. 12.5,
  1536. 27
  1537. ]
  1538. },
  1539. "orientation": {
  1540. "type": "double",
  1541. "value": 0
  1542. },
  1543. "scale": {
  1544. "type": "list<double>",
  1545. "value": [
  1546. 1,
  1547. 1
  1548. ]
  1549. },
  1550. "link-style": {
  1551. "type": "map<string,string>",
  1552. "value": {
  1553. "stroke": "#00ffff",
  1554. "stroke-dasharray": "",
  1555. "stroke-opacity": 0.1,
  1556. "stroke-width": 1
  1557. }
  1558. }
  1559. },
  1560. "102": {
  1561. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  1562. "position": {
  1563. "type": "list<double>",
  1564. "value": [
  1565. 53.75,
  1566. 20
  1567. ]
  1568. },
  1569. "orientation": {
  1570. "type": "double",
  1571. "value": 0
  1572. },
  1573. "scale": {
  1574. "type": "list<double>",
  1575. "value": [
  1576. 1,
  1577. 1
  1578. ]
  1579. },
  1580. "link-style": {
  1581. "type": "map<string,string>",
  1582. "value": {
  1583. "stroke": "#00ffff",
  1584. "stroke-dasharray": "",
  1585. "stroke-opacity": 0.1,
  1586. "stroke-width": 1
  1587. }
  1588. }
  1589. }
  1590. },
  1591. "edges": [
  1592. {
  1593. "src": "96",
  1594. "dest": "100"
  1595. },
  1596. {
  1597. "src": "100",
  1598. "dest": "98"
  1599. },
  1600. {
  1601. "src": "96",
  1602. "dest": "101"
  1603. },
  1604. {
  1605. "src": "101",
  1606. "dest": "99"
  1607. },
  1608. {
  1609. "src": "96",
  1610. "dest": "102"
  1611. },
  1612. {
  1613. "src": "102",
  1614. "dest": "97"
  1615. }
  1616. ]
  1617. }
  1618. },
  1619. "$asuri": {
  1620. "type": "string",
  1621. "value": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Class/21.instance"
  1622. },
  1623. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/ClassIcon"
  1624. },
  1625. "34": {
  1626. "typename": {
  1627. "type": "string",
  1628. "value": "ClassIcon"
  1629. },
  1630. "position": {
  1631. "type": "list<double>",
  1632. "value": [
  1633. 725,
  1634. 203
  1635. ]
  1636. },
  1637. "orientation": {
  1638. "type": "double",
  1639. "value": 0
  1640. },
  1641. "scale": {
  1642. "type": "list<double>",
  1643. "value": [
  1644. 1,
  1645. 1
  1646. ]
  1647. },
  1648. "mapper": {
  1649. "type": "code",
  1650. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  1651. },
  1652. "parser": {
  1653. "type": "code",
  1654. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  1655. },
  1656. "$contents": {
  1657. "type": "map<string,*>",
  1658. "value": {
  1659. "nodes": {
  1660. "96": {
  1661. "width": {
  1662. "type": "double",
  1663. "value": 200
  1664. },
  1665. "height": {
  1666. "type": "double",
  1667. "value": 125
  1668. },
  1669. "cornerRadius": {
  1670. "type": "double",
  1671. "value": 0
  1672. },
  1673. "style": {
  1674. "type": "map<string,string>",
  1675. "value": {
  1676. "stroke": "#000000",
  1677. "stroke-dasharray": "",
  1678. "fill": "#ffffff",
  1679. "fill-opacity": 0.75,
  1680. "stroke-width": 2
  1681. }
  1682. },
  1683. "mapper": {
  1684. "type": "code",
  1685. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  1686. },
  1687. "parser": {
  1688. "type": "code",
  1689. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  1690. },
  1691. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  1692. "position": {
  1693. "type": "list<double>",
  1694. "value": [
  1695. 4,
  1696. 3
  1697. ]
  1698. },
  1699. "orientation": {
  1700. "type": "double",
  1701. "value": 0
  1702. },
  1703. "scale": {
  1704. "type": "list<double>",
  1705. "value": [
  1706. 1,
  1707. 1
  1708. ]
  1709. }
  1710. },
  1711. "97": {
  1712. "segments": {
  1713. "type": "string",
  1714. "value": "m0,0l197,0"
  1715. },
  1716. "style": {
  1717. "type": "map<string,string>",
  1718. "value": {
  1719. "stroke": "#000000",
  1720. "stroke-dasharray": "",
  1721. "fill": "#ffffff",
  1722. "fill-opacity": 0.75,
  1723. "font-size": "20px",
  1724. "stroke-width": 2,
  1725. "arrow-start": "none",
  1726. "arrow-end": "none"
  1727. }
  1728. },
  1729. "mapper": {
  1730. "type": "code",
  1731. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  1732. },
  1733. "parser": {
  1734. "type": "code",
  1735. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  1736. },
  1737. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  1738. "position": {
  1739. "type": "list<double>",
  1740. "value": [
  1741. 6,
  1742. 36
  1743. ]
  1744. },
  1745. "orientation": {
  1746. "type": "double",
  1747. "value": 0
  1748. },
  1749. "scale": {
  1750. "type": "list<double>",
  1751. "value": [
  1752. 1,
  1753. 1
  1754. ]
  1755. }
  1756. },
  1757. "98": {
  1758. "textContent": {
  1759. "type": "string",
  1760. "value": "AbstractInterrupt"
  1761. },
  1762. "style": {
  1763. "type": "map<string,string>",
  1764. "value": {
  1765. "font-size": "18px",
  1766. "font-style": "italic",
  1767. "font-weight": "bold",
  1768. "line-height": "100%",
  1769. "letter-spacing": "0px",
  1770. "word-spacing": "0px",
  1771. "fill": "#000000",
  1772. "fill-opacity": "1",
  1773. "stroke": "none"
  1774. }
  1775. },
  1776. "mapper": {
  1777. "type": "code",
  1778. "value": "var style = \n{\n \"font-size\": \"18px\",\n \"font-style\": \"normal\",\n \"font-weight\": \"bold\",\n \"line-height\": \"100%\",\n \"letter-spacing\": \"0px\",\n \"word-spacing\": \"0px\",\n \"fill\": \"#000000\",\n \"fill-opacity\": \"1\",\n \"stroke\": \"none\",\n \"font-style\": (getAttr('abstract') ? 'italic' : 'normal')\n};\n\n({'textContent': getAttr('name'), 'style':style})\n\n\n"
  1779. },
  1780. "parser": {
  1781. "type": "code",
  1782. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */\n({'name': getAttr('textContent')})"
  1783. },
  1784. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  1785. "position": {
  1786. "type": "list<double>",
  1787. "value": [
  1788. 8,
  1789. 8
  1790. ]
  1791. },
  1792. "orientation": {
  1793. "type": "double",
  1794. "value": 0
  1795. },
  1796. "scale": {
  1797. "type": "list<double>",
  1798. "value": [
  1799. 1,
  1800. 1
  1801. ]
  1802. }
  1803. },
  1804. "99": {
  1805. "textContent": {
  1806. "type": "string",
  1807. "value": "+ current : boolean"
  1808. },
  1809. "style": {
  1810. "type": "map<string,string>",
  1811. "value": {
  1812. "font-size": "14px",
  1813. "font-style": "normal",
  1814. "font-weight": "bold",
  1815. "line-height": "100%",
  1816. "letter-spacing": "0px",
  1817. "word-spacing": "0px",
  1818. "fill": "#000000",
  1819. "fill-opacity": "1",
  1820. "stroke": "none"
  1821. }
  1822. },
  1823. "mapper": {
  1824. "type": "code",
  1825. "value": "var filenames = getAttr('attributes').map(\n function(attr)\n {\n var s = '+ '+attr['name'] + ' : ' + attr['type'];\n if (attr['default'])\n s += ' = ' + attr['default'];\n return s;\n });\n\n({'textContent': filenames.join('\\n')})"
  1826. },
  1827. "parser": {
  1828. "type": "code",
  1829. "value": ""
  1830. },
  1831. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  1832. "position": {
  1833. "type": "list<double>",
  1834. "value": [
  1835. 10,
  1836. 41
  1837. ]
  1838. },
  1839. "orientation": {
  1840. "type": "double",
  1841. "value": 0
  1842. },
  1843. "scale": {
  1844. "type": "list<double>",
  1845. "value": [
  1846. 1,
  1847. 1
  1848. ]
  1849. }
  1850. },
  1851. "100": {
  1852. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  1853. "position": {
  1854. "type": "list<double>",
  1855. "value": [
  1856. 68.5,
  1857. 36.5
  1858. ]
  1859. },
  1860. "orientation": {
  1861. "type": "double",
  1862. "value": 0
  1863. },
  1864. "scale": {
  1865. "type": "list<double>",
  1866. "value": [
  1867. 1,
  1868. 1
  1869. ]
  1870. },
  1871. "link-style": {
  1872. "type": "map<string,string>",
  1873. "value": {
  1874. "stroke": "#00ffff",
  1875. "stroke-dasharray": "",
  1876. "stroke-opacity": 0.1,
  1877. "stroke-width": 1
  1878. }
  1879. }
  1880. },
  1881. "101": {
  1882. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  1883. "position": {
  1884. "type": "list<double>",
  1885. "value": [
  1886. 12.5,
  1887. 27
  1888. ]
  1889. },
  1890. "orientation": {
  1891. "type": "double",
  1892. "value": 0
  1893. },
  1894. "scale": {
  1895. "type": "list<double>",
  1896. "value": [
  1897. 1,
  1898. 1
  1899. ]
  1900. },
  1901. "link-style": {
  1902. "type": "map<string,string>",
  1903. "value": {
  1904. "stroke": "#00ffff",
  1905. "stroke-dasharray": "",
  1906. "stroke-opacity": 0.1,
  1907. "stroke-width": 1
  1908. }
  1909. }
  1910. },
  1911. "102": {
  1912. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  1913. "position": {
  1914. "type": "list<double>",
  1915. "value": [
  1916. 53.75,
  1917. 20
  1918. ]
  1919. },
  1920. "orientation": {
  1921. "type": "double",
  1922. "value": 0
  1923. },
  1924. "scale": {
  1925. "type": "list<double>",
  1926. "value": [
  1927. 1,
  1928. 1
  1929. ]
  1930. },
  1931. "link-style": {
  1932. "type": "map<string,string>",
  1933. "value": {
  1934. "stroke": "#00ffff",
  1935. "stroke-dasharray": "",
  1936. "stroke-opacity": 0.1,
  1937. "stroke-width": 1
  1938. }
  1939. }
  1940. }
  1941. },
  1942. "edges": [
  1943. {
  1944. "src": "96",
  1945. "dest": "100"
  1946. },
  1947. {
  1948. "src": "100",
  1949. "dest": "98"
  1950. },
  1951. {
  1952. "src": "96",
  1953. "dest": "101"
  1954. },
  1955. {
  1956. "src": "101",
  1957. "dest": "99"
  1958. },
  1959. {
  1960. "src": "96",
  1961. "dest": "102"
  1962. },
  1963. {
  1964. "src": "102",
  1965. "dest": "97"
  1966. }
  1967. ]
  1968. }
  1969. },
  1970. "$asuri": {
  1971. "type": "string",
  1972. "value": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Class/22.instance"
  1973. },
  1974. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/ClassIcon"
  1975. },
  1976. "35": {
  1977. "link-style": {
  1978. "type": "map<string,string>",
  1979. "value": {
  1980. "stroke": "#000000",
  1981. "stroke-dasharray": "",
  1982. "stroke-opacity": 1,
  1983. "stroke-width": 2
  1984. }
  1985. },
  1986. "arrowHead": {
  1987. "type": "ENUM(circle-black,circle-black-large,circle-white,circle-white-large,diamond-black,diamond-black-large,diamond-white,diamond-white-large,triangle-black,triangle-black-large,triangle-white,triangle-white-large,arrow-black,arrow-black-large,arrow-empty,arrow-empty-large,custom)",
  1988. "value": "custom"
  1989. },
  1990. "arrowTail": {
  1991. "type": "ENUM(circle-black,circle-black-large,circle-white,circle-white-large,diamond-black,diamond-black-large,diamond-white,diamond-white-large,triangle-black,triangle-black-large,triangle-white,triangle-white-large,arrow-black,arrow-black-large,arrow-empty,arrow-empty-large,custom)",
  1992. "value": "arrow-black"
  1993. },
  1994. "typename": {
  1995. "type": "string",
  1996. "value": "AssociationLink"
  1997. },
  1998. "position": {
  1999. "type": "list<double>",
  2000. "value": [
  2001. 764.0966941268182,
  2002. 376.3847108487938
  2003. ]
  2004. },
  2005. "orientation": {
  2006. "type": "double",
  2007. "value": 0
  2008. },
  2009. "scale": {
  2010. "type": "list<double>",
  2011. "value": [
  2012. 1,
  2013. 1
  2014. ]
  2015. },
  2016. "mapper": {
  2017. "type": "code",
  2018. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  2019. },
  2020. "parser": {
  2021. "type": "code",
  2022. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  2023. },
  2024. "$contents": {
  2025. "type": "map<string,*>",
  2026. "value": {
  2027. "nodes": {
  2028. "71": {
  2029. "textContent": {
  2030. "type": "string",
  2031. "value": "Next"
  2032. },
  2033. "style": {
  2034. "type": "map<string,string>",
  2035. "value": {
  2036. "font-size": "20px",
  2037. "font-style": "normal",
  2038. "font-weight": "normal",
  2039. "line-height": "100%",
  2040. "letter-spacing": "0px",
  2041. "word-spacing": "0px",
  2042. "fill": "#000000",
  2043. "fill-opacity": "1",
  2044. "stroke": "none",
  2045. "font-family": "Sans"
  2046. }
  2047. },
  2048. "mapper": {
  2049. "type": "code",
  2050. "value": "({'textContent':getAttr('name')})"
  2051. },
  2052. "parser": {
  2053. "type": "code",
  2054. "value": "({'name':getAttr('textContent')})"
  2055. },
  2056. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  2057. "position": {
  2058. "type": "list<double>",
  2059. "value": [
  2060. "0;-28.596694126818193,0%",
  2061. "0;58.71344866040863,0%"
  2062. ]
  2063. },
  2064. "orientation": {
  2065. "type": "double",
  2066. "value": "0;-90"
  2067. },
  2068. "scale": {
  2069. "type": "list<double>",
  2070. "value": [
  2071. 1,
  2072. 1
  2073. ]
  2074. },
  2075. "$linkDecoratorInfo": {
  2076. "type": "map<string,double>",
  2077. "value": {
  2078. "xratio": 0.3803680981595092,
  2079. "yoffset": -28.5
  2080. }
  2081. }
  2082. },
  2083. "74": {
  2084. "textContent": {
  2085. "type": "string",
  2086. "value": "0..1"
  2087. },
  2088. "style": {
  2089. "type": "map<string,string>",
  2090. "value": {
  2091. "font-size": "20px",
  2092. "font-style": "normal",
  2093. "font-weight": "normal",
  2094. "line-height": "100%",
  2095. "letter-spacing": "0px",
  2096. "word-spacing": "0px",
  2097. "fill": "#000000",
  2098. "fill-opacity": "1",
  2099. "stroke": "none",
  2100. "font-family": "Sans"
  2101. }
  2102. },
  2103. "mapper": {
  2104. "type": "code",
  2105. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */\nvar clazz = getNeighbors('>'),\n mult = '';\nif (clazz.length > 0) {\n clazz = clazz[0];\n var cardinalities = getAttr('cardinalities', clazz), card;\n for (i = 0; i < cardinalities.length; i++) {\n if (cardinalities[i]['type'] == getAttr('name') && cardinalities[i]['dir'] == 'in') {\n card = cardinalities[i];\n break;\n }\n }\n if (card) {\n var min = card['min'],\n max = card['max'];\n if (min == '')\n min = '0';\n if (max == '' || max == 'Infinity')\n max = '*';\n if (min == '0' && max == '*')\n mult = '*';\n else if (min == max)\n mult = max;\n else mult = min + '..' + max;\n }\n}\nif (mult == '')\n mult = '*';\n({'textContent': mult})"
  2106. },
  2107. "parser": {
  2108. "type": "code",
  2109. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  2110. },
  2111. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  2112. "position": {
  2113. "type": "list<double>",
  2114. "value": [
  2115. "0;-25.596694126818193,0%",
  2116. "0;112.30854068494853,0%"
  2117. ]
  2118. },
  2119. "orientation": {
  2120. "type": "double",
  2121. "value": "0;-90"
  2122. },
  2123. "scale": {
  2124. "type": "list<double>",
  2125. "value": [
  2126. 1,
  2127. 1
  2128. ]
  2129. },
  2130. "$linkDecoratorInfo": {
  2131. "type": "map<string,double>",
  2132. "value": {
  2133. "xratio": 0.06134969325153374,
  2134. "yoffset": -25.5
  2135. }
  2136. }
  2137. },
  2138. "77": {
  2139. "textContent": {
  2140. "type": "string",
  2141. "value": "0..1"
  2142. },
  2143. "style": {
  2144. "type": "map<string,string>",
  2145. "value": {
  2146. "font-size": "20px",
  2147. "font-style": "normal",
  2148. "font-weight": "normal",
  2149. "line-height": "100%",
  2150. "letter-spacing": "0px",
  2151. "word-spacing": "0px",
  2152. "fill": "#000000",
  2153. "fill-opacity": "1",
  2154. "stroke": "none",
  2155. "font-family": "Sans"
  2156. }
  2157. },
  2158. "mapper": {
  2159. "type": "code",
  2160. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */\nvar clazz = getNeighbors('<'),\n mult = '';\nif (clazz.length > 0) {\n clazz = clazz[0];\n var cardinalities = getAttr('cardinalities', clazz), card;\n for (i = 0; i < cardinalities.length; i++) {\n if (cardinalities[i]['type'] == getAttr('name') && cardinalities[i]['dir'] == 'out') {\n card = cardinalities[i];\n break;\n }\n }\n if (card) {\n var min = card['min'],\n max = card['max'];\n if (min == '')\n min = '0';\n if (max == '' || max == 'Infinity')\n max = '*';\n if (min == '0' && max == '*')\n mult = '*';\n else if (min == max)\n mult = max;\n else mult = min + '..' + max;\n }\n}\nif (mult == '')\n mult = '*';\n({'textContent': mult})"
  2161. },
  2162. "parser": {
  2163. "type": "code",
  2164. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  2165. },
  2166. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  2167. "position": {
  2168. "type": "list<double>",
  2169. "value": [
  2170. "0;-23.596694126818193,6.123233995736766e-15%",
  2171. "0;-45.384710848793816,-100%"
  2172. ]
  2173. },
  2174. "orientation": {
  2175. "type": "double",
  2176. "value": "0;-90"
  2177. },
  2178. "scale": {
  2179. "type": "list<double>",
  2180. "value": [
  2181. 1,
  2182. 1
  2183. ]
  2184. },
  2185. "$linkDecoratorInfo": {
  2186. "type": "map<string,double>",
  2187. "value": {
  2188. "xratio": 1.0245398773006136,
  2189. "yoffset": -23.5
  2190. }
  2191. }
  2192. },
  2193. "140": {
  2194. "segments": {
  2195. "type": "string",
  2196. "value": "m0,0 l20,8 l-20,8"
  2197. },
  2198. "style": {
  2199. "type": "map<string,string>",
  2200. "value": {
  2201. "stroke": "#000000",
  2202. "fill": "#000000",
  2203. "fill-opacity": 0,
  2204. "stroke-width": 1,
  2205. "opacity": 1
  2206. }
  2207. },
  2208. "mapper": {
  2209. "type": "code",
  2210. "value": ""
  2211. },
  2212. "parser": {
  2213. "type": "code",
  2214. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  2215. },
  2216. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  2217. "position": {
  2218. "type": "list<double>",
  2219. "value": [
  2220. "0;-8.096694126818193,6.123233995736766e-15%",
  2221. "0;-45.384710848793816,-100%"
  2222. ]
  2223. },
  2224. "orientation": {
  2225. "type": "double",
  2226. "value": "0;-90"
  2227. },
  2228. "scale": {
  2229. "type": "list<double>",
  2230. "value": [
  2231. 1,
  2232. 1
  2233. ]
  2234. },
  2235. "$linkDecoratorInfo": {
  2236. "type": "map<string,double>",
  2237. "value": {
  2238. "xratio": 1,
  2239. "yoffset": -8
  2240. }
  2241. }
  2242. }
  2243. },
  2244. "edges": []
  2245. }
  2246. },
  2247. "$asuri": {
  2248. "type": "string",
  2249. "value": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Association/23.instance"
  2250. },
  2251. "$segments": {
  2252. "type": "map<string,list<string>>",
  2253. "value": {
  2254. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/ClassIcon/30.instance--/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/AssociationLink/35.instance": "M764,499L764,376",
  2255. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/AssociationLink/35.instance--/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/ClassIcon/34.instance": "M764,376L764,331"
  2256. }
  2257. },
  2258. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/AssociationLink"
  2259. },
  2260. "36": {
  2261. "typename": {
  2262. "type": "string",
  2263. "value": "ClassIcon"
  2264. },
  2265. "position": {
  2266. "type": "list<double>",
  2267. "value": [
  2268. 856,
  2269. 496
  2270. ]
  2271. },
  2272. "orientation": {
  2273. "type": "double",
  2274. "value": 0
  2275. },
  2276. "scale": {
  2277. "type": "list<double>",
  2278. "value": [
  2279. 1,
  2280. 1
  2281. ]
  2282. },
  2283. "mapper": {
  2284. "type": "code",
  2285. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  2286. },
  2287. "parser": {
  2288. "type": "code",
  2289. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  2290. },
  2291. "$contents": {
  2292. "type": "map<string,*>",
  2293. "value": {
  2294. "nodes": {
  2295. "96": {
  2296. "width": {
  2297. "type": "double",
  2298. "value": 200
  2299. },
  2300. "height": {
  2301. "type": "double",
  2302. "value": 125
  2303. },
  2304. "cornerRadius": {
  2305. "type": "double",
  2306. "value": 0
  2307. },
  2308. "style": {
  2309. "type": "map<string,string>",
  2310. "value": {
  2311. "stroke": "#000000",
  2312. "stroke-dasharray": "",
  2313. "fill": "#ffffff",
  2314. "fill-opacity": 0.75,
  2315. "stroke-width": 2
  2316. }
  2317. },
  2318. "mapper": {
  2319. "type": "code",
  2320. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  2321. },
  2322. "parser": {
  2323. "type": "code",
  2324. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  2325. },
  2326. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  2327. "position": {
  2328. "type": "list<double>",
  2329. "value": [
  2330. 4,
  2331. 3
  2332. ]
  2333. },
  2334. "orientation": {
  2335. "type": "double",
  2336. "value": 0
  2337. },
  2338. "scale": {
  2339. "type": "list<double>",
  2340. "value": [
  2341. 1,
  2342. 1
  2343. ]
  2344. }
  2345. },
  2346. "97": {
  2347. "segments": {
  2348. "type": "string",
  2349. "value": "m0,0l197,0"
  2350. },
  2351. "style": {
  2352. "type": "map<string,string>",
  2353. "value": {
  2354. "stroke": "#000000",
  2355. "stroke-dasharray": "",
  2356. "fill": "#ffffff",
  2357. "fill-opacity": 0.75,
  2358. "font-size": "20px",
  2359. "stroke-width": 2,
  2360. "arrow-start": "none",
  2361. "arrow-end": "none"
  2362. }
  2363. },
  2364. "mapper": {
  2365. "type": "code",
  2366. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  2367. },
  2368. "parser": {
  2369. "type": "code",
  2370. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  2371. },
  2372. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  2373. "position": {
  2374. "type": "list<double>",
  2375. "value": [
  2376. 6,
  2377. 36
  2378. ]
  2379. },
  2380. "orientation": {
  2381. "type": "double",
  2382. "value": 0
  2383. },
  2384. "scale": {
  2385. "type": "list<double>",
  2386. "value": [
  2387. 1,
  2388. 1
  2389. ]
  2390. }
  2391. },
  2392. "98": {
  2393. "textContent": {
  2394. "type": "string",
  2395. "value": "End"
  2396. },
  2397. "style": {
  2398. "type": "map<string,string>",
  2399. "value": {
  2400. "font-size": "18px",
  2401. "font-style": "normal",
  2402. "font-weight": "bold",
  2403. "line-height": "100%",
  2404. "letter-spacing": "0px",
  2405. "word-spacing": "0px",
  2406. "fill": "#000000",
  2407. "fill-opacity": "1",
  2408. "stroke": "none"
  2409. }
  2410. },
  2411. "mapper": {
  2412. "type": "code",
  2413. "value": "var style = \n{\n \"font-size\": \"18px\",\n \"font-style\": \"normal\",\n \"font-weight\": \"bold\",\n \"line-height\": \"100%\",\n \"letter-spacing\": \"0px\",\n \"word-spacing\": \"0px\",\n \"fill\": \"#000000\",\n \"fill-opacity\": \"1\",\n \"stroke\": \"none\",\n \"font-style\": (getAttr('abstract') ? 'italic' : 'normal')\n};\n\n({'textContent': getAttr('name'), 'style':style})\n\n\n"
  2414. },
  2415. "parser": {
  2416. "type": "code",
  2417. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */\n({'name': getAttr('textContent')})"
  2418. },
  2419. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  2420. "position": {
  2421. "type": "list<double>",
  2422. "value": [
  2423. 8,
  2424. 8
  2425. ]
  2426. },
  2427. "orientation": {
  2428. "type": "double",
  2429. "value": 0
  2430. },
  2431. "scale": {
  2432. "type": "list<double>",
  2433. "value": [
  2434. 1,
  2435. 1
  2436. ]
  2437. }
  2438. },
  2439. "99": {
  2440. "textContent": {
  2441. "type": "string",
  2442. "value": ""
  2443. },
  2444. "style": {
  2445. "type": "map<string,string>",
  2446. "value": {
  2447. "font-size": "14px",
  2448. "font-style": "normal",
  2449. "font-weight": "bold",
  2450. "line-height": "100%",
  2451. "letter-spacing": "0px",
  2452. "word-spacing": "0px",
  2453. "fill": "#000000",
  2454. "fill-opacity": "1",
  2455. "stroke": "none"
  2456. }
  2457. },
  2458. "mapper": {
  2459. "type": "code",
  2460. "value": "var filenames = getAttr('attributes').map(\n function(attr)\n {\n var s = '+ '+attr['name'] + ' : ' + attr['type'];\n if (attr['default'])\n s += ' = ' + attr['default'];\n return s;\n });\n\n({'textContent': filenames.join('\\n')})"
  2461. },
  2462. "parser": {
  2463. "type": "code",
  2464. "value": ""
  2465. },
  2466. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  2467. "position": {
  2468. "type": "list<double>",
  2469. "value": [
  2470. 10,
  2471. 41
  2472. ]
  2473. },
  2474. "orientation": {
  2475. "type": "double",
  2476. "value": 0
  2477. },
  2478. "scale": {
  2479. "type": "list<double>",
  2480. "value": [
  2481. 1,
  2482. 1
  2483. ]
  2484. }
  2485. },
  2486. "100": {
  2487. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  2488. "position": {
  2489. "type": "list<double>",
  2490. "value": [
  2491. 68.5,
  2492. 36.5
  2493. ]
  2494. },
  2495. "orientation": {
  2496. "type": "double",
  2497. "value": 0
  2498. },
  2499. "scale": {
  2500. "type": "list<double>",
  2501. "value": [
  2502. 1,
  2503. 1
  2504. ]
  2505. },
  2506. "link-style": {
  2507. "type": "map<string,string>",
  2508. "value": {
  2509. "stroke": "#00ffff",
  2510. "stroke-dasharray": "",
  2511. "stroke-opacity": 0.1,
  2512. "stroke-width": 1
  2513. }
  2514. }
  2515. },
  2516. "101": {
  2517. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  2518. "position": {
  2519. "type": "list<double>",
  2520. "value": [
  2521. 12.5,
  2522. 27
  2523. ]
  2524. },
  2525. "orientation": {
  2526. "type": "double",
  2527. "value": 0
  2528. },
  2529. "scale": {
  2530. "type": "list<double>",
  2531. "value": [
  2532. 1,
  2533. 1
  2534. ]
  2535. },
  2536. "link-style": {
  2537. "type": "map<string,string>",
  2538. "value": {
  2539. "stroke": "#00ffff",
  2540. "stroke-dasharray": "",
  2541. "stroke-opacity": 0.1,
  2542. "stroke-width": 1
  2543. }
  2544. }
  2545. },
  2546. "102": {
  2547. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  2548. "position": {
  2549. "type": "list<double>",
  2550. "value": [
  2551. 53.75,
  2552. 20
  2553. ]
  2554. },
  2555. "orientation": {
  2556. "type": "double",
  2557. "value": 0
  2558. },
  2559. "scale": {
  2560. "type": "list<double>",
  2561. "value": [
  2562. 1,
  2563. 1
  2564. ]
  2565. },
  2566. "link-style": {
  2567. "type": "map<string,string>",
  2568. "value": {
  2569. "stroke": "#00ffff",
  2570. "stroke-dasharray": "",
  2571. "stroke-opacity": 0.1,
  2572. "stroke-width": 1
  2573. }
  2574. }
  2575. }
  2576. },
  2577. "edges": [
  2578. {
  2579. "src": "96",
  2580. "dest": "100"
  2581. },
  2582. {
  2583. "src": "100",
  2584. "dest": "98"
  2585. },
  2586. {
  2587. "src": "96",
  2588. "dest": "101"
  2589. },
  2590. {
  2591. "src": "101",
  2592. "dest": "99"
  2593. },
  2594. {
  2595. "src": "96",
  2596. "dest": "102"
  2597. },
  2598. {
  2599. "src": "102",
  2600. "dest": "97"
  2601. }
  2602. ]
  2603. }
  2604. },
  2605. "$asuri": {
  2606. "type": "string",
  2607. "value": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Class/24.instance"
  2608. },
  2609. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/ClassIcon"
  2610. },
  2611. "37": {
  2612. "link-style": {
  2613. "type": "map<string,string>",
  2614. "value": {
  2615. "stroke": "#000000",
  2616. "stroke-dasharray": "",
  2617. "stroke-opacity": 1,
  2618. "stroke-width": 2
  2619. }
  2620. },
  2621. "arrowHead": {
  2622. "type": "ENUM(circle-black,circle-black-large,circle-white,circle-white-large,diamond-black,diamond-black-large,diamond-white,diamond-white-large,triangle-black,triangle-black-large,triangle-white,triangle-white-large,arrow-black,arrow-black-large,arrow-empty,arrow-empty-large,custom)",
  2623. "value": "custom"
  2624. },
  2625. "arrowTail": {
  2626. "type": "ENUM(circle-black,circle-black-large,circle-white,circle-white-large,diamond-black,diamond-black-large,diamond-white,diamond-white-large,triangle-black,triangle-black-large,triangle-white,triangle-white-large,arrow-black,arrow-black-large,arrow-empty,arrow-empty-large,custom)",
  2627. "value": "arrow-black"
  2628. },
  2629. "typename": {
  2630. "type": "string",
  2631. "value": "InheritanceLink"
  2632. },
  2633. "position": {
  2634. "type": "list<double>",
  2635. "value": [
  2636. 797.5749998647917,
  2637. 372.3691862823399
  2638. ]
  2639. },
  2640. "orientation": {
  2641. "type": "double",
  2642. "value": 0
  2643. },
  2644. "scale": {
  2645. "type": "list<double>",
  2646. "value": [
  2647. 1,
  2648. 1
  2649. ]
  2650. },
  2651. "mapper": {
  2652. "type": "code",
  2653. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  2654. },
  2655. "parser": {
  2656. "type": "code",
  2657. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  2658. },
  2659. "$contents": {
  2660. "type": "map<string,*>",
  2661. "value": {
  2662. "nodes": {
  2663. "164": {
  2664. "segments": {
  2665. "type": "string",
  2666. "value": "m0,0 l20,10 l-20,10 z"
  2667. },
  2668. "style": {
  2669. "type": "map<string,string>",
  2670. "value": {
  2671. "stroke": "#000000",
  2672. "fill": "#ffffff",
  2673. "opacity": 1,
  2674. "stroke-width": 1
  2675. }
  2676. },
  2677. "mapper": {
  2678. "type": "code",
  2679. "value": ""
  2680. },
  2681. "parser": {
  2682. "type": "code",
  2683. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  2684. },
  2685. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  2686. "position": {
  2687. "type": "list<double>",
  2688. "value": [
  2689. "0;-10.574999864791721,6.123233995736766e-15%",
  2690. "0;-41.36918628233991,-100%"
  2691. ]
  2692. },
  2693. "orientation": {
  2694. "type": "double",
  2695. "value": "0;-90"
  2696. },
  2697. "scale": {
  2698. "type": "list<double>",
  2699. "value": [
  2700. 1,
  2701. 1
  2702. ]
  2703. },
  2704. "$linkDecoratorInfo": {
  2705. "type": "map<string,double>",
  2706. "value": {
  2707. "xratio": 1,
  2708. "yoffset": -10
  2709. }
  2710. }
  2711. }
  2712. },
  2713. "edges": []
  2714. }
  2715. },
  2716. "$asuri": {
  2717. "type": "string",
  2718. "value": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Inheritance/25.instance"
  2719. },
  2720. "$segments": {
  2721. "type": "map<string,list<string>>",
  2722. "value": {
  2723. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/ClassIcon/30.instance--/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/InheritanceLink/37.instance": "M797,500L797,372",
  2724. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/InheritanceLink/37.instance--/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/ClassIcon/34.instance": "M797,372L797,331"
  2725. }
  2726. },
  2727. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/InheritanceLink"
  2728. },
  2729. "38": {
  2730. "link-style": {
  2731. "type": "map<string,string>",
  2732. "value": {
  2733. "stroke": "#000000",
  2734. "stroke-dasharray": "",
  2735. "stroke-opacity": 1,
  2736. "stroke-width": 2
  2737. }
  2738. },
  2739. "arrowHead": {
  2740. "type": "ENUM(circle-black,circle-black-large,circle-white,circle-white-large,diamond-black,diamond-black-large,diamond-white,diamond-white-large,triangle-black,triangle-black-large,triangle-white,triangle-white-large,arrow-black,arrow-black-large,arrow-empty,arrow-empty-large,custom)",
  2741. "value": "custom"
  2742. },
  2743. "arrowTail": {
  2744. "type": "ENUM(circle-black,circle-black-large,circle-white,circle-white-large,diamond-black,diamond-black-large,diamond-white,diamond-white-large,triangle-black,triangle-black-large,triangle-white,triangle-white-large,arrow-black,arrow-black-large,arrow-empty,arrow-empty-large,custom)",
  2745. "value": "arrow-black"
  2746. },
  2747. "typename": {
  2748. "type": "string",
  2749. "value": "InheritanceLink"
  2750. },
  2751. "position": {
  2752. "type": "list<double>",
  2753. "value": [
  2754. 892.4159342012896,
  2755. 372.87472547643154
  2756. ]
  2757. },
  2758. "orientation": {
  2759. "type": "double",
  2760. "value": 0
  2761. },
  2762. "scale": {
  2763. "type": "list<double>",
  2764. "value": [
  2765. 1,
  2766. 1
  2767. ]
  2768. },
  2769. "mapper": {
  2770. "type": "code",
  2771. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  2772. },
  2773. "parser": {
  2774. "type": "code",
  2775. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  2776. },
  2777. "$contents": {
  2778. "type": "map<string,*>",
  2779. "value": {
  2780. "nodes": {
  2781. "164": {
  2782. "segments": {
  2783. "type": "string",
  2784. "value": "m0,0 l20,10 l-20,10 z"
  2785. },
  2786. "style": {
  2787. "type": "map<string,string>",
  2788. "value": {
  2789. "stroke": "#000000",
  2790. "fill": "#ffffff",
  2791. "opacity": 1,
  2792. "stroke-width": 1
  2793. }
  2794. },
  2795. "mapper": {
  2796. "type": "code",
  2797. "value": ""
  2798. },
  2799. "parser": {
  2800. "type": "code",
  2801. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  2802. },
  2803. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  2804. "position": {
  2805. "type": "list<double>",
  2806. "value": [
  2807. "0;-10.415934201289588,6.123233995736766e-15%",
  2808. "0;-40.874725476431536,-100%"
  2809. ]
  2810. },
  2811. "orientation": {
  2812. "type": "double",
  2813. "value": "0;-90"
  2814. },
  2815. "scale": {
  2816. "type": "list<double>",
  2817. "value": [
  2818. 1,
  2819. 1
  2820. ]
  2821. },
  2822. "$linkDecoratorInfo": {
  2823. "type": "map<string,double>",
  2824. "value": {
  2825. "xratio": 1,
  2826. "yoffset": -10
  2827. }
  2828. }
  2829. }
  2830. },
  2831. "edges": []
  2832. }
  2833. },
  2834. "$asuri": {
  2835. "type": "string",
  2836. "value": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Inheritance/26.instance"
  2837. },
  2838. "$segments": {
  2839. "type": "map<string,list<string>>",
  2840. "value": {
  2841. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/ClassIcon/36.instance--/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/InheritanceLink/38.instance": "M892,499L892,372",
  2842. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/InheritanceLink/38.instance--/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/ClassIcon/34.instance": "M892,372L892,332"
  2843. }
  2844. },
  2845. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/InheritanceLink"
  2846. },
  2847. "39": {
  2848. "typename": {
  2849. "type": "string",
  2850. "value": "ClassIcon"
  2851. },
  2852. "position": {
  2853. "type": "list<double>",
  2854. "value": [
  2855. 238,
  2856. 497.2672713745117
  2857. ]
  2858. },
  2859. "orientation": {
  2860. "type": "double",
  2861. "value": 0
  2862. },
  2863. "scale": {
  2864. "type": "list<double>",
  2865. "value": [
  2866. 1,
  2867. 1
  2868. ]
  2869. },
  2870. "mapper": {
  2871. "type": "code",
  2872. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  2873. },
  2874. "parser": {
  2875. "type": "code",
  2876. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  2877. },
  2878. "$contents": {
  2879. "type": "map<string,*>",
  2880. "value": {
  2881. "nodes": {
  2882. "96": {
  2883. "width": {
  2884. "type": "double",
  2885. "value": 200
  2886. },
  2887. "height": {
  2888. "type": "double",
  2889. "value": 125
  2890. },
  2891. "cornerRadius": {
  2892. "type": "double",
  2893. "value": 0
  2894. },
  2895. "style": {
  2896. "type": "map<string,string>",
  2897. "value": {
  2898. "stroke": "#000000",
  2899. "stroke-dasharray": "",
  2900. "fill": "#ffffff",
  2901. "fill-opacity": 0.75,
  2902. "stroke-width": 2
  2903. }
  2904. },
  2905. "mapper": {
  2906. "type": "code",
  2907. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  2908. },
  2909. "parser": {
  2910. "type": "code",
  2911. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  2912. },
  2913. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  2914. "position": {
  2915. "type": "list<double>",
  2916. "value": [
  2917. 4,
  2918. 3
  2919. ]
  2920. },
  2921. "orientation": {
  2922. "type": "double",
  2923. "value": 0
  2924. },
  2925. "scale": {
  2926. "type": "list<double>",
  2927. "value": [
  2928. 1,
  2929. 1
  2930. ]
  2931. }
  2932. },
  2933. "97": {
  2934. "segments": {
  2935. "type": "string",
  2936. "value": "m0,0l197,0"
  2937. },
  2938. "style": {
  2939. "type": "map<string,string>",
  2940. "value": {
  2941. "stroke": "#000000",
  2942. "stroke-dasharray": "",
  2943. "fill": "#ffffff",
  2944. "fill-opacity": 0.75,
  2945. "font-size": "20px",
  2946. "stroke-width": 2,
  2947. "arrow-start": "none",
  2948. "arrow-end": "none"
  2949. }
  2950. },
  2951. "mapper": {
  2952. "type": "code",
  2953. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  2954. },
  2955. "parser": {
  2956. "type": "code",
  2957. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  2958. },
  2959. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  2960. "position": {
  2961. "type": "list<double>",
  2962. "value": [
  2963. 6,
  2964. 36
  2965. ]
  2966. },
  2967. "orientation": {
  2968. "type": "double",
  2969. "value": 0
  2970. },
  2971. "scale": {
  2972. "type": "list<double>",
  2973. "value": [
  2974. 1,
  2975. 1
  2976. ]
  2977. }
  2978. },
  2979. "98": {
  2980. "textContent": {
  2981. "type": "string",
  2982. "value": "Visualisation"
  2983. },
  2984. "style": {
  2985. "type": "map<string,string>",
  2986. "value": {
  2987. "font-size": "18px",
  2988. "font-style": "normal",
  2989. "font-weight": "bold",
  2990. "line-height": "100%",
  2991. "letter-spacing": "0px",
  2992. "word-spacing": "0px",
  2993. "fill": "#000000",
  2994. "fill-opacity": "1",
  2995. "stroke": "none"
  2996. }
  2997. },
  2998. "mapper": {
  2999. "type": "code",
  3000. "value": "var style = \n{\n \"font-size\": \"18px\",\n \"font-style\": \"normal\",\n \"font-weight\": \"bold\",\n \"line-height\": \"100%\",\n \"letter-spacing\": \"0px\",\n \"word-spacing\": \"0px\",\n \"fill\": \"#000000\",\n \"fill-opacity\": \"1\",\n \"stroke\": \"none\",\n \"font-style\": (getAttr('abstract') ? 'italic' : 'normal')\n};\n\n({'textContent': getAttr('name'), 'style':style})\n\n\n"
  3001. },
  3002. "parser": {
  3003. "type": "code",
  3004. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */\n({'name': getAttr('textContent')})"
  3005. },
  3006. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  3007. "position": {
  3008. "type": "list<double>",
  3009. "value": [
  3010. 8,
  3011. 8
  3012. ]
  3013. },
  3014. "orientation": {
  3015. "type": "double",
  3016. "value": 0
  3017. },
  3018. "scale": {
  3019. "type": "list<double>",
  3020. "value": [
  3021. 1,
  3022. 1
  3023. ]
  3024. }
  3025. },
  3026. "99": {
  3027. "textContent": {
  3028. "type": "string",
  3029. "value": "+ red : boolean\n+ yellow : boolean\n+ green : boolean"
  3030. },
  3031. "style": {
  3032. "type": "map<string,string>",
  3033. "value": {
  3034. "font-size": "14px",
  3035. "font-style": "normal",
  3036. "font-weight": "bold",
  3037. "line-height": "100%",
  3038. "letter-spacing": "0px",
  3039. "word-spacing": "0px",
  3040. "fill": "#000000",
  3041. "fill-opacity": "1",
  3042. "stroke": "none"
  3043. }
  3044. },
  3045. "mapper": {
  3046. "type": "code",
  3047. "value": "var filenames = getAttr('attributes').map(\n function(attr)\n {\n var s = '+ '+attr['name'] + ' : ' + attr['type'];\n if (attr['default'])\n s += ' = ' + attr['default'];\n return s;\n });\n\n({'textContent': filenames.join('\\n')})"
  3048. },
  3049. "parser": {
  3050. "type": "code",
  3051. "value": ""
  3052. },
  3053. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  3054. "position": {
  3055. "type": "list<double>",
  3056. "value": [
  3057. 10,
  3058. 41
  3059. ]
  3060. },
  3061. "orientation": {
  3062. "type": "double",
  3063. "value": 0
  3064. },
  3065. "scale": {
  3066. "type": "list<double>",
  3067. "value": [
  3068. 1,
  3069. 1
  3070. ]
  3071. }
  3072. },
  3073. "100": {
  3074. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  3075. "position": {
  3076. "type": "list<double>",
  3077. "value": [
  3078. 68.5,
  3079. 36.5
  3080. ]
  3081. },
  3082. "orientation": {
  3083. "type": "double",
  3084. "value": 0
  3085. },
  3086. "scale": {
  3087. "type": "list<double>",
  3088. "value": [
  3089. 1,
  3090. 1
  3091. ]
  3092. },
  3093. "link-style": {
  3094. "type": "map<string,string>",
  3095. "value": {
  3096. "stroke": "#00ffff",
  3097. "stroke-dasharray": "",
  3098. "stroke-opacity": 0.1,
  3099. "stroke-width": 1
  3100. }
  3101. }
  3102. },
  3103. "101": {
  3104. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  3105. "position": {
  3106. "type": "list<double>",
  3107. "value": [
  3108. 12.5,
  3109. 27
  3110. ]
  3111. },
  3112. "orientation": {
  3113. "type": "double",
  3114. "value": 0
  3115. },
  3116. "scale": {
  3117. "type": "list<double>",
  3118. "value": [
  3119. 1,
  3120. 1
  3121. ]
  3122. },
  3123. "link-style": {
  3124. "type": "map<string,string>",
  3125. "value": {
  3126. "stroke": "#00ffff",
  3127. "stroke-dasharray": "",
  3128. "stroke-opacity": 0.1,
  3129. "stroke-width": 1
  3130. }
  3131. }
  3132. },
  3133. "102": {
  3134. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  3135. "position": {
  3136. "type": "list<double>",
  3137. "value": [
  3138. 53.75,
  3139. 20
  3140. ]
  3141. },
  3142. "orientation": {
  3143. "type": "double",
  3144. "value": 0
  3145. },
  3146. "scale": {
  3147. "type": "list<double>",
  3148. "value": [
  3149. 1,
  3150. 1
  3151. ]
  3152. },
  3153. "link-style": {
  3154. "type": "map<string,string>",
  3155. "value": {
  3156. "stroke": "#00ffff",
  3157. "stroke-dasharray": "",
  3158. "stroke-opacity": 0.1,
  3159. "stroke-width": 1
  3160. }
  3161. }
  3162. }
  3163. },
  3164. "edges": [
  3165. {
  3166. "src": "96",
  3167. "dest": "100"
  3168. },
  3169. {
  3170. "src": "100",
  3171. "dest": "98"
  3172. },
  3173. {
  3174. "src": "96",
  3175. "dest": "101"
  3176. },
  3177. {
  3178. "src": "101",
  3179. "dest": "99"
  3180. },
  3181. {
  3182. "src": "96",
  3183. "dest": "102"
  3184. },
  3185. {
  3186. "src": "102",
  3187. "dest": "97"
  3188. }
  3189. ]
  3190. }
  3191. },
  3192. "$asuri": {
  3193. "type": "string",
  3194. "value": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Class/27.instance"
  3195. },
  3196. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/ClassIcon"
  3197. },
  3198. "40": {
  3199. "link-style": {
  3200. "type": "map<string,string>",
  3201. "value": {
  3202. "stroke": "#000000",
  3203. "stroke-dasharray": "",
  3204. "stroke-opacity": 1,
  3205. "stroke-width": 2
  3206. }
  3207. },
  3208. "arrowHead": {
  3209. "type": "ENUM(circle-black,circle-black-large,circle-white,circle-white-large,diamond-black,diamond-black-large,diamond-white,diamond-white-large,triangle-black,triangle-black-large,triangle-white,triangle-white-large,arrow-black,arrow-black-large,arrow-empty,arrow-empty-large,custom)",
  3210. "value": "custom"
  3211. },
  3212. "arrowTail": {
  3213. "type": "ENUM(circle-black,circle-black-large,circle-white,circle-white-large,diamond-black,diamond-black-large,diamond-white,diamond-white-large,triangle-black,triangle-black-large,triangle-white,triangle-white-large,arrow-black,arrow-black-large,arrow-empty,arrow-empty-large,custom)",
  3214. "value": "arrow-black"
  3215. },
  3216. "typename": {
  3217. "type": "string",
  3218. "value": "AssociationLink"
  3219. },
  3220. "position": {
  3221. "type": "list<double>",
  3222. "value": [
  3223. 331.5,
  3224. 410.0034713745117
  3225. ]
  3226. },
  3227. "orientation": {
  3228. "type": "double",
  3229. "value": 0
  3230. },
  3231. "scale": {
  3232. "type": "list<double>",
  3233. "value": [
  3234. 1,
  3235. 1
  3236. ]
  3237. },
  3238. "mapper": {
  3239. "type": "code",
  3240. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */"
  3241. },
  3242. "parser": {
  3243. "type": "code",
  3244. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  3245. },
  3246. "$contents": {
  3247. "type": "map<string,*>",
  3248. "value": {
  3249. "nodes": {
  3250. "71": {
  3251. "textContent": {
  3252. "type": "string",
  3253. "value": "VisualisedBy"
  3254. },
  3255. "style": {
  3256. "type": "map<string,string>",
  3257. "value": {
  3258. "font-size": "20px",
  3259. "font-style": "normal",
  3260. "font-weight": "normal",
  3261. "line-height": "100%",
  3262. "letter-spacing": "0px",
  3263. "word-spacing": "0px",
  3264. "fill": "#000000",
  3265. "fill-opacity": "1",
  3266. "stroke": "none",
  3267. "font-family": "Sans"
  3268. }
  3269. },
  3270. "mapper": {
  3271. "type": "code",
  3272. "value": "({'textContent':getAttr('name')})"
  3273. },
  3274. "parser": {
  3275. "type": "code",
  3276. "value": "({'name':getAttr('textContent')})"
  3277. },
  3278. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  3279. "position": {
  3280. "type": "list<double>",
  3281. "value": [
  3282. "0;28,0%",
  3283. "0;-17.623103276352197,0%"
  3284. ]
  3285. },
  3286. "orientation": {
  3287. "type": "double",
  3288. "value": "0;90"
  3289. },
  3290. "scale": {
  3291. "type": "list<double>",
  3292. "value": [
  3293. 1,
  3294. 1
  3295. ]
  3296. },
  3297. "$linkDecoratorInfo": {
  3298. "type": "map<string,double>",
  3299. "value": {
  3300. "xratio": 0.3803680981595092,
  3301. "yoffset": -28.5
  3302. }
  3303. }
  3304. },
  3305. "74": {
  3306. "textContent": {
  3307. "type": "string",
  3308. "value": "*"
  3309. },
  3310. "style": {
  3311. "type": "map<string,string>",
  3312. "value": {
  3313. "font-size": "20px",
  3314. "font-style": "normal",
  3315. "font-weight": "normal",
  3316. "line-height": "100%",
  3317. "letter-spacing": "0px",
  3318. "word-spacing": "0px",
  3319. "fill": "#000000",
  3320. "fill-opacity": "1",
  3321. "stroke": "none",
  3322. "font-family": "Sans"
  3323. }
  3324. },
  3325. "mapper": {
  3326. "type": "code",
  3327. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */\nvar clazz = getNeighbors('>'),\n mult = '';\nif (clazz.length > 0) {\n clazz = clazz[0];\n var cardinalities = getAttr('cardinalities', clazz), card;\n for (i = 0; i < cardinalities.length; i++) {\n if (cardinalities[i]['type'] == getAttr('name') && cardinalities[i]['dir'] == 'in') {\n card = cardinalities[i];\n break;\n }\n }\n if (card) {\n var min = card['min'],\n max = card['max'];\n if (min == '')\n min = '0';\n if (max == '' || max == 'Infinity')\n max = '*';\n if (min == '0' && max == '*')\n mult = '*';\n else if (min == max)\n mult = max;\n else mult = min + '..' + max;\n }\n}\nif (mult == '')\n mult = '*';\n({'textContent': mult})"
  3328. },
  3329. "parser": {
  3330. "type": "code",
  3331. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  3332. },
  3333. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  3334. "position": {
  3335. "type": "list<double>",
  3336. "value": [
  3337. "0;25,0%",
  3338. "0;-69.94212168126018,0%"
  3339. ]
  3340. },
  3341. "orientation": {
  3342. "type": "double",
  3343. "value": "0;90"
  3344. },
  3345. "scale": {
  3346. "type": "list<double>",
  3347. "value": [
  3348. 1,
  3349. 1
  3350. ]
  3351. },
  3352. "$linkDecoratorInfo": {
  3353. "type": "map<string,double>",
  3354. "value": {
  3355. "xratio": 0.06134969325153374,
  3356. "yoffset": -25.5
  3357. }
  3358. }
  3359. },
  3360. "77": {
  3361. "textContent": {
  3362. "type": "string",
  3363. "value": "1"
  3364. },
  3365. "style": {
  3366. "type": "map<string,string>",
  3367. "value": {
  3368. "font-size": "20px",
  3369. "font-style": "normal",
  3370. "font-weight": "normal",
  3371. "line-height": "100%",
  3372. "letter-spacing": "0px",
  3373. "word-spacing": "0px",
  3374. "fill": "#000000",
  3375. "fill-opacity": "1",
  3376. "stroke": "none",
  3377. "font-family": "Sans"
  3378. }
  3379. },
  3380. "mapper": {
  3381. "type": "code",
  3382. "value": "/* specify code that evaluates to an associative array of the form {...,csattr:val,...} */\nvar clazz = getNeighbors('<'),\n mult = '';\nif (clazz.length > 0) {\n clazz = clazz[0];\n var cardinalities = getAttr('cardinalities', clazz), card;\n for (i = 0; i < cardinalities.length; i++) {\n if (cardinalities[i]['type'] == getAttr('name') && cardinalities[i]['dir'] == 'out') {\n card = cardinalities[i];\n break;\n }\n }\n if (card) {\n var min = card['min'],\n max = card['max'];\n if (min == '')\n min = '0';\n if (max == '' || max == 'Infinity')\n max = '*';\n if (min == '0' && max == '*')\n mult = '*';\n else if (min == max)\n mult = max;\n else mult = min + '..' + max;\n }\n}\nif (mult == '')\n mult = '*';\n({'textContent': mult})"
  3383. },
  3384. "parser": {
  3385. "type": "code",
  3386. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  3387. },
  3388. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  3389. "position": {
  3390. "type": "list<double>",
  3391. "value": [
  3392. "0;23,6.123233995736766e-15%",
  3393. "0;83.99652862548828,100%"
  3394. ]
  3395. },
  3396. "orientation": {
  3397. "type": "double",
  3398. "value": "0;90"
  3399. },
  3400. "scale": {
  3401. "type": "list<double>",
  3402. "value": [
  3403. 1,
  3404. 1
  3405. ]
  3406. },
  3407. "$linkDecoratorInfo": {
  3408. "type": "map<string,double>",
  3409. "value": {
  3410. "xratio": 1.0245398773006136,
  3411. "yoffset": -23.5
  3412. }
  3413. }
  3414. },
  3415. "140": {
  3416. "segments": {
  3417. "type": "string",
  3418. "value": "m0,0 l20,8 l-20,8"
  3419. },
  3420. "style": {
  3421. "type": "map<string,string>",
  3422. "value": {
  3423. "stroke": "#000000",
  3424. "fill": "#000000",
  3425. "fill-opacity": 0,
  3426. "stroke-width": 1,
  3427. "opacity": 1
  3428. }
  3429. },
  3430. "mapper": {
  3431. "type": "code",
  3432. "value": ""
  3433. },
  3434. "parser": {
  3435. "type": "code",
  3436. "value": "/* specify code that evaluates to an associative array of the form {...,attr:val,...} */"
  3437. },
  3438. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  3439. "position": {
  3440. "type": "list<double>",
  3441. "value": [
  3442. "0;7.5,6.123233995736766e-15%",
  3443. "0;83.99652862548828,100%"
  3444. ]
  3445. },
  3446. "orientation": {
  3447. "type": "double",
  3448. "value": "0;90"
  3449. },
  3450. "scale": {
  3451. "type": "list<double>",
  3452. "value": [
  3453. 1,
  3454. 1
  3455. ]
  3456. },
  3457. "$linkDecoratorInfo": {
  3458. "type": "map<string,double>",
  3459. "value": {
  3460. "xratio": 1,
  3461. "yoffset": -8
  3462. }
  3463. }
  3464. }
  3465. },
  3466. "edges": []
  3467. }
  3468. },
  3469. "$asuri": {
  3470. "type": "string",
  3471. "value": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Association/28.instance"
  3472. },
  3473. "$segments": {
  3474. "type": "map<string,list<string>>",
  3475. "value": {
  3476. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/ClassIcon/29.instance--/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/AssociationLink/40.instance": "M331,330L331,410",
  3477. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/AssociationLink/40.instance--/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/ClassIcon/39.instance": "M331,410L331,494"
  3478. }
  3479. },
  3480. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/AssociationLink"
  3481. },
  3482. "41": {
  3483. "typename": {
  3484. "type": "string",
  3485. "value": "GlobalConstraintIcon"
  3486. },
  3487. "position": {
  3488. "type": "list<double>",
  3489. "value": [
  3490. 1308,
  3491. 489
  3492. ]
  3493. },
  3494. "orientation": {
  3495. "type": "double",
  3496. "value": 0
  3497. },
  3498. "scale": {
  3499. "type": "list<double>",
  3500. "value": [
  3501. 1,
  3502. 1
  3503. ]
  3504. },
  3505. "mapper": {
  3506. "type": "code",
  3507. "value": ""
  3508. },
  3509. "parser": {
  3510. "type": "code",
  3511. "value": ""
  3512. },
  3513. "$contents": {
  3514. "type": "map<string,*>",
  3515. "value": {
  3516. "nodes": {
  3517. "11": {
  3518. "textContent": {
  3519. "type": "string",
  3520. "value": "check one-time-instance on validate"
  3521. },
  3522. "style": {
  3523. "type": "map<string,string>",
  3524. "value": {
  3525. "stroke": "#00ff70",
  3526. "stroke-dasharray": "",
  3527. "fill": "#00ff70",
  3528. "fill-opacity": 0.75,
  3529. "font-size": "20px",
  3530. "stroke-width": 1,
  3531. "arrow-start": "none",
  3532. "arrow-end": "none"
  3533. }
  3534. },
  3535. "mapper": {
  3536. "type": "code",
  3537. "value": "({'textContent' : 'check '+getAttr('name')+' on '+(getAttr('event') || 'validate')})\n"
  3538. },
  3539. "parser": {
  3540. "type": "code",
  3541. "value": ""
  3542. },
  3543. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  3544. "position": {
  3545. "type": "list<double>",
  3546. "value": [
  3547. 0,
  3548. -1
  3549. ]
  3550. },
  3551. "orientation": {
  3552. "type": "double",
  3553. "value": 0
  3554. },
  3555. "scale": {
  3556. "type": "list<double>",
  3557. "value": [
  3558. 1,
  3559. 1
  3560. ]
  3561. }
  3562. }
  3563. },
  3564. "edges": []
  3565. }
  3566. },
  3567. "$asuri": {
  3568. "type": "string",
  3569. "value": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/GlobalConstraint/29.instance"
  3570. },
  3571. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/GlobalConstraintIcon"
  3572. },
  3573. "43": {
  3574. "typename": {
  3575. "type": "string",
  3576. "value": "GlobalActionIcon"
  3577. },
  3578. "position": {
  3579. "type": "list<double>",
  3580. "value": [
  3581. 1354,
  3582. 299
  3583. ]
  3584. },
  3585. "orientation": {
  3586. "type": "double",
  3587. "value": 0
  3588. },
  3589. "scale": {
  3590. "type": "list<double>",
  3591. "value": [
  3592. 1,
  3593. 1
  3594. ]
  3595. },
  3596. "mapper": {
  3597. "type": "code",
  3598. "value": ""
  3599. },
  3600. "parser": {
  3601. "type": "code",
  3602. "value": ""
  3603. },
  3604. "$contents": {
  3605. "type": "map<string,*>",
  3606. "value": {
  3607. "nodes": {
  3608. "13": {
  3609. "textContent": {
  3610. "type": "string",
  3611. "value": "do set-clock on post-create"
  3612. },
  3613. "style": {
  3614. "type": "map<string,string>",
  3615. "value": {
  3616. "stroke": "#af00ff",
  3617. "stroke-dasharray": "",
  3618. "fill": "#af00ff",
  3619. "fill-opacity": 0.75,
  3620. "font-size": "20px",
  3621. "stroke-width": 1,
  3622. "arrow-start": "none",
  3623. "arrow-end": "none"
  3624. }
  3625. },
  3626. "mapper": {
  3627. "type": "code",
  3628. "value": "({'textContent' : 'do '+getAttr('name')+' on '+getAttr('event')})\n"
  3629. },
  3630. "parser": {
  3631. "type": "code",
  3632. "value": ""
  3633. },
  3634. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  3635. "position": {
  3636. "type": "list<double>",
  3637. "value": [
  3638. 0,
  3639. 1
  3640. ]
  3641. },
  3642. "orientation": {
  3643. "type": "double",
  3644. "value": 0
  3645. },
  3646. "scale": {
  3647. "type": "list<double>",
  3648. "value": [
  3649. 1,
  3650. 1
  3651. ]
  3652. }
  3653. }
  3654. },
  3655. "edges": []
  3656. }
  3657. },
  3658. "$asuri": {
  3659. "type": "string",
  3660. "value": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/GlobalAction/31.instance"
  3661. },
  3662. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons/GlobalActionIcon"
  3663. }
  3664. },
  3665. "edges": [],
  3666. "metamodels": [
  3667. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.umlIcons"
  3668. ]
  3669. },
  3670. "asm": {
  3671. "nodes": {
  3672. "13": {
  3673. "name": {
  3674. "type": "string",
  3675. "value": "State"
  3676. },
  3677. "attributes": {
  3678. "type": "list<$ATTRIBUTE>",
  3679. "value": [
  3680. {
  3681. "name": "name",
  3682. "type": "string",
  3683. "default": ""
  3684. },
  3685. {
  3686. "name": "initial",
  3687. "type": "boolean",
  3688. "default": false
  3689. },
  3690. {
  3691. "name": "current",
  3692. "type": "boolean",
  3693. "default": false
  3694. }
  3695. ]
  3696. },
  3697. "constraints": {
  3698. "type": "list<$EVENT_HANDLER>",
  3699. "value": []
  3700. },
  3701. "actions": {
  3702. "type": "list<$EVENT_HANDLER>",
  3703. "value": []
  3704. },
  3705. "cardinalities": {
  3706. "type": "list<$CARDINALITY>",
  3707. "value": [
  3708. {
  3709. "dir": "out",
  3710. "type": "TimedTransition",
  3711. "min": 0,
  3712. "max": 1
  3713. },
  3714. {
  3715. "dir": "out",
  3716. "type": "VisualisedBy",
  3717. "min": 1,
  3718. "max": 1
  3719. }
  3720. ]
  3721. },
  3722. "abstract": {
  3723. "type": "boolean",
  3724. "value": false
  3725. },
  3726. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Class"
  3727. },
  3728. "16": {
  3729. "name": {
  3730. "type": "string",
  3731. "value": "Interrupt"
  3732. },
  3733. "attributes": {
  3734. "type": "list<$ATTRIBUTE>",
  3735. "value": [
  3736. {
  3737. "name": "at",
  3738. "type": "int",
  3739. "default": 0
  3740. },
  3741. {
  3742. "name": "event",
  3743. "type": "string",
  3744. "default": "E"
  3745. }
  3746. ]
  3747. },
  3748. "constraints": {
  3749. "type": "list<$EVENT_HANDLER>",
  3750. "value": []
  3751. },
  3752. "actions": {
  3753. "type": "list<$EVENT_HANDLER>",
  3754. "value": []
  3755. },
  3756. "cardinalities": {
  3757. "type": "list<$CARDINALITY>",
  3758. "value": [
  3759. {
  3760. "dir": "out",
  3761. "type": "Next",
  3762. "min": "0",
  3763. "max": "1"
  3764. }
  3765. ]
  3766. },
  3767. "abstract": {
  3768. "type": "boolean",
  3769. "value": false
  3770. },
  3771. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Class"
  3772. },
  3773. "19": {
  3774. "name": {
  3775. "type": "string",
  3776. "value": "TimedTransition"
  3777. },
  3778. "attributes": {
  3779. "type": "list<$ATTRIBUTE>",
  3780. "value": [
  3781. {
  3782. "name": "after",
  3783. "type": "int",
  3784. "default": 0
  3785. }
  3786. ]
  3787. },
  3788. "constraints": {
  3789. "type": "list<$EVENT_HANDLER>",
  3790. "value": []
  3791. },
  3792. "actions": {
  3793. "type": "list<$EVENT_HANDLER>",
  3794. "value": []
  3795. },
  3796. "cardinalities": {
  3797. "type": "list<$CARDINALITY>",
  3798. "value": []
  3799. },
  3800. "linktype": {
  3801. "type": "ENUM(visual,containment)",
  3802. "value": "visual"
  3803. },
  3804. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Association"
  3805. },
  3806. "20": {
  3807. "name": {
  3808. "type": "string",
  3809. "value": "InterruptTransition"
  3810. },
  3811. "attributes": {
  3812. "type": "list<$ATTRIBUTE>",
  3813. "value": [
  3814. {
  3815. "name": "interrupt",
  3816. "type": "string",
  3817. "default": "E"
  3818. }
  3819. ]
  3820. },
  3821. "constraints": {
  3822. "type": "list<$EVENT_HANDLER>",
  3823. "value": []
  3824. },
  3825. "actions": {
  3826. "type": "list<$EVENT_HANDLER>",
  3827. "value": []
  3828. },
  3829. "cardinalities": {
  3830. "type": "list<$CARDINALITY>",
  3831. "value": []
  3832. },
  3833. "linktype": {
  3834. "type": "ENUM(visual,containment)",
  3835. "value": "visual"
  3836. },
  3837. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Association"
  3838. },
  3839. "21": {
  3840. "name": {
  3841. "type": "string",
  3842. "value": "Time"
  3843. },
  3844. "attributes": {
  3845. "type": "list<$ATTRIBUTE>",
  3846. "value": [
  3847. {
  3848. "name": "clock",
  3849. "type": "int",
  3850. "default": 0
  3851. }
  3852. ]
  3853. },
  3854. "constraints": {
  3855. "type": "list<$EVENT_HANDLER>",
  3856. "value": [
  3857. {
  3858. "name": "max-one-instance",
  3859. "event": "pre-create",
  3860. "code": "getAllNodes(['/Formalisms/TrafficLight/TrafficLight/Time']).length == 0"
  3861. }
  3862. ]
  3863. },
  3864. "actions": {
  3865. "type": "list<$EVENT_HANDLER>",
  3866. "value": [
  3867. {
  3868. "name": "set-clock",
  3869. "event": "post-create",
  3870. "code": "setAttr('clock', 1)"
  3871. }
  3872. ]
  3873. },
  3874. "cardinalities": {
  3875. "type": "list<$CARDINALITY>",
  3876. "value": []
  3877. },
  3878. "abstract": {
  3879. "type": "boolean",
  3880. "value": false
  3881. },
  3882. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Class"
  3883. },
  3884. "22": {
  3885. "name": {
  3886. "type": "string",
  3887. "value": "AbstractInterrupt"
  3888. },
  3889. "attributes": {
  3890. "type": "list<$ATTRIBUTE>",
  3891. "value": [
  3892. {
  3893. "name": "current",
  3894. "type": "boolean",
  3895. "default": false
  3896. }
  3897. ]
  3898. },
  3899. "constraints": {
  3900. "type": "list<$EVENT_HANDLER>",
  3901. "value": []
  3902. },
  3903. "actions": {
  3904. "type": "list<$EVENT_HANDLER>",
  3905. "value": []
  3906. },
  3907. "cardinalities": {
  3908. "type": "list<$CARDINALITY>",
  3909. "value": [
  3910. {
  3911. "dir": "in",
  3912. "type": "Next",
  3913. "min": "0",
  3914. "max": "1"
  3915. }
  3916. ]
  3917. },
  3918. "abstract": {
  3919. "type": "boolean",
  3920. "value": true
  3921. },
  3922. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Class"
  3923. },
  3924. "23": {
  3925. "name": {
  3926. "type": "string",
  3927. "value": "Next"
  3928. },
  3929. "attributes": {
  3930. "type": "list<$ATTRIBUTE>",
  3931. "value": []
  3932. },
  3933. "constraints": {
  3934. "type": "list<$EVENT_HANDLER>",
  3935. "value": []
  3936. },
  3937. "actions": {
  3938. "type": "list<$EVENT_HANDLER>",
  3939. "value": []
  3940. },
  3941. "cardinalities": {
  3942. "type": "list<$CARDINALITY>",
  3943. "value": []
  3944. },
  3945. "linktype": {
  3946. "type": "ENUM(visual,containment)",
  3947. "value": "visual"
  3948. },
  3949. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Association"
  3950. },
  3951. "24": {
  3952. "name": {
  3953. "type": "string",
  3954. "value": "End"
  3955. },
  3956. "attributes": {
  3957. "type": "list<$ATTRIBUTE>",
  3958. "value": []
  3959. },
  3960. "constraints": {
  3961. "type": "list<$EVENT_HANDLER>",
  3962. "value": []
  3963. },
  3964. "actions": {
  3965. "type": "list<$EVENT_HANDLER>",
  3966. "value": []
  3967. },
  3968. "cardinalities": {
  3969. "type": "list<$CARDINALITY>",
  3970. "value": []
  3971. },
  3972. "abstract": {
  3973. "type": "boolean",
  3974. "value": false
  3975. },
  3976. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Class"
  3977. },
  3978. "25": {
  3979. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Inheritance"
  3980. },
  3981. "26": {
  3982. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Inheritance"
  3983. },
  3984. "27": {
  3985. "name": {
  3986. "type": "string",
  3987. "value": "Visualisation"
  3988. },
  3989. "attributes": {
  3990. "type": "list<$ATTRIBUTE>",
  3991. "value": [
  3992. {
  3993. "name": "red",
  3994. "type": "boolean",
  3995. "default": false
  3996. },
  3997. {
  3998. "name": "yellow",
  3999. "type": "boolean",
  4000. "default": false
  4001. },
  4002. {
  4003. "name": "green",
  4004. "type": "boolean",
  4005. "default": false
  4006. }
  4007. ]
  4008. },
  4009. "constraints": {
  4010. "type": "list<$EVENT_HANDLER>",
  4011. "value": []
  4012. },
  4013. "actions": {
  4014. "type": "list<$EVENT_HANDLER>",
  4015. "value": []
  4016. },
  4017. "cardinalities": {
  4018. "type": "list<$CARDINALITY>",
  4019. "value": []
  4020. },
  4021. "abstract": {
  4022. "type": "boolean",
  4023. "value": false
  4024. },
  4025. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Class"
  4026. },
  4027. "28": {
  4028. "name": {
  4029. "type": "string",
  4030. "value": "VisualisedBy"
  4031. },
  4032. "attributes": {
  4033. "type": "list<$ATTRIBUTE>",
  4034. "value": []
  4035. },
  4036. "constraints": {
  4037. "type": "list<$EVENT_HANDLER>",
  4038. "value": []
  4039. },
  4040. "actions": {
  4041. "type": "list<$EVENT_HANDLER>",
  4042. "value": []
  4043. },
  4044. "cardinalities": {
  4045. "type": "list<$CARDINALITY>",
  4046. "value": []
  4047. },
  4048. "linktype": {
  4049. "type": "ENUM(visual,containment)",
  4050. "value": "visual"
  4051. },
  4052. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Association"
  4053. },
  4054. "29": {
  4055. "name": {
  4056. "type": "string",
  4057. "value": "one-time-instance"
  4058. },
  4059. "event": {
  4060. "type": "$EVENT",
  4061. "value": ""
  4062. },
  4063. "code": {
  4064. "type": "code",
  4065. "value": "var time_instances = getAllNodes(['/Formalisms/TrafficLight/TrafficLight/Time']);\ntime_instances.length == 1"
  4066. },
  4067. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/GlobalConstraint"
  4068. },
  4069. "31": {
  4070. "name": {
  4071. "type": "string",
  4072. "value": "set-clock"
  4073. },
  4074. "event": {
  4075. "type": "$EVENT",
  4076. "value": "post-create"
  4077. },
  4078. "code": {
  4079. "type": "code",
  4080. "value": "var instances = getAllNodes(['/Formalisms/TrafficLight/TrafficLight/Time']);\nconsole.log(instances.length);\nif (instances.length) {\n setAttr('clock', 0, instances[0]);\n}"
  4081. },
  4082. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/GlobalAction"
  4083. }
  4084. },
  4085. "edges": [
  4086. {
  4087. "src": "13",
  4088. "dest": "19"
  4089. },
  4090. {
  4091. "src": "19",
  4092. "dest": "13"
  4093. },
  4094. {
  4095. "src": "13",
  4096. "dest": "20"
  4097. },
  4098. {
  4099. "src": "20",
  4100. "dest": "13"
  4101. },
  4102. {
  4103. "src": "16",
  4104. "dest": "23"
  4105. },
  4106. {
  4107. "src": "23",
  4108. "dest": "22"
  4109. },
  4110. {
  4111. "src": "16",
  4112. "dest": "25"
  4113. },
  4114. {
  4115. "src": "25",
  4116. "dest": "22"
  4117. },
  4118. {
  4119. "src": "24",
  4120. "dest": "26"
  4121. },
  4122. {
  4123. "src": "26",
  4124. "dest": "22"
  4125. },
  4126. {
  4127. "src": "13",
  4128. "dest": "28"
  4129. },
  4130. {
  4131. "src": "28",
  4132. "dest": "27"
  4133. }
  4134. ],
  4135. "metamodels": [
  4136. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram"
  4137. ]
  4138. }
  4139. }