plant_to_EPN.mvc 29 KB

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