PM_to_DEVS.mvc 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050
  1. include "primitives.alh"
  2. include "modelling.alh"
  3. include "object_operations.alh"
  4. Composite schedule {
  5. {Contains} Success success {}
  6. {Contains} Atomic add_resource_handler {
  7. LHS {}
  8. RHS {
  9. Post_DEVS/DEVSInstance post_resource_1 {
  10. label = "1"
  11. value_name = $
  12. String function value(model : Element, name : String, mapping : Element):
  13. return "resource_handler"!
  14. $
  15. value_type = $
  16. String function value(model : Element, name : String, mapping : Element):
  17. return "ResourceHandler"!
  18. $
  19. value_parameters = $
  20. String function value(model : Element, name : String, mapping : Element):
  21. return "[]"!
  22. $
  23. }
  24. Post_DEVS/InputPort post_resource_2 {
  25. label = "2"
  26. value_name = $
  27. String function value(model : Element, name : String, mapping : Element):
  28. return "resource_in"!
  29. $
  30. }
  31. Post_DEVS/DEVSInstanceToPort (post_resource_1, post_resource_2) {
  32. label = "3"
  33. }
  34. Post_DEVS/OutputPort post_resource_3 {
  35. label = "4"
  36. value_name = $
  37. String function value(model : Element, name : String, mapping : Element):
  38. return "resource_out"!
  39. $
  40. }
  41. Post_DEVS/DEVSInstanceToPort (post_resource_1, post_resource_3) {
  42. label = "5"
  43. }
  44. }
  45. }
  46. {Contains} Atomic root_model {
  47. LHS {}
  48. RHS {
  49. Post_DEVS/CoupledDEVSBlock post_root_0 {
  50. label = "0"
  51. value_name = $
  52. String function value(model : Element, name : String, mapping : Element):
  53. return "Root"!
  54. $
  55. }
  56. }
  57. }
  58. {Contains} ForAll initial {
  59. LHS {
  60. Pre_PM/Initial pre_init_0 {
  61. label = "0"
  62. }
  63. Pre_DEVS/CoupledDEVSBlock pre_init_999 {
  64. label = "root"
  65. }
  66. }
  67. RHS {
  68. Post_PM/Initial post_init_0 {
  69. label = "0"
  70. }
  71. Post_DEVS/DEVSInstance post_init_1 {
  72. label = "1"
  73. value_name = $
  74. String function value(model : Element, name : String, mapping : Element):
  75. return read_attribute(model, mapping["0"], "name")!
  76. $
  77. value_type = $
  78. String function value(model : Element, name : String, mapping : Element):
  79. return "Initial"!
  80. $
  81. value_parameters = $
  82. String function value(model : Element, name : String, mapping : Element):
  83. return "[]"!
  84. $
  85. }
  86. Post_Trace (post_init_0, post_init_1) {
  87. label = "2"
  88. }
  89. Post_DEVS/OutputPort post_init_2 {
  90. label = "3"
  91. value_name = $
  92. String function value(model : Element, name : String, mapping : Element):
  93. return "control_out"!
  94. $
  95. }
  96. Post_DEVS/DEVSInstanceToPort (post_init_1, post_init_2) {
  97. label = "4"
  98. }
  99. Post_DEVS/CoupledDEVSBlock post_init_999 {
  100. label = "root"
  101. }
  102. Post_DEVS/SubModel (post_init_999, post_init_1) {
  103. label = "submodel"
  104. }
  105. }
  106. }
  107. {Contains} ForAll finish {
  108. LHS {
  109. Pre_PM/Finish pre_finish_0 {
  110. label = "0"
  111. }
  112. Pre_DEVS/CoupledDEVSBlock pre_finish_999 {
  113. label = "root"
  114. }
  115. }
  116. RHS {
  117. Post_PM/Finish post_finish_0 {
  118. label = "0"
  119. }
  120. Post_DEVS/DEVSInstance post_finish_1 {
  121. label = "1"
  122. value_name = $
  123. String function value(model : Element, name : String, mapping : Element):
  124. return read_attribute(model, mapping["0"], "name")!
  125. $
  126. value_type = $
  127. String function value(model : Element, name : String, mapping : Element):
  128. return "Finish"!
  129. $
  130. value_parameters = $
  131. String function value(model : Element, name : String, mapping : Element):
  132. return "[]"!
  133. $
  134. }
  135. Post_Trace (post_finish_0, post_finish_1) {
  136. label = "2"
  137. }
  138. Post_DEVS/InputPort post_finish_2 {
  139. label = "3"
  140. value_name = $
  141. String function value(model : Element, name : String, mapping : Element):
  142. return "control_in"!
  143. $
  144. }
  145. Post_DEVS/DEVSInstanceToPort (post_finish_1, post_finish_2) {
  146. label = "4"
  147. }
  148. Post_DEVS/CoupledDEVSBlock post_finish_999 {
  149. label = "root"
  150. }
  151. Post_DEVS/SubModel (post_finish_999, post_finish_1) {
  152. label = "submodel"
  153. }
  154. }
  155. }
  156. {Contains} ForAll activity {
  157. LHS {
  158. Pre_PM/Activity pre_activity_0 {
  159. label = "0"
  160. }
  161. Pre_DEVS/CoupledDEVSBlock pre_activity_999 {
  162. label = "root"
  163. }
  164. }
  165. RHS {
  166. Post_PM/Activity post_activity_0 {
  167. label = "0"
  168. }
  169. Post_DEVS/DEVSInstance post_activity_1 {
  170. label = "1"
  171. value_name = $
  172. String function value(model : Element, name : String, mapping : Element):
  173. return read_attribute(model, mapping["0"], "name")!
  174. $
  175. value_type = $
  176. String function value(model : Element, name : String, mapping : Element):
  177. return "Activity"!
  178. $
  179. value_parameters = $
  180. String function value(model : Element, name : String, mapping : Element):
  181. return "[" + cast_value(read_attribute(model, mapping["0"], "name")) + ", " + cast_string(read_attribute(model, mapping["0"], "distribution")) + "]"!
  182. $
  183. }
  184. Post_Trace (post_activity_0, post_activity_1) {
  185. label = "2"
  186. }
  187. Post_DEVS/InputPort post_activity_2 {
  188. label = "3"
  189. value_name = $
  190. String function value(model : Element, name : String, mapping : Element):
  191. return "resource_in"!
  192. $
  193. }
  194. Post_DEVS/DEVSInstanceToPort (post_activity_1, post_activity_2) {
  195. label = "4"
  196. }
  197. Post_DEVS/OutputPort post_activity_3 {
  198. label = "5"
  199. value_name = $
  200. String function value(model : Element, name : String, mapping : Element):
  201. return "resource_out"!
  202. $
  203. }
  204. Post_DEVS/DEVSInstanceToPort (post_activity_1, post_activity_3) {
  205. label = "6"
  206. }
  207. Post_DEVS/InputPort post_activity_4 {
  208. label = "7"
  209. value_name = $
  210. String function value(model : Element, name : String, mapping : Element):
  211. return "control_in"!
  212. $
  213. }
  214. Post_DEVS/DEVSInstanceToPort (post_activity_1, post_activity_4) {
  215. label = "8"
  216. }
  217. Post_DEVS/OutputPort post_activity_5 {
  218. label = "9"
  219. value_name = $
  220. String function value(model : Element, name : String, mapping : Element):
  221. return "control_out"!
  222. $
  223. }
  224. Post_DEVS/DEVSInstanceToPort (post_activity_1, post_activity_5) {
  225. label = "10"
  226. }
  227. Post_DEVS/CoupledDEVSBlock post_activity_999 {
  228. label = "root"
  229. }
  230. Post_DEVS/SubModel (post_activity_999, post_activity_1) {
  231. label = "submodel"
  232. }
  233. }
  234. }
  235. {Contains} ForAll parallelsplit {
  236. LHS {
  237. Pre_PM/ParallelSplit pre_split_0 {
  238. label = "0"
  239. }
  240. Pre_DEVS/CoupledDEVSBlock pre_split_999 {
  241. label = "root"
  242. }
  243. }
  244. RHS {
  245. Post_PM/ParallelSplit post_split_0 {
  246. label = "0"
  247. }
  248. Post_DEVS/DEVSInstance post_split_1 {
  249. label = "1"
  250. value_name = $
  251. String function value(model : Element, name : String, mapping : Element):
  252. return read_attribute(model, mapping["0"], "name")!
  253. $
  254. value_type = $
  255. String function value(model : Element, name : String, mapping : Element):
  256. return "ParallelSplit"!
  257. $
  258. value_parameters = $
  259. String function value(model : Element, name : String, mapping : Element):
  260. return "[]"!
  261. $
  262. }
  263. Post_Trace (post_split_0, post_split_1) {
  264. label = "2"
  265. }
  266. Post_DEVS/InputPort post_split_2 {
  267. label = "3"
  268. value_name = $
  269. String function value(model : Element, name : String, mapping : Element):
  270. return "control_in"!
  271. $
  272. }
  273. Post_DEVS/DEVSInstanceToPort (post_split_1, post_split_2) {
  274. label = "4"
  275. }
  276. Post_DEVS/OutputPort post_split_3 {
  277. label = "5"
  278. value_name = $
  279. String function value(model : Element, name : String, mapping : Element):
  280. return "control_out"!
  281. $
  282. }
  283. Post_DEVS/DEVSInstanceToPort (post_split_1, post_split_3) {
  284. label = "6"
  285. }
  286. Post_DEVS/CoupledDEVSBlock post_split_999 {
  287. label = "root"
  288. }
  289. Post_DEVS/SubModel (post_split_999, post_split_1) {
  290. label = "submodel"
  291. }
  292. }
  293. }
  294. {Contains} ForAll synchronization {
  295. LHS {
  296. Pre_PM/Synchronization pre_sync_0 {
  297. label = "0"
  298. }
  299. Pre_DEVS/CoupledDEVSBlock pre_sync_999 {
  300. label = "root"
  301. }
  302. }
  303. RHS {
  304. Post_PM/Synchronization post_sync_0 {
  305. label = "0"
  306. }
  307. Post_DEVS/DEVSInstance post_sync_1 {
  308. label = "1"
  309. value_name = $
  310. String function value(model : Element, name : String, mapping : Element):
  311. return read_attribute(model, mapping["0"], "name")!
  312. $
  313. value_type = $
  314. String function value(model : Element, name : String, mapping : Element):
  315. return "Synchronization"!
  316. $
  317. value_parameters = $
  318. String function value(model : Element, name : String, mapping : Element):
  319. return "[]"!
  320. $
  321. }
  322. Post_Trace (post_sync_0, post_sync_1) {
  323. label = "2"
  324. }
  325. Post_DEVS/InputPort post_sync_2 {
  326. label = "3"
  327. value_name = $
  328. String function value(model : Element, name : String, mapping : Element):
  329. return "control_in"!
  330. $
  331. }
  332. Post_DEVS/DEVSInstanceToPort (post_sync_1, post_sync_2) {
  333. label = "4"
  334. }
  335. Post_DEVS/OutputPort post_sync_3 {
  336. label = "5"
  337. value_name = $
  338. String function value(model : Element, name : String, mapping : Element):
  339. return "control_out"!
  340. $
  341. }
  342. Post_DEVS/DEVSInstanceToPort (post_sync_1, post_sync_3) {
  343. label = "6"
  344. }
  345. Post_DEVS/CoupledDEVSBlock post_sync_999 {
  346. label = "root"
  347. }
  348. Post_DEVS/SubModel (post_sync_999, post_sync_1) {
  349. label = "submodel"
  350. }
  351. }
  352. }
  353. {Contains} ForAll xor {
  354. LHS {
  355. Pre_PM/ExclusiveChoice pre_xor_0 {
  356. label = "0"
  357. }
  358. Pre_DEVS/CoupledDEVSBlock pre_xor_999 {
  359. label = "root"
  360. }
  361. }
  362. RHS {
  363. Post_PM/ExclusiveChoice post_xor_0 {
  364. label = "0"
  365. }
  366. Post_DEVS/DEVSInstance post_xor_1 {
  367. label = "1"
  368. value_name = $
  369. String function value(model : Element, name : String, mapping : Element):
  370. return read_attribute(model, mapping["0"], "name")!
  371. $
  372. value_type = $
  373. String function value(model : Element, name : String, mapping : Element):
  374. return "ExclusiveChoice"!
  375. $
  376. value_parameters = $
  377. String function value(model : Element, name : String, mapping : Element):
  378. return "[]"!
  379. $
  380. }
  381. Post_Trace (post_xor_0, post_xor_1) {
  382. label = "2"
  383. }
  384. Post_DEVS/InputPort post_xor_2 {
  385. label = "3"
  386. value_name = $
  387. String function value(model : Element, name : String, mapping : Element):
  388. return "control_in"!
  389. $
  390. }
  391. Post_DEVS/DEVSInstanceToPort (post_xor_1, post_xor_2) {
  392. label = "4"
  393. }
  394. Post_DEVS/OutputPort post_xor_3 {
  395. label = "5"
  396. value_name = $
  397. String function value(model : Element, name : String, mapping : Element):
  398. return "control_out1"!
  399. $
  400. }
  401. Post_DEVS/DEVSInstanceToPort (post_xor_1, post_xor_3) {
  402. label = "6"
  403. }
  404. Post_DEVS/OutputPort post_xor_4 {
  405. label = "7"
  406. value_name = $
  407. String function value(model : Element, name : String, mapping : Element):
  408. return "control_out2"!
  409. $
  410. }
  411. Post_DEVS/DEVSInstanceToPort (post_xor_1, post_xor_4) {
  412. label = "8"
  413. }
  414. Post_DEVS/CoupledDEVSBlock post_xor_999 {
  415. label = "root"
  416. }
  417. Post_DEVS/SubModel (post_xor_999, post_xor_1) {
  418. label = "submodel"
  419. }
  420. }
  421. }
  422. {Contains} ForAll merge {
  423. LHS {
  424. Pre_PM/SimpleMerge pre_merge_0 {
  425. label = "0"
  426. }
  427. Pre_DEVS/CoupledDEVSBlock pre_merge_999 {
  428. label = "root"
  429. }
  430. }
  431. RHS {
  432. Post_PM/SimpleMerge post_merge_0 {
  433. label = "0"
  434. }
  435. Post_DEVS/DEVSInstance post_merge_1 {
  436. label = "1"
  437. value_name = $
  438. String function value(model : Element, name : String, mapping : Element):
  439. return read_attribute(model, mapping["0"], "name")!
  440. $
  441. value_type = $
  442. String function value(model : Element, name : String, mapping : Element):
  443. return "SimpleMerge"!
  444. $
  445. value_parameters = $
  446. String function value(model : Element, name : String, mapping : Element):
  447. return "[]"!
  448. $
  449. }
  450. Post_Trace (post_merge_0, post_merge_1) {
  451. label = "2"
  452. }
  453. Post_DEVS/InputPort post_merge_2 {
  454. label = "3"
  455. value_name = $
  456. String function value(model : Element, name : String, mapping : Element):
  457. return "control_in"!
  458. $
  459. }
  460. Post_DEVS/DEVSInstanceToPort (post_merge_1, post_merge_2) {
  461. label = "4"
  462. }
  463. Post_DEVS/OutputPort post_merge_3 {
  464. label = "5"
  465. value_name = $
  466. String function value(model : Element, name : String, mapping : Element):
  467. return "control_out"!
  468. $
  469. }
  470. Post_DEVS/DEVSInstanceToPort (post_merge_1, post_merge_3) {
  471. label = "6"
  472. }
  473. Post_DEVS/CoupledDEVSBlock post_merge_999 {
  474. label = "root"
  475. }
  476. Post_DEVS/SubModel (post_merge_999, post_merge_1) {
  477. label = "submodel"
  478. }
  479. }
  480. }
  481. {Contains} ForAll multi {
  482. LHS {
  483. Pre_PM/MultiInstance pre_multi_0 {
  484. label = "0"
  485. }
  486. Pre_DEVS/CoupledDEVSBlock pre_multi_999 {
  487. label = "root"
  488. }
  489. }
  490. RHS {
  491. Post_PM/MultiInstance post_multi_0 {
  492. label = "0"
  493. }
  494. Post_DEVS/DEVSInstance post_multi_1 {
  495. label = "1"
  496. value_name = $
  497. String function value(model : Element, name : String, mapping : Element):
  498. return read_attribute(model, mapping["0"], "name")!
  499. $
  500. value_type = $
  501. String function value(model : Element, name : String, mapping : Element):
  502. return "MultiInstance"!
  503. $
  504. value_parameters = $
  505. String function value(model : Element, name : String, mapping : Element):
  506. return "[" + cast_value(read_attribute(model, mapping["0"], "name")) + ", " + cast_string(read_attribute(model, mapping["0"], "nr_instances")) + ", " + cast_string(read_attribute(model, mapping["0"], "distribution")) + "]"!
  507. $
  508. }
  509. Post_Trace (post_multi_0, post_multi_1) {
  510. label = "2"
  511. }
  512. Post_DEVS/InputPort post_multi_2 {
  513. label = "3"
  514. value_name = $
  515. String function value(model : Element, name : String, mapping : Element):
  516. return "resource_in"!
  517. $
  518. }
  519. Post_DEVS/DEVSInstanceToPort (post_multi_1, post_multi_2) {
  520. label = "4"
  521. }
  522. Post_DEVS/OutputPort post_multi_3 {
  523. label = "5"
  524. value_name = $
  525. String function value(model : Element, name : String, mapping : Element):
  526. return "resource_out"!
  527. $
  528. }
  529. Post_DEVS/DEVSInstanceToPort (post_multi_1, post_multi_3) {
  530. label = "6"
  531. }
  532. Post_DEVS/InputPort post_multi_4 {
  533. label = "7"
  534. value_name = $
  535. String function value(model : Element, name : String, mapping : Element):
  536. return "control_in"!
  537. $
  538. }
  539. Post_DEVS/DEVSInstanceToPort (post_multi_1, post_multi_4) {
  540. label = "8"
  541. }
  542. Post_DEVS/OutputPort post_multi_5 {
  543. label = "9"
  544. value_name = $
  545. String function value(model : Element, name : String, mapping : Element):
  546. return "control_out"!
  547. $
  548. }
  549. Post_DEVS/DEVSInstanceToPort (post_multi_1, post_multi_5) {
  550. label = "10"
  551. }
  552. Post_DEVS/CoupledDEVSBlock post_multi_999 {
  553. label = "root"
  554. }
  555. Post_DEVS/SubModel (post_multi_999, post_multi_1) {
  556. label = "submodel"
  557. }
  558. }
  559. }
  560. {Contains} ForAll map_resources_to {
  561. LHS {
  562. Pre_DEVS/DEVSInstance pre_mrt_0 {
  563. label = "0"
  564. constraint_type = $
  565. Boolean function constraint(value : String):
  566. return value == "ResourceHandler"!
  567. $
  568. }
  569. Pre_DEVS/Port pre_mrt_1 {
  570. label = "1"
  571. constraint_name = $
  572. Boolean function constraint(value : String):
  573. return value == "resource_in"!
  574. $
  575. }
  576. Pre_DEVS/DEVSInstanceToPort (pre_mrt_0, pre_mrt_1) {
  577. label = "2"
  578. }
  579. Pre_DEVS/DEVSInstance pre_mrt_2 {
  580. label = "3"
  581. constraint_type = $
  582. Boolean function constraint(value : String):
  583. return value != "ResourceHandler"!
  584. $
  585. }
  586. Pre_DEVS/Port pre_mrt_3 {
  587. label = "4"
  588. constraint_name = $
  589. Boolean function constraint(value : String):
  590. return value == "resource_out"!
  591. $
  592. }
  593. Pre_DEVS/DEVSInstanceToPort (pre_mrt_2, pre_mrt_3) {
  594. label = "5"
  595. }
  596. }
  597. RHS {
  598. Post_DEVS/DEVSInstance post_mrt_0 {
  599. label = "0"
  600. }
  601. Post_DEVS/Port post_mrt_1 {
  602. label = "1"
  603. }
  604. Post_DEVS/DEVSInstanceToPort (post_mrt_0, post_mrt_1) {
  605. label = "2"
  606. }
  607. Post_DEVS/DEVSInstance post_mrt_2 {
  608. label = "3"
  609. }
  610. Post_DEVS/Port post_mrt_3 {
  611. label = "4"
  612. }
  613. Post_DEVS/DEVSInstanceToPort (post_mrt_2, post_mrt_3) {
  614. label = "5"
  615. }
  616. Post_DEVS/Channel (post_mrt_3, post_mrt_1) {
  617. label = "6"
  618. }
  619. }
  620. }
  621. {Contains} ForAll map_resources_from {
  622. LHS {
  623. Pre_DEVS/DEVSInstance pre_mrf_0 {
  624. label = "0"
  625. constraint_type = $
  626. Boolean function constraint(value : String):
  627. return value == "ResourceHandler"!
  628. $
  629. }
  630. Pre_DEVS/Port pre_mrf_1 {
  631. label = "1"
  632. constraint_name = $
  633. Boolean function constraint(value : String):
  634. return value == "resource_out"!
  635. $
  636. }
  637. Pre_DEVS/DEVSInstanceToPort (pre_mrf_0, pre_mrf_1) {
  638. label = "2"
  639. }
  640. Pre_DEVS/DEVSInstance pre_mrf_2 {
  641. label = "3"
  642. constraint_type = $
  643. Boolean function constraint(value : String):
  644. return value != "ResourceHandler"!
  645. $
  646. }
  647. Pre_DEVS/Port pre_mrf_3 {
  648. label = "4"
  649. constraint_name = $
  650. Boolean function constraint(value : String):
  651. return value == "resource_in"!
  652. $
  653. }
  654. Pre_DEVS/DEVSInstanceToPort (pre_mrf_2, pre_mrf_3) {
  655. label = "5"
  656. }
  657. }
  658. RHS {
  659. Post_DEVS/DEVSInstance post_mrf_0 {
  660. label = "0"
  661. }
  662. Post_DEVS/Port post_mrf_1 {
  663. label = "1"
  664. }
  665. Post_DEVS/DEVSInstanceToPort (post_mrf_0, post_mrf_1) {
  666. label = "2"
  667. }
  668. Post_DEVS/DEVSInstance post_mrf_2 {
  669. label = "3"
  670. }
  671. Post_DEVS/Port post_mrf_3 {
  672. label = "4"
  673. }
  674. Post_DEVS/DEVSInstanceToPort (post_mrf_2, post_mrf_3) {
  675. label = "5"
  676. }
  677. Post_DEVS/Channel (post_mrf_1, post_mrf_3) {
  678. label = "6"
  679. }
  680. }
  681. }
  682. {Contains} ForAll map_control {
  683. LHS {
  684. Pre_DEVS/DEVSInstance pre_map_0 {
  685. label = "0"
  686. }
  687. Pre_DEVS/Port pre_map_1 {
  688. label = "1"
  689. constraint_name = $
  690. Boolean function constraint(value : String):
  691. return value == "control_out"!
  692. $
  693. }
  694. Pre_DEVS/DEVSInstanceToPort (pre_map_0, pre_map_1) {
  695. label = "2"
  696. }
  697. Pre_DEVS/DEVSInstance pre_map_2 {
  698. label = "3"
  699. }
  700. Pre_DEVS/Port pre_map_3 {
  701. label = "4"
  702. constraint_name = $
  703. Boolean function constraint(value : String):
  704. return value == "control_in"!
  705. $
  706. }
  707. Pre_DEVS/DEVSInstanceToPort (pre_map_2, pre_map_3) {
  708. label = "5"
  709. }
  710. Pre_PM/ProcessNode pre_map_4 {
  711. label = "6"
  712. }
  713. Pre_Trace (pre_map_4, pre_map_0) {
  714. label = "7"
  715. }
  716. Pre_PM/ProcessNode pre_map_5 {
  717. label = "8"
  718. }
  719. Pre_Trace (pre_map_5, pre_map_2) {
  720. label = "9"
  721. }
  722. Pre_PM/Next (pre_map_4, pre_map_5) {
  723. label = "10"
  724. }
  725. }
  726. RHS {
  727. Post_DEVS/DEVSInstance post_map_0 {
  728. label = "0"
  729. }
  730. Post_DEVS/Port post_map_1 {
  731. label = "1"
  732. }
  733. Post_DEVS/DEVSInstanceToPort (post_map_0, post_map_1) {
  734. label = "2"
  735. }
  736. Post_DEVS/DEVSInstance post_map_2 {
  737. label = "3"
  738. }
  739. Post_DEVS/Port post_map_3 {
  740. label = "4"
  741. }
  742. Post_DEVS/DEVSInstanceToPort (post_map_2, post_map_3) {
  743. label = "5"
  744. }
  745. Post_PM/ProcessNode post_map_4 {
  746. label = "6"
  747. }
  748. Post_Trace (post_map_4, post_map_0) {
  749. label = "7"
  750. }
  751. Post_PM/ProcessNode post_map_5 {
  752. label = "8"
  753. }
  754. Post_Trace (post_map_5, post_map_2) {
  755. label = "9"
  756. }
  757. Post_PM/Next (post_map_4, post_map_5) {
  758. label = "10"
  759. }
  760. Post_DEVS/Channel (post_map_1, post_map_3) {
  761. label = "11"
  762. }
  763. }
  764. }
  765. {Contains} ForAll map_control_decision_true {
  766. LHS {
  767. Pre_DEVS/DEVSInstance pre_mdt_0 {
  768. label = "0"
  769. }
  770. Pre_DEVS/Port pre_mdt_1 {
  771. label = "1"
  772. constraint_name = $
  773. Boolean function constraint(value : String):
  774. return value == "control_out1"!
  775. $
  776. }
  777. Pre_DEVS/DEVSInstanceToPort (pre_mdt_0, pre_mdt_1) {
  778. label = "2"
  779. }
  780. Pre_DEVS/DEVSInstance pre_mdt_2 {
  781. label = "3"
  782. }
  783. Pre_DEVS/Port pre_mdt_3 {
  784. label = "4"
  785. constraint_name = $
  786. Boolean function constraint(value : String):
  787. return value == "control_in"!
  788. $
  789. }
  790. Pre_DEVS/DEVSInstanceToPort (pre_mdt_2, pre_mdt_3) {
  791. label = "5"
  792. }
  793. Pre_PM/ProcessNode pre_mdt_4 {
  794. label = "6"
  795. }
  796. Pre_Trace (pre_mdt_4, pre_mdt_0) {
  797. label = "7"
  798. }
  799. Pre_PM/ProcessNode pre_mdt_5 {
  800. label = "8"
  801. }
  802. Pre_Trace (pre_mdt_5, pre_mdt_2) {
  803. label = "9"
  804. }
  805. Pre_PM/DecisionTrue (pre_mdt_4, pre_mdt_5) {
  806. label = "10"
  807. }
  808. }
  809. RHS {
  810. Post_DEVS/DEVSInstance post_mdt_0 {
  811. label = "0"
  812. }
  813. Post_DEVS/Port post_mdt_1 {
  814. label = "1"
  815. }
  816. Post_DEVS/DEVSInstanceToPort (post_mdt_0, post_mdt_1) {
  817. label = "2"
  818. }
  819. Post_DEVS/DEVSInstance post_mdt_2 {
  820. label = "3"
  821. }
  822. Post_DEVS/Port post_mdt_3 {
  823. label = "4"
  824. }
  825. Post_DEVS/DEVSInstanceToPort (post_mdt_2, post_mdt_3) {
  826. label = "5"
  827. }
  828. Post_PM/ProcessNode post_mdt_4 {
  829. label = "6"
  830. }
  831. Post_Trace (post_mdt_4, post_mdt_0) {
  832. label = "7"
  833. }
  834. Post_PM/ProcessNode post_mdt_5 {
  835. label = "8"
  836. }
  837. Post_Trace (post_mdt_5, post_mdt_2) {
  838. label = "9"
  839. }
  840. Post_PM/DecisionTrue (post_mdt_4, post_mdt_5) {
  841. label = "10"
  842. }
  843. Post_DEVS/Channel (post_mdt_1, post_mdt_3) {
  844. label = "11"
  845. }
  846. }
  847. }
  848. {Contains} ForAll map_control_decision_false {
  849. LHS {
  850. Pre_DEVS/DEVSInstance pre_mdf_0 {
  851. label = "0"
  852. }
  853. Pre_DEVS/Port pre_mdf_1 {
  854. label = "1"
  855. constraint_name = $
  856. Boolean function constraint(value : String):
  857. return value == "control_out2"!
  858. $
  859. }
  860. Pre_DEVS/DEVSInstanceToPort (pre_mdf_0, pre_mdf_1) {
  861. label = "2"
  862. }
  863. Pre_DEVS/DEVSInstance pre_mdf_2 {
  864. label = "3"
  865. }
  866. Pre_DEVS/Port pre_mdf_3 {
  867. label = "4"
  868. constraint_name = $
  869. Boolean function constraint(value : String):
  870. return value == "control_in"!
  871. $
  872. }
  873. Pre_DEVS/DEVSInstanceToPort (pre_mdf_2, pre_mdf_3) {
  874. label = "5"
  875. }
  876. Pre_PM/ProcessNode pre_mdf_4 {
  877. label = "6"
  878. }
  879. Pre_Trace (pre_mdf_4, pre_mdf_0) {
  880. label = "7"
  881. }
  882. Pre_PM/ProcessNode pre_mdf_5 {
  883. label = "8"
  884. }
  885. Pre_Trace (pre_mdf_5, pre_mdf_2) {
  886. label = "9"
  887. }
  888. Pre_PM/DecisionFalse (pre_mdf_4, pre_mdf_5) {
  889. label = "10"
  890. }
  891. }
  892. RHS {
  893. Post_DEVS/DEVSInstance post_mdf_0 {
  894. label = "0"
  895. }
  896. Post_DEVS/Port post_mdf_1 {
  897. label = "1"
  898. }
  899. Post_DEVS/DEVSInstanceToPort (post_mdf_0, post_mdf_1) {
  900. label = "2"
  901. }
  902. Post_DEVS/DEVSInstance post_mdf_2 {
  903. label = "3"
  904. }
  905. Post_DEVS/Port post_mdf_3 {
  906. label = "4"
  907. }
  908. Post_DEVS/DEVSInstanceToPort (post_mdf_2, post_mdf_3) {
  909. label = "5"
  910. }
  911. Post_PM/ProcessNode post_mdf_4 {
  912. label = "6"
  913. }
  914. Post_Trace (post_mdf_4, post_mdf_0) {
  915. label = "7"
  916. }
  917. Post_PM/ProcessNode post_mdf_5 {
  918. label = "8"
  919. }
  920. Post_Trace (post_mdf_5, post_mdf_2) {
  921. label = "9"
  922. }
  923. Post_PM/DecisionFalse (post_mdf_4, post_mdf_5) {
  924. label = "10"
  925. }
  926. Post_DEVS/Channel (post_mdf_1, post_mdf_3) {
  927. label = "11"
  928. }
  929. }
  930. }
  931. }
  932. Initial (schedule, root_model) {}
  933. OnSuccess (root_model, initial) {}
  934. OnFailure (root_model, initial) {}
  935. OnSuccess (initial, add_resource_handler) {}
  936. OnFailure (initial, add_resource_handler) {}
  937. OnSuccess (add_resource_handler, finish) {}
  938. OnFailure (add_resource_handler, finish) {}
  939. OnSuccess (finish, activity) {}
  940. OnFailure (finish, activity) {}
  941. OnSuccess (activity, parallelsplit) {}
  942. OnFailure (activity, parallelsplit) {}
  943. OnSuccess (parallelsplit, synchronization) {}
  944. OnFailure (parallelsplit, synchronization) {}
  945. OnSuccess (synchronization, xor) {}
  946. OnFailure (synchronization, xor) {}
  947. OnSuccess (xor, merge) {}
  948. OnFailure (xor, merge) {}
  949. OnSuccess (merge, multi) {}
  950. OnFailure (merge, multi) {}
  951. OnSuccess (multi, map_resources_to) {}
  952. OnFailure (multi, map_resources_to) {}
  953. OnSuccess (map_resources_to, map_resources_from) {}
  954. OnFailure (map_resources_to, map_resources_from) {}
  955. OnSuccess (map_resources_from, map_control) {}
  956. OnFailure (map_resources_from, map_control) {}
  957. OnSuccess (map_control, map_control_decision_true) {}
  958. OnFailure (map_control, map_control_decision_true) {}
  959. OnSuccess (map_control_decision_true, map_control_decision_false) {}
  960. OnFailure (map_control_decision_true, map_control_decision_false) {}
  961. OnSuccess (map_control_decision_false, success) {}
  962. OnFailure (map_control_decision_false, success) {}