فهرست منبع

Added some additional manual transformations

Yentl Van Tendeloo 8 سال پیش
والد
کامیت
97487af083
1فایلهای تغییر یافته به همراه58 افزوده شده و 9 حذف شده
  1. 58 9
      integration/test_powerwindow.py

+ 58 - 9
integration/test_powerwindow.py

@@ -91,12 +91,41 @@ class TestPowerWindow(unittest.TestCase):
                 "Query",
                 "",
                 "All_RAM",
+                "transformation_add_MANUAL",
+                    "",
+                    "Requirements",
+                    "",
+                    "define_req",
+                "transformation_add_MANUAL",
+                    "PW_Environment",
+                    "",
+                    "PW_Environment",
+                    "",
+                    "refine_environment",
                 "transformation_add_MANUAL",
                     "PW_Plant",
                     "",
                     "PW_Plant",
                     "",
-                    "refine_Plant",
+                    "refine_plant",
+                "transformation_add_MANUAL",
+                    "PW_Control",
+                    "",
+                    "PW_Control",
+                    "",
+                    "refine_control",
+                "transformation_add_MANUAL",
+                    "Network",
+                    "",
+                    "Network",
+                    "",
+                    "refine_network",
+                "transformation_add_MANUAL",
+                    "Query",
+                    "",
+                    "Query",
+                    "",
+                    "refine_query",
                 "transformation_add_MT",
                     "All_RAM",
                     "",
@@ -167,12 +196,22 @@ class TestPowerWindow(unittest.TestCase):
                 "Name of the RAMified transformation metamodel?",
                 "Ready for command...",
                 # transformation_add_MANUAL
-                "Which metamodels do you want to use as source for the manual operation (empty string to finish)?",
-                "Model added as source",
-                "Which metamodels do you want to use as target for the manual operation (empty string to finish)?",
-                "Model added as target",
-                "Name of Manual operation model?",
-                "Ready for command...",
+                ] + [
+                    "Which metamodels do you want to use as source for the manual operation (empty string to finish)?",
+                    "Which metamodels do you want to use as target for the manual operation (empty string to finish)?",
+                    "Model added as target",
+                    "Name of Manual operation model?",
+                    "Ready for command...",
+                    ] + [
+                # transformation_add_MANUAL * 5
+                ] + [
+                    "Which metamodels do you want to use as source for the manual operation (empty string to finish)?",
+                    "Model added as source",
+                    "Which metamodels do you want to use as target for the manual operation (empty string to finish)?",
+                    "Model added as target",
+                    "Name of Manual operation model?",
+                    "Ready for command...",
+                    ] * 5 + [
                 # transformation_add_MT
                 "RAMified metamodel to use?",
                 "Supported metamodels:",
@@ -247,9 +286,19 @@ class TestPowerWindow(unittest.TestCase):
                      "  Query : SimpleClassDiagrams",
                      "  reachability_analyse : ActionLanguage",
                      "  Plant2EPN : All_RAM",
-                     "  refine_Plant : ManualOperation",
+                     "  define_req : ManualOperation",
+                     "  refine_plant : ManualOperation",
+                     "  refine_control : ManualOperation",
+                     "  refine_environment : ManualOperation",
+                     "  refine_network : ManualOperation",
+                     "  refine_query : ManualOperation",
+                     "  __merged_define_req : SimpleClassDiagrams",
                      "  __merged_All_RAM : SimpleClassDiagrams",
-                     "  __merged_refine_Plant : SimpleClassDiagrams",
+                     "  __merged_refine_plant : SimpleClassDiagrams",
+                     "  __merged_refine_control : SimpleClassDiagrams",
+                     "  __merged_refine_environment : SimpleClassDiagrams",
+                     "  __merged_refine_network : SimpleClassDiagrams",
+                     "  __merged_refine_query : SimpleClassDiagrams",
                      "  All_RAM : SimpleClassDiagrams",
                      "  make_initial_models : All_RAM",
                      "  pm_powerwindow : ProcessModel",