|
@@ -41,39 +41,39 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
"model_add",
|
|
|
"SimpleClassDiagrams",
|
|
|
"ReachabilityGraph",
|
|
|
- ] + get_model_constructor(open("integration/code/reachability_graph.mvc", "r").read()) + [
|
|
|
+ ] + get_model_constructor_2("integration/code/reachability_graph.mvc") + [
|
|
|
"model_add",
|
|
|
"SimpleClassDiagrams",
|
|
|
"PetriNet",
|
|
|
- ] + get_model_constructor(open("integration/code/pn_design.mvc", "r").read()) + [
|
|
|
+ ] + get_model_constructor_2("integration/code/pn_design.mvc") + [
|
|
|
"model_add",
|
|
|
"SimpleClassDiagrams",
|
|
|
"Encapsulated_PetriNet",
|
|
|
- ] + get_model_constructor(open("models/petrinet_ports.mvc", "r").read()) + [
|
|
|
+ ] + get_model_constructor_2("models/petrinet_ports.mvc") + [
|
|
|
"model_add",
|
|
|
"SimpleClassDiagrams",
|
|
|
"PW_Plant",
|
|
|
- ] + get_model_constructor(open("models/plant_PW.mvc", "r").read()) + [
|
|
|
+ ] + get_model_constructor_2("models/plant_PW.mvc") + [
|
|
|
"model_add",
|
|
|
"SimpleClassDiagrams",
|
|
|
"PW_Environment",
|
|
|
- ] + get_model_constructor(open("models/environment_PW.mvc", "r").read()) + [
|
|
|
+ ] + get_model_constructor_2("models/environment_PW.mvc") + [
|
|
|
"model_add",
|
|
|
"SimpleClassDiagrams",
|
|
|
"PW_Control",
|
|
|
- ] + get_model_constructor(open("models/control_PW.mvc", "r").read()) + [
|
|
|
+ ] + get_model_constructor_2("models/control_PW.mvc") + [
|
|
|
"model_add",
|
|
|
"SimpleClassDiagrams",
|
|
|
"Requirements",
|
|
|
- ] + get_model_constructor(open("models/requirements.mvc", "r").read()) + [
|
|
|
+ ] + get_model_constructor_2("models/requirements.mvc") + [
|
|
|
"model_add",
|
|
|
"SimpleClassDiagrams",
|
|
|
"Query",
|
|
|
- ] + get_model_constructor(open("models/query.mvc", "r").read()) + [
|
|
|
+ ] + get_model_constructor_2("models/query.mvc") + [
|
|
|
"model_add",
|
|
|
"ProcessModel",
|
|
|
"pm_powerwindow",
|
|
|
- ] + get_model_constructor(open("models/pm_req_analyse.mvc", "r").read()) + [
|
|
|
+ ] + get_model_constructor_2("models/pm_req_analyse.mvc") + [
|
|
|
"model_list",
|
|
|
"transformation_add_MT_language",
|
|
|
"PetriNet",
|
|
@@ -113,24 +113,28 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
"",
|
|
|
"define_req",
|
|
|
"transformation_add_MANUAL",
|
|
|
+ "Requirements",
|
|
|
"PW_Environment",
|
|
|
"",
|
|
|
"PW_Environment",
|
|
|
"",
|
|
|
"refine_environment",
|
|
|
"transformation_add_MANUAL",
|
|
|
+ "Requirements",
|
|
|
"PW_Plant",
|
|
|
"",
|
|
|
"PW_Plant",
|
|
|
"",
|
|
|
"refine_plant",
|
|
|
"transformation_add_MANUAL",
|
|
|
+ "Requirements",
|
|
|
"PW_Control",
|
|
|
"",
|
|
|
"PW_Control",
|
|
|
"",
|
|
|
"refine_control",
|
|
|
"transformation_add_MANUAL",
|
|
|
+ "Requirements",
|
|
|
"Query",
|
|
|
"",
|
|
|
"Query",
|
|
@@ -145,7 +149,7 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
"Query",
|
|
|
"",
|
|
|
"make_initial_models",
|
|
|
- ] + get_model_constructor(open("models/initialize.mvc", "r").read()) + [
|
|
|
+ ] + get_model_constructor_2("models/initialize.mvc") + [
|
|
|
"transformation_add_MT",
|
|
|
"All_RAM",
|
|
|
"PW_Plant",
|
|
@@ -153,7 +157,7 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
"Encapsulated_PetriNet",
|
|
|
"",
|
|
|
"plant_to_EPN",
|
|
|
- ] + get_model_constructor(open("models/plant_to_EPN.mvc", "r").read()) + [
|
|
|
+ ] + get_model_constructor_2("models/plant_to_EPN.mvc") + [
|
|
|
"transformation_add_MT",
|
|
|
"All_RAM",
|
|
|
"PW_Control",
|
|
@@ -161,7 +165,7 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
"Encapsulated_PetriNet",
|
|
|
"",
|
|
|
"control_to_EPN",
|
|
|
- ] + get_model_constructor(open("models/control_to_EPN.mvc", "r").read()) + [
|
|
|
+ ] + get_model_constructor_2("models/control_to_EPN.mvc") + [
|
|
|
"transformation_add_MT",
|
|
|
"All_RAM",
|
|
|
"PW_Environment",
|
|
@@ -169,7 +173,7 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
"Encapsulated_PetriNet",
|
|
|
"",
|
|
|
"environment_to_EPN",
|
|
|
- ] + get_model_constructor(open("models/environment_to_EPN.mvc", "r").read()) + [
|
|
|
+ ] + get_model_constructor_2("models/environment_to_EPN.mvc") + [
|
|
|
"transformation_add_AL",
|
|
|
"PetriNet",
|
|
|
"",
|
|
@@ -183,23 +187,23 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
"pm_",
|
|
|
# define_req
|
|
|
"upload",
|
|
|
- ] + get_model_constructor(open("models/requirements_model.mvc", "r").read()) + [
|
|
|
+ ] + get_model_constructor_2("models/requirements_model.mvc") + [
|
|
|
"exit",
|
|
|
# refine_plant
|
|
|
"upload",
|
|
|
- ] + get_model_constructor(open("models/plant_model.mvc", "r").read()) + [
|
|
|
+ ] + get_model_constructor_2("models/plant_model.mvc") + [
|
|
|
"exit",
|
|
|
# refine_environment
|
|
|
"upload",
|
|
|
- ] + get_model_constructor(open("models/environment_model.mvc", "r").read()) + [
|
|
|
+ ] + get_model_constructor_2("models/environment_model.mvc") + [
|
|
|
"exit",
|
|
|
# refine_control
|
|
|
"upload",
|
|
|
- ] + get_model_constructor(open("models/control_model.mvc", "r").read()) + [
|
|
|
+ ] + get_model_constructor_2("models/control_model.mvc") + [
|
|
|
"exit",
|
|
|
# refine_query
|
|
|
"upload",
|
|
|
- ] + get_model_constructor(open("models/query_model.mvc", "r").read()) + [
|
|
|
+ ] + get_model_constructor_2("models/query_model.mvc") + [
|
|
|
"exit",
|
|
|
],
|
|
|
[ # bootup phase
|
|
@@ -264,6 +268,7 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
] + [
|
|
|
"Which metamodels do you want to use as source for the manual operation (empty string to finish)?",
|
|
|
"Model added as source",
|
|
|
+ "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?",
|
|
@@ -428,4 +433,6 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
"Please give your command.",
|
|
|
"Waiting for model constructors...",
|
|
|
"Please give your command.",
|
|
|
+ # Computations happen without output
|
|
|
+ "",
|
|
|
]))
|