123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 |
- PW_PN_RAM pw_to_epn {
- Composite schedule {
- {Contains} Success success {}
- {Contains} Atomic R_no_sensor {
- LHS {
- Pre_PW/Side {
- label = "1"
- }
- }
- NAC {
- Pre_PW/Side n_nac_s{
- label = "1"
- }
- Pre_PW/Infrared n_nac_i{
- label = "2"
- }
- Pre_PW/HasSensor (n_nac_s, n_nac_i) {
- label = "3"
- }
- }
- RHS {
- Post_EPN/Boundary n_0{
- label = "0"
- }
- Post_EPN/Port n_4{
- label = "4"
- name = $
- String function value(host_model : Element, name : String, mapping : Element):
- return "InControlGoingDown"!
- $
- }
- Post_EPN/Port n_6{
- label = "6"
- name = $
- String function value(host_model : Element, name : String, mapping : Element):
- return "InControlMovingUp"!
- $
- }
- Post_EPN/Port n_50{
- label = "50"
- name = $
- String function value(host_model : Element, name : String, mapping : Element):
- return "InControlNeutral"!
- $
- }
- Post_EPN/Transition n_16{
- name = $
- String function value(host_model : Element, name : String, mapping : Element):
- return "InControlMovingUp"!
- $
- }
- label = "16"
- Post_EPN/Transition n_18{
- label = "18"
- name = $
- String function value(host_model : Element, name : String, mapping : Element):
- return "InControlMovingUp"!
- $
- }
- Post_EPN/Transition n_20{
- label = "20"
- name = $
- String function value(host_model : Element, name : String, mapping : Element):
- return "InControlNeutral"!
- $
- }
- Post_EPN/Transition n_22{
- label = "22"
- name = $
- String function value(host_model : Element, name : String, mapping : Element):
- return "InControlNeutral"!
- $
- }
- Post_EPN/Transition n_24{
- label = "24"
- name = $
- String function value(host_model : Element, name : String, mapping : Element):
- return "InControlNeutral"!
- $
- }
- Post_EPN/Transition n_26{
- label = "26"
- name = $
- String function value(host_model : Element, name : String, mapping : Element):
- return "InControlMovingUp"!
- $
- }
- Post_EPN/Transition n_28{
- label = "28"
- name = $
- String function value(host_model : Element, name : String, mapping : Element):
- return "InControlMovingUp"!
- $
- }
-
- Post_EPN/Place n_9{
- label = "9"
- nbTokens = $
- Integer function value(host_model : Element, name : String, mapping : Element):
- return 0!
- $
- name = $
- String function value(host_model : Element, name : String, mapping : Element):
- return "top"!
- $
- }
- Post_EPN/Place n_11{
- label = "11"
- nbTokens = $
- Integer function value(host_model : Element, name : String, mapping : Element):
- return 0!
- $
- name = $
- String function value(host_model : Element, name : String, mapping : Element):
- return "middle"!
- $
- }
- Post_EPN/Place n_14{
- label = "14"
- nbTokens = $
- Integer function value(host_model : Element, name : String, mapping : Element):
- return 1!
- $
- name = $
- String function value(host_model : Element, name : String, mapping : Element):
- return "bottom"!
- $
- }
- Post_EPN/Has3 (n_0, n_4){
- label = "5"
- }
- Post_EPN/Has3 (n_0, n_6){
- label = "7"
- }
- Post_EPN/Has3 (n_0, n_50){
- label = "8"
- }
- Post_EPN/Has2 (n_0, n_16){
- label = "17"
- }
- Post_EPN/Has2 (n_0, n_18){
- label = "19"
- }
- Post_EPN/Has2 (n_0, n_20){
- label = "21"
- }
- Post_EPN/Has2 (n_0, n_22){
- label = "23"
- }
- Post_EPN/Has2 (n_0, n_24){
- label = "25"
- }
- Post_EPN/Has2 (n_0, n_26){
- label = "27"
- }
- Post_EPN/Has2 (n_0, n_28){
- label = "29"
- }
- Post_EPN/Has1 (n_0, n_9){
- label = "10"
- }
- Post_EPN/Has1 (n_0, n_11){
- label = "13"
- }
- Post_EPN/Has1 (n_0, n_14){
- label = "15"
- }
- }
- }
- {Contains} Atomic R_sensor {
- }
- }
- Initial (schedule, R_no_sensor) {}
- OnSuccess (R_no_sensor, R_no_sensor) {}
- OnFailure (R_no_sensor, R_sensor) {}
- OnSuccess (R_sensor, R_sensor) {}
- OnFailure (R_sensor, success) {}
- }
|