ramified_petrinets.mvc 2.3 KB

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