|
@@ -235,18 +235,6 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
"",
|
|
|
"reachability",
|
|
|
] + get_constructor(open("models/reachability.alc", "r").read()) + [
|
|
|
- "transformation_add_AL",
|
|
|
- "PetriNet",
|
|
|
- "",
|
|
|
- "",
|
|
|
- "pn_print",
|
|
|
- ] + get_constructor(open("models/pn_print.alc", "r").read()) + [
|
|
|
- "transformation_add_AL",
|
|
|
- "Encapsulated_PetriNet",
|
|
|
- "",
|
|
|
- "",
|
|
|
- "epn_print",
|
|
|
- ] + get_constructor(open("models/epn_print.alc", "r").read()) + [
|
|
|
"transformation_add_AL",
|
|
|
"ReachabilityGraph",
|
|
|
"",
|
|
@@ -335,9 +323,9 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
"Ready for command...",
|
|
|
# transformation_add_MANUAL * 6
|
|
|
] + [
|
|
|
- "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)?",
|
|
|
- "Name of Manual operation model?",
|
|
|
+ "Which metamodels do you want to use as source for the operation (empty string to finish)?",
|
|
|
+ "Which metamodels do you want to use as target for the operation (empty string to finish)?",
|
|
|
+ "Name of operation model?",
|
|
|
"Ready for command...",
|
|
|
] * 6 + [
|
|
|
# transformation_add_MT * 6
|
|
@@ -354,19 +342,18 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
" PW_Control",
|
|
|
" ReachabilityGraph",
|
|
|
]),
|
|
|
- "",
|
|
|
- "Which ones do you want to use as source (empty string to finish)?",
|
|
|
- "Which ones do you want to use as target (empty string to finish)?",
|
|
|
- "Name of new transformation?",
|
|
|
+ "Which metamodels do you want to use as source for the operation (empty string to finish)?",
|
|
|
+ "Which metamodels do you want to use as target for the operation (empty string to finish)?",
|
|
|
+ "Name of new operation?",
|
|
|
"Waiting for model constructors...",
|
|
|
"Ready for command...",
|
|
|
] * 6 + [
|
|
|
- # transformation_add_AL * 4
|
|
|
- ] + [ "Which metamodels do you want to use as source for the action code (empty string to finish)?",
|
|
|
- "Which metamodels do you want to use as target for the action code (empty string to finish)?",
|
|
|
- "Name of Action Language model?",
|
|
|
+ # transformation_add_AL * 2
|
|
|
+ ] + [ "Which metamodels do you want to use as source for the operation (empty string to finish)?",
|
|
|
+ "Which metamodels do you want to use as target for the operation (empty string to finish)?",
|
|
|
+ "Name of operation model?",
|
|
|
"Waiting for model constructors...",
|
|
|
- "Ready for command...", ] * 4 + [
|
|
|
+ "Ready for command...", ] * 2 + [
|
|
|
# model_list
|
|
|
model_list |
|
|
|
set([
|
|
@@ -384,6 +371,8 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
" revise_environment : ManualOperation",
|
|
|
" revise_query : ManualOperation",
|
|
|
" revise_architecture : ManualOperation",
|
|
|
+ " __merged_bfs : SimpleClassDiagrams",
|
|
|
+ " __merged_reachability : SimpleClassDiagrams",
|
|
|
" __merged_revise_req : SimpleClassDiagrams",
|
|
|
" __merged_All_RAM : SimpleClassDiagrams",
|
|
|
" __merged_revise_plant : SimpleClassDiagrams",
|
|
@@ -391,8 +380,6 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
" __merged_revise_environment : SimpleClassDiagrams",
|
|
|
" __merged_revise_query : SimpleClassDiagrams",
|
|
|
" __merged_revise_architecture : SimpleClassDiagrams",
|
|
|
- " pn_print : ActionLanguage",
|
|
|
- " epn_print : ActionLanguage",
|
|
|
" match : All_RAM",
|
|
|
" All_RAM : SimpleClassDiagrams",
|
|
|
" make_initial_models : All_RAM",
|
|
@@ -410,42 +397,42 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
"Which process model do you want to execute?",
|
|
|
"Model prefix to use?",
|
|
|
# Manual transformation revise_req
|
|
|
- "Please perform manual transformation \"revise_req\"",
|
|
|
+ "Please perform manual operation \"revise_req\"",
|
|
|
"Model loaded, ready for commands!",
|
|
|
"Use 'help' command for a list of possible commands",
|
|
|
"Please give your command.",
|
|
|
"Waiting for model constructors...",
|
|
|
"Please give your command.",
|
|
|
# Manual transformation revise_plant
|
|
|
- "Please perform manual transformation \"revise_plant\"",
|
|
|
+ "Please perform manual operation \"revise_plant\"",
|
|
|
"Model loaded, ready for commands!",
|
|
|
"Use 'help' command for a list of possible commands",
|
|
|
"Please give your command.",
|
|
|
"Waiting for model constructors...",
|
|
|
"Please give your command.",
|
|
|
# Manual transformation revise_environment
|
|
|
- "Please perform manual transformation \"revise_environment\"",
|
|
|
+ "Please perform manual operation \"revise_environment\"",
|
|
|
"Model loaded, ready for commands!",
|
|
|
"Use 'help' command for a list of possible commands",
|
|
|
"Please give your command.",
|
|
|
"Waiting for model constructors...",
|
|
|
"Please give your command.",
|
|
|
# Manual transformation revise_control
|
|
|
- "Please perform manual transformation \"revise_control\"",
|
|
|
+ "Please perform manual operation \"revise_control\"",
|
|
|
"Model loaded, ready for commands!",
|
|
|
"Use 'help' command for a list of possible commands",
|
|
|
"Please give your command.",
|
|
|
"Waiting for model constructors...",
|
|
|
"Please give your command.",
|
|
|
# Manual transformation revise_query
|
|
|
- "Please perform manual transformation \"revise_query\"",
|
|
|
+ "Please perform manual operation \"revise_query\"",
|
|
|
"Model loaded, ready for commands!",
|
|
|
"Use 'help' command for a list of possible commands",
|
|
|
"Please give your command.",
|
|
|
"Waiting for model constructors...",
|
|
|
"Please give your command.",
|
|
|
# Manual transformation revise_architecture
|
|
|
- "Please perform manual transformation \"revise_architecture\"",
|
|
|
+ "Please perform manual operation \"revise_architecture\"",
|
|
|
"Model loaded, ready for commands!",
|
|
|
"Use 'help' command for a list of possible commands",
|
|
|
"Please give your command.",
|
|
@@ -777,9 +764,9 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
"Ready for command...",
|
|
|
# transformation_add_MANUAL * 6
|
|
|
] + [
|
|
|
- "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)?",
|
|
|
- "Name of Manual operation model?",
|
|
|
+ "Which metamodels do you want to use as source for the operation (empty string to finish)?",
|
|
|
+ "Which metamodels do you want to use as target for the operation (empty string to finish)?",
|
|
|
+ "Name of operation model?",
|
|
|
"Ready for command...",
|
|
|
] * 6 + [
|
|
|
# transformation_add_MT * 6
|
|
@@ -796,17 +783,16 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
" PW_Control",
|
|
|
" ReachabilityGraph",
|
|
|
]),
|
|
|
- "",
|
|
|
- "Which ones do you want to use as source (empty string to finish)?",
|
|
|
- "Which ones do you want to use as target (empty string to finish)?",
|
|
|
- "Name of new transformation?",
|
|
|
+ "Which metamodels do you want to use as source for the operation (empty string to finish)?",
|
|
|
+ "Which metamodels do you want to use as target for the operation (empty string to finish)?",
|
|
|
+ "Name of new operation?",
|
|
|
"Waiting for model constructors...",
|
|
|
"Ready for command...",
|
|
|
] * 6 + [
|
|
|
# transformation_add_AL * 4
|
|
|
- ] + [ "Which metamodels do you want to use as source for the action code (empty string to finish)?",
|
|
|
- "Which metamodels do you want to use as target for the action code (empty string to finish)?",
|
|
|
- "Name of Action Language model?",
|
|
|
+ ] + [ "Which metamodels do you want to use as source for the operation (empty string to finish)?",
|
|
|
+ "Which metamodels do you want to use as target for the operation (empty string to finish)?",
|
|
|
+ "Name of operation model?",
|
|
|
"Waiting for model constructors...",
|
|
|
"Ready for command...", ] * 4 + [
|
|
|
# model_list
|
|
@@ -826,6 +812,7 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
" revise_environment : ManualOperation",
|
|
|
" revise_query : ManualOperation",
|
|
|
" revise_architecture : ManualOperation",
|
|
|
+ " __merged_reachability : SimpleClassDiagrams",
|
|
|
" __merged_revise_req : SimpleClassDiagrams",
|
|
|
" __merged_All_RAM : SimpleClassDiagrams",
|
|
|
" __merged_revise_plant : SimpleClassDiagrams",
|
|
@@ -833,6 +820,9 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
" __merged_revise_environment : SimpleClassDiagrams",
|
|
|
" __merged_revise_query : SimpleClassDiagrams",
|
|
|
" __merged_revise_architecture : SimpleClassDiagrams",
|
|
|
+ " __merged_pn_print : SimpleClassDiagrams",
|
|
|
+ " __merged_epn_print : SimpleClassDiagrams",
|
|
|
+ " __merged_bfs : SimpleClassDiagrams",
|
|
|
" pn_print : ActionLanguage",
|
|
|
" epn_print : ActionLanguage",
|
|
|
" match : All_RAM",
|
|
@@ -852,42 +842,42 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
"Which process model do you want to execute?",
|
|
|
"Model prefix to use?",
|
|
|
# Manual transformation revise_req
|
|
|
- "Please perform manual transformation \"revise_req\"",
|
|
|
+ "Please perform manual operation \"revise_req\"",
|
|
|
"Model loaded, ready for commands!",
|
|
|
"Use 'help' command for a list of possible commands",
|
|
|
"Please give your command.",
|
|
|
"Waiting for model constructors...",
|
|
|
"Please give your command.",
|
|
|
# Manual transformation revise_plant
|
|
|
- "Please perform manual transformation \"revise_plant\"",
|
|
|
+ "Please perform manual operation \"revise_plant\"",
|
|
|
"Model loaded, ready for commands!",
|
|
|
"Use 'help' command for a list of possible commands",
|
|
|
"Please give your command.",
|
|
|
"Waiting for model constructors...",
|
|
|
"Please give your command.",
|
|
|
# Manual transformation revise_environment
|
|
|
- "Please perform manual transformation \"revise_environment\"",
|
|
|
+ "Please perform manual operation \"revise_environment\"",
|
|
|
"Model loaded, ready for commands!",
|
|
|
"Use 'help' command for a list of possible commands",
|
|
|
"Please give your command.",
|
|
|
"Waiting for model constructors...",
|
|
|
"Please give your command.",
|
|
|
# Manual transformation revise_control
|
|
|
- "Please perform manual transformation \"revise_control\"",
|
|
|
+ "Please perform manual operation \"revise_control\"",
|
|
|
"Model loaded, ready for commands!",
|
|
|
"Use 'help' command for a list of possible commands",
|
|
|
"Please give your command.",
|
|
|
"Waiting for model constructors...",
|
|
|
"Please give your command.",
|
|
|
# Manual transformation revise_query
|
|
|
- "Please perform manual transformation \"revise_query\"",
|
|
|
+ "Please perform manual operation \"revise_query\"",
|
|
|
"Model loaded, ready for commands!",
|
|
|
"Use 'help' command for a list of possible commands",
|
|
|
"Please give your command.",
|
|
|
"Waiting for model constructors...",
|
|
|
"Please give your command.",
|
|
|
# Manual transformation revise_architecture
|
|
|
- "Please perform manual transformation \"revise_architecture\"",
|
|
|
+ "Please perform manual operation \"revise_architecture\"",
|
|
|
"Model loaded, ready for commands!",
|
|
|
"Use 'help' command for a list of possible commands",
|
|
|
"Please give your command.",
|
|
@@ -898,35 +888,35 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
"Found error path:",
|
|
|
None,
|
|
|
# Manual transformation revise_plant
|
|
|
- "Please perform manual transformation \"revise_plant\"",
|
|
|
+ "Please perform manual operation \"revise_plant\"",
|
|
|
"Model loaded, ready for commands!",
|
|
|
"Use 'help' command for a list of possible commands",
|
|
|
"Please give your command.",
|
|
|
"Waiting for model constructors...",
|
|
|
"Please give your command.",
|
|
|
# Manual transformation revise_environment
|
|
|
- "Please perform manual transformation \"revise_environment\"",
|
|
|
+ "Please perform manual operation \"revise_environment\"",
|
|
|
"Model loaded, ready for commands!",
|
|
|
"Use 'help' command for a list of possible commands",
|
|
|
"Please give your command.",
|
|
|
"Waiting for model constructors...",
|
|
|
"Please give your command.",
|
|
|
# Manual transformation revise_control
|
|
|
- "Please perform manual transformation \"revise_control\"",
|
|
|
+ "Please perform manual operation \"revise_control\"",
|
|
|
"Model loaded, ready for commands!",
|
|
|
"Use 'help' command for a list of possible commands",
|
|
|
"Please give your command.",
|
|
|
"Waiting for model constructors...",
|
|
|
"Please give your command.",
|
|
|
# Manual transformation revise_query
|
|
|
- "Please perform manual transformation \"revise_query\"",
|
|
|
+ "Please perform manual operation \"revise_query\"",
|
|
|
"Model loaded, ready for commands!",
|
|
|
"Use 'help' command for a list of possible commands",
|
|
|
"Please give your command.",
|
|
|
"Waiting for model constructors...",
|
|
|
"Please give your command.",
|
|
|
# Manual transformation revise_architecture
|
|
|
- "Please perform manual transformation \"revise_architecture\"",
|
|
|
+ "Please perform manual operation \"revise_architecture\"",
|
|
|
"Model loaded, ready for commands!",
|
|
|
"Use 'help' command for a list of possible commands",
|
|
|
"Please give your command.",
|
|
@@ -1135,18 +1125,6 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
"",
|
|
|
"reachability",
|
|
|
] + get_constructor(open("models/reachability.alc", "r").read()) + [
|
|
|
- "transformation_add_AL",
|
|
|
- "PetriNet",
|
|
|
- "",
|
|
|
- "",
|
|
|
- "pn_print",
|
|
|
- ] + get_constructor(open("models/pn_print.alc", "r").read()) + [
|
|
|
- "transformation_add_AL",
|
|
|
- "Encapsulated_PetriNet",
|
|
|
- "",
|
|
|
- "",
|
|
|
- "epn_print",
|
|
|
- ] + get_constructor(open("models/epn_print.alc", "r").read()) + [
|
|
|
"transformation_add_AL",
|
|
|
"ReachabilityGraph",
|
|
|
"",
|
|
@@ -1257,9 +1235,9 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
"Ready for command...",
|
|
|
# transformation_add_MANUAL * 6
|
|
|
] + [
|
|
|
- "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)?",
|
|
|
- "Name of Manual operation model?",
|
|
|
+ "Which metamodels do you want to use as source for the operation (empty string to finish)?",
|
|
|
+ "Which metamodels do you want to use as target for the operation (empty string to finish)?",
|
|
|
+ "Name of operation model?",
|
|
|
"Ready for command...",
|
|
|
] * 6 + [
|
|
|
# transformation_add_MT * 6
|
|
@@ -1276,19 +1254,18 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
" PW_Control",
|
|
|
" ReachabilityGraph",
|
|
|
]),
|
|
|
- "",
|
|
|
- "Which ones do you want to use as source (empty string to finish)?",
|
|
|
- "Which ones do you want to use as target (empty string to finish)?",
|
|
|
- "Name of new transformation?",
|
|
|
+ "Which metamodels do you want to use as source for the operation (empty string to finish)?",
|
|
|
+ "Which metamodels do you want to use as target for the operation (empty string to finish)?",
|
|
|
+ "Name of new operation?",
|
|
|
"Waiting for model constructors...",
|
|
|
"Ready for command...",
|
|
|
] * 6 + [
|
|
|
- # transformation_add_AL * 4
|
|
|
- ] + [ "Which metamodels do you want to use as source for the action code (empty string to finish)?",
|
|
|
- "Which metamodels do you want to use as target for the action code (empty string to finish)?",
|
|
|
- "Name of Action Language model?",
|
|
|
+ # transformation_add_AL * 2
|
|
|
+ ] + [ "Which metamodels do you want to use as source for the operation (empty string to finish)?",
|
|
|
+ "Which metamodels do you want to use as target for the operation (empty string to finish)?",
|
|
|
+ "Name of operation model?",
|
|
|
"Waiting for model constructors...",
|
|
|
- "Ready for command...", ] * 4 + [
|
|
|
+ "Ready for command...", ] * 2 + [
|
|
|
# model_list
|
|
|
model_list |
|
|
|
set([
|
|
@@ -1306,6 +1283,8 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
" revise_environment : ManualOperation",
|
|
|
" revise_query : ManualOperation",
|
|
|
" revise_architecture : ManualOperation",
|
|
|
+ " __merged_bfs : SimpleClassDiagrams",
|
|
|
+ " __merged_reachability : SimpleClassDiagrams",
|
|
|
" __merged_revise_req : SimpleClassDiagrams",
|
|
|
" __merged_All_RAM : SimpleClassDiagrams",
|
|
|
" __merged_revise_plant : SimpleClassDiagrams",
|
|
@@ -1313,8 +1292,6 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
" __merged_revise_environment : SimpleClassDiagrams",
|
|
|
" __merged_revise_query : SimpleClassDiagrams",
|
|
|
" __merged_revise_architecture : SimpleClassDiagrams",
|
|
|
- " pn_print : ActionLanguage",
|
|
|
- " epn_print : ActionLanguage",
|
|
|
" match : All_RAM",
|
|
|
" All_RAM : SimpleClassDiagrams",
|
|
|
" make_initial_models : All_RAM",
|
|
@@ -1332,42 +1309,42 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
"Which process model do you want to execute?",
|
|
|
"Model prefix to use?",
|
|
|
# Manual transformation revise_req
|
|
|
- "Please perform manual transformation \"revise_req\"",
|
|
|
+ "Please perform manual operation \"revise_req\"",
|
|
|
"Model loaded, ready for commands!",
|
|
|
"Use 'help' command for a list of possible commands",
|
|
|
"Please give your command.",
|
|
|
"Waiting for model constructors...",
|
|
|
"Please give your command.",
|
|
|
# Manual transformation revise_plant
|
|
|
- "Please perform manual transformation \"revise_plant\"",
|
|
|
+ "Please perform manual operation \"revise_plant\"",
|
|
|
"Model loaded, ready for commands!",
|
|
|
"Use 'help' command for a list of possible commands",
|
|
|
"Please give your command.",
|
|
|
"Waiting for model constructors...",
|
|
|
"Please give your command.",
|
|
|
# Manual transformation revise_environment
|
|
|
- "Please perform manual transformation \"revise_environment\"",
|
|
|
+ "Please perform manual operation \"revise_environment\"",
|
|
|
"Model loaded, ready for commands!",
|
|
|
"Use 'help' command for a list of possible commands",
|
|
|
"Please give your command.",
|
|
|
"Waiting for model constructors...",
|
|
|
"Please give your command.",
|
|
|
# Manual transformation revise_control
|
|
|
- "Please perform manual transformation \"revise_control\"",
|
|
|
+ "Please perform manual operation \"revise_control\"",
|
|
|
"Model loaded, ready for commands!",
|
|
|
"Use 'help' command for a list of possible commands",
|
|
|
"Please give your command.",
|
|
|
"Waiting for model constructors...",
|
|
|
"Please give your command.",
|
|
|
# Manual transformation revise_query
|
|
|
- "Please perform manual transformation \"revise_query\"",
|
|
|
+ "Please perform manual operation \"revise_query\"",
|
|
|
"Model loaded, ready for commands!",
|
|
|
"Use 'help' command for a list of possible commands",
|
|
|
"Please give your command.",
|
|
|
"Waiting for model constructors...",
|
|
|
"Please give your command.",
|
|
|
# Manual transformation revise_architecture
|
|
|
- "Please perform manual transformation \"revise_architecture\"",
|
|
|
+ "Please perform manual operation \"revise_architecture\"",
|
|
|
"Model loaded, ready for commands!",
|
|
|
"Use 'help' command for a list of possible commands",
|
|
|
"Please give your command.",
|
|
@@ -1378,35 +1355,35 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
"Found error path:",
|
|
|
None,
|
|
|
# Manual transformation revise_plant
|
|
|
- "Please perform manual transformation \"revise_plant\"",
|
|
|
+ "Please perform manual operation \"revise_plant\"",
|
|
|
"Model loaded, ready for commands!",
|
|
|
"Use 'help' command for a list of possible commands",
|
|
|
"Please give your command.",
|
|
|
"Waiting for model constructors...",
|
|
|
"Please give your command.",
|
|
|
# Manual transformation revise_environment
|
|
|
- "Please perform manual transformation \"revise_environment\"",
|
|
|
+ "Please perform manual operation \"revise_environment\"",
|
|
|
"Model loaded, ready for commands!",
|
|
|
"Use 'help' command for a list of possible commands",
|
|
|
"Please give your command.",
|
|
|
"Waiting for model constructors...",
|
|
|
"Please give your command.",
|
|
|
# Manual transformation revise_control
|
|
|
- "Please perform manual transformation \"revise_control\"",
|
|
|
+ "Please perform manual operation \"revise_control\"",
|
|
|
"Model loaded, ready for commands!",
|
|
|
"Use 'help' command for a list of possible commands",
|
|
|
"Please give your command.",
|
|
|
"Waiting for model constructors...",
|
|
|
"Please give your command.",
|
|
|
# Manual transformation revise_query
|
|
|
- "Please perform manual transformation \"revise_query\"",
|
|
|
+ "Please perform manual operation \"revise_query\"",
|
|
|
"Model loaded, ready for commands!",
|
|
|
"Use 'help' command for a list of possible commands",
|
|
|
"Please give your command.",
|
|
|
"Waiting for model constructors...",
|
|
|
"Please give your command.",
|
|
|
# Manual transformation revise_architecture
|
|
|
- "Please perform manual transformation \"revise_architecture\"",
|
|
|
+ "Please perform manual operation \"revise_architecture\"",
|
|
|
"Model loaded, ready for commands!",
|
|
|
"Use 'help' command for a list of possible commands",
|
|
|
"Please give your command.",
|