pn_print_MR.mvc 948 B

12345678910111213141516171819202122232425262728
  1. RAM_PN_R print {
  2. Composite schedule {
  3. {Contains} Success success {}
  4. {Contains} ForAll print_tokens {
  5. LHS {
  6. Pre_PetriNets_Place {
  7. label = "0"
  8. }
  9. }
  10. RHS {
  11. Post_PetriNets_Place {
  12. label = "0"
  13. action = $
  14. include "primitives.alh"
  15. include "modelling.alh"
  16. Void function action(host_model : Element, name : String, mapping : Element):
  17. output((cast_v2s(read_attribute(host_model, name, "name")) + " --> ") + cast_v2s(read_attribute(host_model, name, "tokens")))
  18. return!
  19. $
  20. }
  21. }
  22. }
  23. }
  24. OnSuccess (print_tokens, success) {}
  25. OnFailure (print_tokens, success) {}
  26. Initial (schedule, print_tokens) {}
  27. }