plant_to_EPN.mvc 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713
  1. include "primitives.alh"
  2. include "modelling.alh"
  3. include "object_operations.alh"
  4. A B {
  5. Composite schedule {
  6. {Contains} Success success {}
  7. {Contains} Failure failure {}
  8. {Contains} Atomic init_ports {
  9. LHS {}
  10. RHS {
  11. Post_Encapsulated_PetriNet/Place post_ports_00 {
  12. label = "00"
  13. value_name = $
  14. String function value(model : Element, name : String, mapping : Element):
  15. return "up"!
  16. $
  17. value_tokens = $
  18. Integer function value(model : Element, name : String, mapping : Element):
  19. return 0!
  20. $
  21. }
  22. Post_Encapsulated_PetriNet/Port post_ports_10 {
  23. label = "10"
  24. value_name = $
  25. String function value(model : Element, name : String, mapping : Element):
  26. return "up"!
  27. $
  28. }
  29. Post_Encapsulated_PetriNet/PortPlace (post_ports_10, post_ports_00) {
  30. label = "20"
  31. }
  32. Post_Encapsulated_PetriNet/Place post_ports_01 {
  33. label = "01"
  34. value_name = $
  35. String function value(model : Element, name : String, mapping : Element):
  36. return "neutral"!
  37. $
  38. value_tokens = $
  39. Integer function value(model : Element, name : String, mapping : Element):
  40. return 0!
  41. $
  42. }
  43. Post_Encapsulated_PetriNet/Port post_ports_11 {
  44. label = "11"
  45. value_name = $
  46. String function value(model : Element, name : String, mapping : Element):
  47. return "neutral"!
  48. $
  49. }
  50. Post_Encapsulated_PetriNet/PortPlace (post_ports_11, post_ports_01) {
  51. label = "21"
  52. }
  53. Post_Encapsulated_PetriNet/Place post_ports_02 {
  54. label = "02"
  55. value_name = $
  56. String function value(model : Element, name : String, mapping : Element):
  57. return "down"!
  58. $
  59. value_tokens = $
  60. Integer function value(model : Element, name : String, mapping : Element):
  61. return 0!
  62. $
  63. }
  64. Post_Encapsulated_PetriNet/Port post_ports_12 {
  65. label = "12"
  66. value_name = $
  67. String function value(model : Element, name : String, mapping : Element):
  68. return "down"!
  69. $
  70. }
  71. Post_Encapsulated_PetriNet/PortPlace (post_ports_12, post_ports_02) {
  72. label = "22"
  73. }
  74. Post_Encapsulated_PetriNet/Place post_ports_03 {
  75. label = "03"
  76. value_name = $
  77. String function value(model : Element, name : String, mapping : Element):
  78. return "interrupt"!
  79. $
  80. value_tokens = $
  81. Integer function value(model : Element, name : String, mapping : Element):
  82. return 0!
  83. $
  84. }
  85. Post_Encapsulated_PetriNet/Port post_ports_13 {
  86. label = "13"
  87. value_name = $
  88. String function value(model : Element, name : String, mapping : Element):
  89. return "interrupt"!
  90. $
  91. }
  92. Post_Encapsulated_PetriNet/PortPlace (post_ports_13, post_ports_03) {
  93. label = "23"
  94. }
  95. Post_Encapsulated_PetriNet/Place post_ports_04 {
  96. label = "04"
  97. value_name = $
  98. String function value(model : Element, name : String, mapping : Element):
  99. return "objDetected"!
  100. $
  101. value_tokens = $
  102. Integer function value(model : Element, name : String, mapping : Element):
  103. // Set the detected output based on the initial state
  104. Element states
  105. String state
  106. states = allInstances(model, "PW_Plant/State")
  107. while (read_nr_out(states) > 0):
  108. state = set_pop(states)
  109. if (value_eq(read_attribute(model, state, "isInitial"), True)):
  110. if (read_type(model, state) == "PW_Plant/ErrorState"):
  111. return 1!
  112. else:
  113. return 0!
  114. $
  115. }
  116. Post_Encapsulated_PetriNet/Port post_ports_14 {
  117. label = "14"
  118. value_name = $
  119. String function value(model : Element, name : String, mapping : Element):
  120. return "objDetected"!
  121. $
  122. }
  123. Post_Encapsulated_PetriNet/PortPlace (post_ports_14, post_ports_04) {
  124. label = "24"
  125. }
  126. Post_Encapsulated_PetriNet/Place post_ports_05 {
  127. label = "05"
  128. value_name = $
  129. String function value(model : Element, name : String, mapping : Element):
  130. return "no_objDetected"!
  131. $
  132. value_tokens = $
  133. Integer function value(model : Element, name : String, mapping : Element):
  134. // Set the detected output based on the initial state
  135. Element states
  136. String state
  137. states = allInstances(model, "PW_Plant/State")
  138. while (read_nr_out(states) > 0):
  139. state = set_pop(states)
  140. if (value_eq(read_attribute(model, state, "isInitial"), True)):
  141. if (read_type(model, state) == "PW_Plant/ErrorState"):
  142. return 0!
  143. else:
  144. return 1!
  145. $
  146. }
  147. Post_Encapsulated_PetriNet/Port post_ports_15 {
  148. label = "15"
  149. value_name = $
  150. String function value(model : Element, name : String, mapping : Element):
  151. return "no_objDetected"!
  152. $
  153. }
  154. Post_Encapsulated_PetriNet/PortPlace (post_ports_15, post_ports_05) {
  155. label = "25"
  156. }
  157. Post_Encapsulated_PetriNet/Place post_ports_06 {
  158. label = "06"
  159. value_name = $
  160. String function value(model : Element, name : String, mapping : Element):
  161. return "objPresent"!
  162. $
  163. value_tokens = $
  164. Integer function value(model : Element, name : String, mapping : Element):
  165. return 0!
  166. $
  167. }
  168. Post_Encapsulated_PetriNet/Port post_ports_16 {
  169. label = "16"
  170. value_name = $
  171. String function value(model : Element, name : String, mapping : Element):
  172. return "objPresent"!
  173. $
  174. }
  175. Post_Encapsulated_PetriNet/PortPlace (post_ports_16, post_ports_06) {
  176. label = "26"
  177. }
  178. Post_Encapsulated_PetriNet/Place post_ports_07 {
  179. label = "07"
  180. value_name = $
  181. String function value(model : Element, name : String, mapping : Element):
  182. return "no_objPresent"!
  183. $
  184. value_tokens = $
  185. Integer function value(model : Element, name : String, mapping : Element):
  186. return 0!
  187. $
  188. }
  189. Post_Encapsulated_PetriNet/Port post_ports_17 {
  190. label = "17"
  191. value_name = $
  192. String function value(model : Element, name : String, mapping : Element):
  193. return "no_objPresent"!
  194. $
  195. }
  196. Post_Encapsulated_PetriNet/PortPlace (post_ports_17, post_ports_07) {
  197. label = "27"
  198. }
  199. }
  200. }
  201. {Contains} ForAll create_states {
  202. LHS {
  203. Pre_PW_Plant/State {
  204. label = "0"
  205. }
  206. }
  207. RHS {
  208. Post_PW_Plant/State post_cs_0 {
  209. label = "0"
  210. }
  211. Post_Encapsulated_PetriNet/Place post_cs_1 {
  212. label = "1"
  213. value_name = $
  214. String function value(model : Element, name : String, mapping : Element):
  215. return read_attribute(model, mapping["0"], "name")!
  216. $
  217. value_tokens = $
  218. Integer function value(model : Element, name : String, mapping : Element):
  219. if (value_eq(read_attribute(model, mapping["0"], "isInitial"), True)):
  220. return 1!
  221. else:
  222. return 0!
  223. $
  224. }
  225. Post_PLANT2EPN_link (post_cs_0, post_cs_1) {
  226. label = "2"
  227. }
  228. }
  229. }
  230. {Contains} ForAll command_transition {
  231. LHS {
  232. Pre_PW_Plant/State pre_ct_0{
  233. label = "0"
  234. }
  235. Pre_PW_Plant/State pre_ct_1{
  236. label = "1"
  237. }
  238. Pre_PW_Plant/Transition pre_ct_2 (pre_ct_0, pre_ct_1) {
  239. label = "2"
  240. }
  241. Pre_Encapsulated_PetriNet/Place pre_ct_3{
  242. label = "3"
  243. }
  244. Pre_Encapsulated_PetriNet/Place pre_ct_4{
  245. label = "4"
  246. }
  247. Pre_PLANT2EPN_link P2E_l1 (pre_ct_0, pre_ct_3) {
  248. label = "5"
  249. }
  250. Pre_PLANT2EPN_link P2E_l2(pre_ct_1, pre_ct_4) {
  251. label = "6"
  252. }
  253. Pre_Encapsulated_PetriNet/Place pre_ct_7 {
  254. label = "7"
  255. constraint_name = $
  256. Boolean function constraint(value : String):
  257. return (bool_or(bool_or(value == "up", value == "neutral"), value == "down"))!
  258. $
  259. }
  260. Pre_Encapsulated_PetriNet/Port pre_ct_8 {
  261. label = "8"
  262. constraint_name = $
  263. Boolean function constraint(value : String):
  264. return (bool_or(bool_or(value == "up", value == "neutral"), value == "down"))!
  265. $
  266. }
  267. Pre_Encapsulated_PetriNet/PortPlace pp_l (pre_ct_8, pre_ct_7) {
  268. label = "9"
  269. }
  270. constraint = $
  271. Boolean function constraint(model : Element, mapping : Element):
  272. String transition_type
  273. String port_name
  274. transition_type = read_type(model, mapping["2"])
  275. port_name = read_attribute(model, mapping["8"], "name")
  276. if (transition_type == "PW_Plant/OnUp"):
  277. return (port_name == "up")!
  278. elif (transition_type == "PW_Plant/OnNeutral"):
  279. return (port_name == "neutral")!
  280. elif (transition_type == "PW_Plant/OnDown"):
  281. return (port_name == "down")!
  282. else:
  283. return False!
  284. $
  285. }
  286. RHS {
  287. Post_PW_Plant/State post_ct_0{
  288. label = "0"
  289. }
  290. Post_PW_Plant/State post_ct_1{
  291. label = "1"
  292. }
  293. Post_PW_Plant/Transition post_ct_2 (post_ct_0, post_ct_1) {
  294. label = "2"
  295. }
  296. Post_Encapsulated_PetriNet/Place post_ct_3{
  297. label = "3"
  298. }
  299. Post_Encapsulated_PetriNet/Place post_ct_4{
  300. label = "4"
  301. }
  302. Post_PLANT2EPN_link (post_ct_0, post_ct_3) {
  303. label = "5"
  304. }
  305. Post_PLANT2EPN_link (post_ct_1, post_ct_4) {
  306. label = "6"
  307. }
  308. Post_Encapsulated_PetriNet/Place post_ct_7 {
  309. label = "7"
  310. }
  311. Post_Encapsulated_PetriNet/Port post_ct_8 {
  312. label = "8"
  313. }
  314. Post_Encapsulated_PetriNet/PortPlace (post_ct_8, post_ct_7) {
  315. label = "9"
  316. }
  317. Post_Encapsulated_PetriNet/Transition post_ct_10 {
  318. label = "10"
  319. value_name = $
  320. String function value(model : Element, name : String, mapping : Element):
  321. return string_join(string_join(read_attribute(model, mapping["0"], "name"), read_type(model, mapping["2"])), read_attribute(model, mapping["2"], "objPresent"))!
  322. $
  323. }
  324. Post_Encapsulated_PetriNet/P2T (post_ct_3, post_ct_10) {
  325. label = "11"
  326. }
  327. Post_Encapsulated_PetriNet/T2P (post_ct_10, post_ct_4) {
  328. label = "12"
  329. }
  330. Post_Encapsulated_PetriNet/P2T (post_ct_7, post_ct_10) {
  331. label = "13"
  332. }
  333. Post_Encapsulated_PetriNet/T2P (post_ct_10, post_ct_7) {
  334. label = "14"
  335. }
  336. Post_PLANT2EPN_tlink (post_ct_2, post_ct_10) {
  337. label = "100"
  338. }
  339. }
  340. }
  341. {Contains} ForAll check_object {
  342. LHS {
  343. Pre_PW_Plant/State pre_co_0{
  344. label = "0"
  345. }
  346. Pre_PW_Plant/State pre_co_1{
  347. label = "1"
  348. }
  349. Pre_PW_Plant/Transition pre_co_2 (pre_co_0, pre_co_1) {
  350. label = "2"
  351. constraint_objPresent = $
  352. Boolean function constraint(value : String):
  353. return (bool_or(value == "Y", value == "N"))!
  354. $
  355. }
  356. Pre_Encapsulated_PetriNet/Place pre_co_8 {
  357. label = "8"
  358. }
  359. Pre_Encapsulated_PetriNet/Port pre_co_11 {
  360. label = "11"
  361. constraint_name = $
  362. Boolean function constraint(value : String):
  363. return (bool_or(value == "objPresent", value == "no_objPresent"))!
  364. $
  365. }
  366. Pre_Encapsulated_PetriNet/PortPlace (pre_co_11, pre_co_8) {
  367. label = "12"
  368. }
  369. Pre_Encapsulated_PetriNet/Transition pre_co_15 {
  370. label = "15"
  371. }
  372. Pre_PLANT2EPN_tlink (pre_co_2, pre_co_15) {
  373. label = "100"
  374. }
  375. constraint = $
  376. Boolean function constraint (host_model : Element, mapping : Element):
  377. // Check whether the bound primary places match with the state
  378. String objPresent
  379. String port_name
  380. objPresent = read_attribute(host_model, mapping["2"], "objPresent")
  381. port_name = read_attribute(host_model, mapping["11"], "name")
  382. if (objPresent == "Y"):
  383. return (port_name == "objPresent")!
  384. elif (objPresent == "N"):
  385. return (port_name == "no_objPresent")!
  386. else:
  387. return False!
  388. $
  389. }
  390. RHS {
  391. Post_PW_Plant/State post_co_0{
  392. label = "0"
  393. }
  394. Post_PW_Plant/State post_co_1{
  395. label = "1"
  396. }
  397. Post_PW_Plant/Transition post_co_2 (post_co_0, post_co_1) {
  398. label = "2"
  399. }
  400. Post_Encapsulated_PetriNet/Place post_co_8 {
  401. label = "8"
  402. }
  403. Post_Encapsulated_PetriNet/Port post_co_11 {
  404. label = "11"
  405. }
  406. Post_Encapsulated_PetriNet/PortPlace (post_co_11, post_co_8) {
  407. label = "12"
  408. }
  409. Post_Encapsulated_PetriNet/Transition post_co_15 {
  410. label = "15"
  411. }
  412. Post_Encapsulated_PetriNet/P2T (post_co_8, post_co_15) {
  413. label = "9"
  414. }
  415. Post_Encapsulated_PetriNet/T2P (post_co_15, post_co_8) {
  416. label = "10"
  417. }
  418. Post_PLANT2EPN_tlink (post_co_2, post_co_15) {
  419. label = "100"
  420. }
  421. }
  422. }
  423. {Contains} ForAll detect {
  424. LHS {
  425. Pre_PW_Plant/NormalState pre_de_0{
  426. label = "0"
  427. }
  428. Pre_PW_Plant/ErrorState pre_de_1{
  429. label = "1"
  430. }
  431. Pre_PW_Plant/Transition pre_de_2 (pre_de_0, pre_de_1) {
  432. label = "2"
  433. }
  434. Pre_Encapsulated_PetriNet/Transition pre_de_7 {
  435. label = "7"
  436. }
  437. Pre_Encapsulated_PetriNet/Place pre_de_10 {
  438. label = "10"
  439. }
  440. Pre_Encapsulated_PetriNet/Port pre_de_11 {
  441. label = "11"
  442. }
  443. Pre_Encapsulated_PetriNet/PortPlace (pre_de_11, pre_de_10) {
  444. label = "12"
  445. }
  446. Pre_Encapsulated_PetriNet/Place pre_de_13 {
  447. label = "13"
  448. }
  449. Pre_Encapsulated_PetriNet/Port pre_de_14 {
  450. label = "14"
  451. constraint_name = $
  452. Boolean function constraint(value : String):
  453. return (value == "interrupt")!
  454. $
  455. }
  456. Pre_Encapsulated_PetriNet/PortPlace (pre_de_14, pre_de_13) {
  457. label = "15"
  458. }
  459. Pre_Encapsulated_PetriNet/Place pre_de_16 {
  460. label = "16"
  461. }
  462. Pre_Encapsulated_PetriNet/Port pre_de_17 {
  463. label = "17"
  464. constraint_name = $
  465. Boolean function constraint(value : String):
  466. return (value == "no_objDetected")!
  467. $
  468. }
  469. Pre_Encapsulated_PetriNet/PortPlace (pre_de_17, pre_de_16) {
  470. label = "18"
  471. }
  472. Pre_Encapsulated_PetriNet/Place pre_de_19 {
  473. label = "19"
  474. }
  475. Pre_Encapsulated_PetriNet/Port pre_de_20 {
  476. label = "20"
  477. constraint_name = $
  478. Boolean function constraint(value : String):
  479. return (value == "objDetected")!
  480. $
  481. }
  482. Pre_Encapsulated_PetriNet/PortPlace (pre_de_20, pre_de_19) {
  483. label = "21"
  484. }
  485. Pre_Encapsulated_PetriNet/T2P (pre_de_7, pre_de_10) {
  486. label = "26"
  487. }
  488. Pre_PLANT2EPN_tlink (pre_de_2, pre_de_7) {
  489. label = "100"
  490. }
  491. constraint = $
  492. Boolean function constraint (host_model : Element, mapping : Element):
  493. // Check whether the bound primary places match with the state
  494. String source_type
  495. String port_name
  496. source_type = read_type(host_model, mapping["2"])
  497. port_name = read_attribute(host_model, mapping["11"], "name")
  498. if (source_type == "PW_Plant/OnUp"):
  499. return (port_name == "up")!
  500. elif (source_type == "PW_Plant/OnNeutral"):
  501. return (port_name == "neutral")!
  502. elif (source_type == "PW_Plant/OnDown"):
  503. return (port_name == "down")!
  504. else:
  505. return False!
  506. $
  507. }
  508. RHS {
  509. Post_PW_Plant/NormalState post_de_0{
  510. label = "0"
  511. }
  512. Post_PW_Plant/ErrorState post_de_1{
  513. label = "1"
  514. }
  515. Post_PW_Plant/Transition post_de_2 (post_de_0, post_de_1){
  516. label = "2"
  517. }
  518. Post_Encapsulated_PetriNet/Transition post_de_7 {
  519. label = "7"
  520. }
  521. Post_Encapsulated_PetriNet/Place post_de_10 {
  522. label = "10"
  523. }
  524. Post_Encapsulated_PetriNet/Port post_de_11 {
  525. label = "11"
  526. }
  527. Post_Encapsulated_PetriNet/PortPlace (post_de_11, post_de_10) {
  528. label = "12"
  529. }
  530. Post_Encapsulated_PetriNet/Place post_de_13 {
  531. label = "13"
  532. }
  533. Post_Encapsulated_PetriNet/Port post_de_14 {
  534. label = "14"
  535. }
  536. Post_Encapsulated_PetriNet/PortPlace (post_de_14, post_de_13) {
  537. label = "15"
  538. }
  539. Post_Encapsulated_PetriNet/Place post_de_16 {
  540. label = "16"
  541. }
  542. Post_Encapsulated_PetriNet/Port post_de_17 {
  543. label = "17"
  544. }
  545. Post_Encapsulated_PetriNet/PortPlace (post_de_17, post_de_16) {
  546. label = "18"
  547. }
  548. Post_Encapsulated_PetriNet/Place post_de_19 {
  549. label = "19"
  550. }
  551. Post_Encapsulated_PetriNet/Port post_de_20 {
  552. label = "20"
  553. }
  554. Post_Encapsulated_PetriNet/PortPlace (post_de_20, post_de_19) {
  555. label = "21"
  556. }
  557. Post_Encapsulated_PetriNet/T2P (post_de_7, post_de_13) {
  558. label = "23"
  559. }
  560. Post_Encapsulated_PetriNet/P2T (post_de_16, post_de_7) {
  561. label = "24"
  562. }
  563. Post_Encapsulated_PetriNet/T2P (post_de_7, post_de_19) {
  564. label = "25"
  565. }
  566. Post_PLANT2EPN_tlink (post_de_2, post_de_7) {
  567. label = "100"
  568. }
  569. }
  570. }
  571. {Contains} ForAll remove_detect {
  572. LHS {
  573. Pre_PW_Plant/ErrorState pre_rd_0{
  574. label = "0"
  575. }
  576. Pre_PW_Plant/NormalState pre_rd_1{
  577. label = "1"
  578. }
  579. Pre_PW_Plant/Transition pre_rd_2 (pre_rd_0, pre_rd_1){
  580. label = "2"
  581. }
  582. Pre_Encapsulated_PetriNet/Transition pre_rd_7 {
  583. label = "7"
  584. }
  585. Pre_Encapsulated_PetriNet/Place pre_rd_10 {
  586. label = "10"
  587. }
  588. Pre_Encapsulated_PetriNet/Port pre_rd_11 {
  589. label = "11"
  590. constraint_name = $
  591. Boolean function constraint(value : String):
  592. return (value == "objDetected")!
  593. $
  594. }
  595. Pre_Encapsulated_PetriNet/PortPlace (pre_rd_11, pre_rd_10) {
  596. label = "12"
  597. }
  598. Pre_Encapsulated_PetriNet/Place pre_rd_13 {
  599. label = "13"
  600. }
  601. Pre_Encapsulated_PetriNet/Port pre_rd_14 {
  602. label = "14"
  603. constraint_name = $
  604. Boolean function constraint(value : String):
  605. return (value == "no_objDetected")!
  606. $
  607. }
  608. Pre_Encapsulated_PetriNet/PortPlace (pre_rd_14, pre_rd_13) {
  609. label = "15"
  610. }
  611. Pre_PLANT2EPN_tlink (pre_rd_2, pre_rd_7) {
  612. label = "100"
  613. }
  614. }
  615. RHS {
  616. Post_PW_Plant/ErrorState post_rd_0{
  617. label = "0"
  618. }
  619. Post_PW_Plant/NormalState post_rd_1{
  620. label = "1"
  621. }
  622. Post_PW_Plant/Transition post_rd_2 (post_rd_0, post_rd_1){
  623. label = "2"
  624. }
  625. Post_Encapsulated_PetriNet/Transition post_rd_7 {
  626. label = "7"
  627. }
  628. Post_Encapsulated_PetriNet/Place post_rd_10 {
  629. label = "10"
  630. }
  631. Post_Encapsulated_PetriNet/Port post_rd_11 {
  632. label = "11"
  633. }
  634. Post_Encapsulated_PetriNet/PortPlace (post_rd_11, post_rd_10) {
  635. label = "12"
  636. }
  637. Post_Encapsulated_PetriNet/Place post_rd_13 {
  638. label = "13"
  639. }
  640. Post_Encapsulated_PetriNet/Port post_rd_14 {
  641. label = "14"
  642. }
  643. Post_Encapsulated_PetriNet/PortPlace (post_rd_14, post_rd_13) {
  644. label = "15"
  645. }
  646. Post_Encapsulated_PetriNet/P2T (post_rd_10, post_rd_7) {
  647. label = "16"
  648. }
  649. Post_Encapsulated_PetriNet/T2P (post_rd_7, post_rd_13) {
  650. label = "17"
  651. }
  652. Post_PLANT2EPN_tlink (post_rd_2, post_rd_7) {
  653. label = "100"
  654. }
  655. }
  656. }
  657. }
  658. Initial (schedule, init_ports) {}
  659. OnSuccess (init_ports, create_states) {}
  660. OnSuccess (create_states, command_transition) {}
  661. OnSuccess (command_transition, check_object) {}
  662. OnSuccess (check_object, detect) {}
  663. OnSuccess (detect, remove_detect) {}
  664. OnSuccess (remove_detect, success) {}
  665. OnFailure (init_ports, create_states) {}
  666. OnFailure (create_states, command_transition) {}
  667. OnFailure (command_transition, check_object) {}
  668. OnFailure (check_object, detect) {}
  669. OnFailure (detect, remove_detect) {}
  670. OnFailure (remove_detect, success) {}
  671. }