ramified_petrinets.mvc 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. Class LHS{
  2. constraint? : Expression
  3. upper_cardinality = 1
  4. lower_cardinality = 1
  5. }
  6. Class NAC{}
  7. Class Pre_Element{
  8. label : String
  9. constraint? : Expression
  10. }
  11. Association (LHS, Pre_Element)
  12. Association (NAC, Pre_Element){
  13. target_lower_cardinality = 1
  14. }
  15. Class Pre_Place{}
  16. Class Pre_Transition{}
  17. Class Pre_Natural{}
  18. Association Pre_P2T(Pre_Place, Pre_Transition) {}
  19. Association Pre_T2P(Pre_Transition, Pre_Place) {}
  20. Association Pre_Place_tokens(Pre_Place, Pre_Natural) {
  21. name = "Pre_tokens"
  22. target_upper_cardinality = 1
  23. }
  24. Association Pre_P2T_weight(Pre_P2T, Pre_Natural) {
  25. name = "Pre_weight"
  26. target_upper_cardinality = 1
  27. }
  28. Association Pre_T2P_weight(Pre_T2P, Pre_Natural) {
  29. name = "Pre_weight"
  30. target_upper_cardinality = 1
  31. }
  32. Inheritance (Pre_Place, Pre_Element) {}
  33. Inheritance (Pre_Natural, Pre_Element) {}
  34. Inheritance (Pre_Transition, Pre_Element) {}
  35. Inheritance (Pre_P2T, Pre_Element) {}
  36. Inheritance (Pre_Place_tokens, Pre_Element) {}
  37. Inheritance (Pre_P2T_weight, Pre_Element) {}
  38. Inheritance (Pre_T2P_weight, Pre_Element) {}
  39. Post_PetriNets{
  40. // Add AL MM
  41. Class RHS{
  42. action : FunctionDefinition
  43. upper_cardinality = 1
  44. lower_cardinality = 1
  45. }
  46. Class Post_Element {
  47. label : String
  48. value? : Expression
  49. }
  50. Class Post_Place{}
  51. Class Post_Transitions{}
  52. Class Post_Natural{}
  53. Association Post_P2T(Post_Place, Post_Transition) {}
  54. Association Post_T2P(Post_Transition, Post_Place) {}
  55. Association (Post_Place, Post_Natural) {
  56. name = "Post_tokens"
  57. target_upper_cardinality = 1
  58. }
  59. Association (Post_P2T, Post_Natural) {
  60. name = "Post_weight"
  61. target_upper_cardinality = 1
  62. }
  63. Association (Post_T2P, Post_Natural) {
  64. name = "Post_weight"
  65. target_upper_cardinality = 1
  66. }
  67. Inheritance (Post_Place, Post_Element) {}
  68. Inheritance (Post_Natural, Post_Element) {}
  69. Inheritance (Post_Transition, Post_Element) {}
  70. Inheritance (Post_P2T, Post_Element) {}
  71. Inheritance (Post_Place_tokens, Post_Element) {}
  72. Inheritance (Post_P2T_weight, Post_Element) {}
  73. Inheritance (Post_T2P_weight, Post_Element) {}