|
@@ -629,24 +629,24 @@ Void function action(host_model : Element, name : String, mapping : Element):
|
|
|
"attr_add", "p2t2", "weight", 1,
|
|
|
"exit",
|
|
|
"ramify", "PetriNets_runtime",
|
|
|
- # Rule 1: mark transition to execute
|
|
|
"new", "PetriNets_runtime_SCHEDULE", "pn_simulate",
|
|
|
- "instantiate", "LHS", "lhs",
|
|
|
- "instantiate", "Pre_Transition", "pre_t",
|
|
|
- "attr_add", "pre_t", "label", "0",
|
|
|
- "attr_add_code", "pre_t", "constraint",
|
|
|
+ # Rule 1: mark transition to execute
|
|
|
+ "instantiate", "LHS", "lhs_mark",
|
|
|
+ "instantiate", "Pre_Transition", "pre_mark_t",
|
|
|
+ "attr_add", "pre_mark_t", "label", "0",
|
|
|
+ "attr_add_code", "pre_mark_t", "constraint",
|
|
|
] + constructor_mark_constraint + [
|
|
|
- "instantiate", "LHS_contains", "", "lhs", "pre_t",
|
|
|
- "instantiate", "RHS", "rhs",
|
|
|
- "instantiate", "Post_Transition", "post_t",
|
|
|
- "attr_add", "post_t", "label", "0",
|
|
|
- "attr_add_code", "post_t", "action",
|
|
|
+ "instantiate", "LHS_contains", "", "lhs_mark", "pre_mark_t",
|
|
|
+ "instantiate", "RHS", "rhs_mark",
|
|
|
+ "instantiate", "Post_Transition", "post_mark_t",
|
|
|
+ "attr_add", "post_mark_t", "label", "0",
|
|
|
+ "attr_add_code", "post_mark_t", "action",
|
|
|
] + constructor_mark_action + [
|
|
|
- "instantiate", "RHS_contains", "", "rhs", "post_t",
|
|
|
+ "instantiate", "RHS_contains", "", "rhs_mark", "post_mark_t",
|
|
|
"instantiate", "Composite", "main",
|
|
|
"instantiate", "Atomic", "mark",
|
|
|
- "instantiate", "AtomicLHS", "", "mark", "lhs",
|
|
|
- "instantiate", "AtomicRHS", "", "mark", "rhs",
|
|
|
+ "instantiate", "AtomicLHS", "", "mark", "lhs_mark",
|
|
|
+ "instantiate", "AtomicRHS", "", "mark", "rhs_mark",
|
|
|
"instantiate", "Success", "success",
|
|
|
"instantiate", "Failure", "failure",
|
|
|
"instantiate", "Contains", "", "main", "mark",
|
|
@@ -655,6 +655,7 @@ Void function action(host_model : Element, name : String, mapping : Element):
|
|
|
"instantiate", "OnSuccess", "", "mark", "success",
|
|
|
"instantiate", "OnFailure", "", "mark", "failure",
|
|
|
"instantiate", "Initial", "", "main", "mark",
|
|
|
+ # Rule 2: consume tokens going into marked transition
|
|
|
"exit",
|
|
|
"transform", "pn", "pn_simulate",
|
|
|
"load", "pn",
|