|
@@ -7,6 +7,7 @@ model_list = set([" SimpleClassDiagrams : SimpleClassDiagrams",
|
|
|
" ManualOperation : SimpleClassDiagrams",
|
|
|
" ActionLanguage : SimpleClassDiagrams",
|
|
|
" ProcessModel : SimpleClassDiagrams",
|
|
|
+ " Tracability : SimpleClassDiagrams",
|
|
|
" core : CoreFormalism"])
|
|
|
|
|
|
model_full_list = set([" 221 root admin SimpleClassDiagrams : SimpleClassDiagrams",
|
|
@@ -14,12 +15,14 @@ model_full_list = set([" 221 root admin SimpleClassDiagrams : SimpleClassDia
|
|
|
" 221 root admin ActionLanguage : SimpleClassDiagrams",
|
|
|
" 221 root admin ManualOperation : SimpleClassDiagrams",
|
|
|
" 221 root admin ProcessModel : SimpleClassDiagrams",
|
|
|
+ " 221 root admin Tracability : SimpleClassDiagrams",
|
|
|
" 200 root admin core : CoreFormalism"])
|
|
|
|
|
|
all_files = [ "core/mini_modify.alc",
|
|
|
"core/core_formalism.mvc",
|
|
|
"core/core_algorithm.alc",
|
|
|
"core/pm.mvc",
|
|
|
+ "core/tracability.mvc",
|
|
|
"primitives.alc",
|
|
|
"object_operations.alc",
|
|
|
"conformance_scd.alc",
|
|
@@ -315,10 +318,9 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
"Supported metamodels:",
|
|
|
set([" PetriNets",
|
|
|
]),
|
|
|
- "",
|
|
|
- "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...",
|
|
|
set(model_full_list) |
|
|
@@ -385,10 +387,9 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
"Supported metamodels:",
|
|
|
set([" PetriNets",
|
|
|
]),
|
|
|
- "",
|
|
|
- "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...",
|
|
|
set([" 200 root nobody [ModelTransformation] PetriNets_Print : PetriNets_RAM"
|
|
@@ -462,22 +463,20 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
"Supported metamodels:",
|
|
|
set([" PetriNets",
|
|
|
]),
|
|
|
- "",
|
|
|
- "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...",
|
|
|
set([" 200 root nobody [ModelTransformation] PetriNets_Print : PetriNets_RAM"
|
|
|
]),
|
|
|
"Ready for command...",
|
|
|
"Which transformation do you want to execute?",
|
|
|
- "Which model to bind for source element PetriNets",
|
|
|
+ "Which model to bind for source type PetriNets",
|
|
|
set(['"p1" --> 1',
|
|
|
'"p2" --> 2',
|
|
|
'"p3" --> 3',
|
|
|
]),
|
|
|
- "Transformation executed with result: True",
|
|
|
"Ready for command...",
|
|
|
]))
|
|
|
|
|
@@ -687,10 +686,9 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
set([" PetriNets",
|
|
|
" PetriNets_Runtime",
|
|
|
]),
|
|
|
- "",
|
|
|
- "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...",
|
|
|
# transformation_add_MT
|
|
@@ -699,10 +697,9 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
set([" PetriNets",
|
|
|
" PetriNets_Runtime",
|
|
|
]),
|
|
|
- "",
|
|
|
- "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...",
|
|
|
# transformation_add_MT
|
|
@@ -711,10 +708,9 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
set([" PetriNets",
|
|
|
" PetriNets_Runtime",
|
|
|
]),
|
|
|
- "",
|
|
|
- "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...",
|
|
|
# transformation_add_MT
|
|
@@ -723,10 +719,9 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
set([" PetriNets",
|
|
|
" PetriNets_Runtime",
|
|
|
]),
|
|
|
- "",
|
|
|
- "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...",
|
|
|
# model_list
|
|
@@ -750,39 +745,34 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
"Ready for command...",
|
|
|
# transformation_execute (pn_print)
|
|
|
"Which transformation do you want to execute?",
|
|
|
- "Which model to bind for source element PetriNets",
|
|
|
+ "Which model to bind for source type PetriNets",
|
|
|
set(['"p1" --> 1',
|
|
|
'"p2" --> 2',
|
|
|
'"p3" --> 3',
|
|
|
]),
|
|
|
- "Transformation executed with result: True",
|
|
|
"Ready for command...",
|
|
|
# transformation_execute (pn_design_to_runtime)
|
|
|
"Which transformation do you want to execute?",
|
|
|
- "Which model to bind for source element PetriNets",
|
|
|
- "Which model to create for target element PetriNets_Runtime",
|
|
|
- "Transformation executed with result: True",
|
|
|
+ "Which model to bind for source type PetriNets",
|
|
|
+ "Which model to create for target type PetriNets_Runtime",
|
|
|
"Ready for command...",
|
|
|
# transformation_execute (pn_step)
|
|
|
"Which transformation do you want to execute?",
|
|
|
- "Which model to bind for source element PetriNets_Runtime",
|
|
|
- "Which model to create for target element PetriNets_Runtime",
|
|
|
- "Transformation executed with result: True",
|
|
|
+ "Which model to bind for source type PetriNets_Runtime",
|
|
|
+ "Which model to create for target type PetriNets_Runtime",
|
|
|
"Ready for command...",
|
|
|
# transformation_execute (pn_runtime_to_design)
|
|
|
"Which transformation do you want to execute?",
|
|
|
- "Which model to bind for source element PetriNets_Runtime",
|
|
|
- "Which model to create for target element PetriNets",
|
|
|
- "Transformation executed with result: True",
|
|
|
+ "Which model to bind for source type PetriNets_Runtime",
|
|
|
+ "Which model to create for target type PetriNets",
|
|
|
"Ready for command...",
|
|
|
# transformation_execute (pn_print)
|
|
|
"Which transformation do you want to execute?",
|
|
|
- "Which model to bind for source element PetriNets",
|
|
|
+ "Which model to bind for source type PetriNets",
|
|
|
set(['"p1" --> 0',
|
|
|
'"p2" --> 1',
|
|
|
'"p3" --> 5',
|
|
|
]),
|
|
|
- "Transformation executed with result: True",
|
|
|
"Ready for command...",
|
|
|
]))
|
|
|
|
|
@@ -792,23 +782,20 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
return [ \
|
|
|
# transformation_execute (pn_step)
|
|
|
"Which transformation do you want to execute?",
|
|
|
- "Which model to bind for source element PetriNets_Runtime",
|
|
|
- "Which model to create for target element PetriNets_Runtime",
|
|
|
- "Transformation executed with result: True",
|
|
|
+ "Which model to bind for source type PetriNets_Runtime",
|
|
|
+ "Which model to create for target type PetriNets_Runtime",
|
|
|
"Ready for command...",
|
|
|
# transformation_execute (pn_runtime_to_design)
|
|
|
"Which transformation do you want to execute?",
|
|
|
- "Which model to bind for source element PetriNets_Runtime",
|
|
|
- "Which model to create for target element PetriNets",
|
|
|
- "Transformation executed with result: True",
|
|
|
+ "Which model to bind for source type PetriNets_Runtime",
|
|
|
+ "Which model to create for target type PetriNets",
|
|
|
"Ready for command...",
|
|
|
# transformation_execute (pn_print)
|
|
|
"Which transformation do you want to execute?",
|
|
|
- "Which model to bind for source element PetriNets",
|
|
|
+ "Which model to bind for source type PetriNets",
|
|
|
None,
|
|
|
None,
|
|
|
None,
|
|
|
- "Transformation executed with result: True",
|
|
|
"Ready for command...",
|
|
|
]
|
|
|
|
|
@@ -1005,10 +992,9 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
set([" PetriNets",
|
|
|
" PetriNets_Runtime",
|
|
|
]),
|
|
|
- "",
|
|
|
- "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...",
|
|
|
# transformation_add_MT
|
|
@@ -1017,10 +1003,9 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
set([" PetriNets",
|
|
|
" PetriNets_Runtime",
|
|
|
]),
|
|
|
- "",
|
|
|
- "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...",
|
|
|
# transformation_add_MT
|
|
@@ -1029,10 +1014,9 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
set([" PetriNets",
|
|
|
" PetriNets_Runtime",
|
|
|
]),
|
|
|
- "",
|
|
|
- "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...",
|
|
|
# transformation_add_MT
|
|
@@ -1041,10 +1025,9 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
set([" PetriNets",
|
|
|
" PetriNets_Runtime",
|
|
|
]),
|
|
|
- "",
|
|
|
- "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...",
|
|
|
# model_list
|
|
@@ -1068,18 +1051,16 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
"Ready for command...",
|
|
|
# transformation_execute (pn_print)
|
|
|
"Which transformation do you want to execute?",
|
|
|
- "Which model to bind for source element PetriNets",
|
|
|
+ "Which model to bind for source type PetriNets",
|
|
|
set(['"lock_available" --> 1',
|
|
|
'"critical_section_1" --> 0',
|
|
|
'"critical_section_2" --> 0',
|
|
|
]),
|
|
|
- "Transformation executed with result: True",
|
|
|
"Ready for command...",
|
|
|
# transformation_execute (pn_design_to_runtime)
|
|
|
"Which transformation do you want to execute?",
|
|
|
- "Which model to bind for source element PetriNets",
|
|
|
- "Which model to create for target element PetriNets_Runtime",
|
|
|
- "Transformation executed with result: True",
|
|
|
+ "Which model to bind for source type PetriNets",
|
|
|
+ "Which model to create for target type PetriNets_Runtime",
|
|
|
"Ready for command...",
|
|
|
] + \
|
|
|
step_and_print() * 10 +
|
|
@@ -1276,10 +1257,9 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
set([" PetriNets",
|
|
|
" PetriNets_Runtime",
|
|
|
]),
|
|
|
- "",
|
|
|
- "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...",
|
|
|
# transformation_add_MT
|
|
@@ -1288,16 +1268,15 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
set([" PetriNets",
|
|
|
" PetriNets_Runtime",
|
|
|
]),
|
|
|
- "",
|
|
|
- "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...",
|
|
|
# transformation_add_AL
|
|
|
- "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...",
|
|
|
# transformation_add_MT
|
|
@@ -1306,10 +1285,9 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
set([" PetriNets",
|
|
|
" PetriNets_Runtime",
|
|
|
]),
|
|
|
- "",
|
|
|
- "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...",
|
|
|
# model_list
|
|
@@ -1321,6 +1299,7 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
" pn_design_to_runtime : PetriNets_RAM",
|
|
|
" pn_runtime_to_design : PetriNets_RAM",
|
|
|
" pn_step : ActionLanguage",
|
|
|
+ " __merged_pn_step : SimpleClassDiagrams",
|
|
|
" __merged_PetriNets_RAM : SimpleClassDiagrams",
|
|
|
" PetriNets_RAM : SimpleClassDiagrams",
|
|
|
" my_pn : PetriNets",]),
|
|
@@ -1333,38 +1312,34 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
"Ready for command...",
|
|
|
# transformation_execute (pn_print)
|
|
|
"Which transformation do you want to execute?",
|
|
|
- "Which model to bind for source element PetriNets",
|
|
|
+ "Which model to bind for source type PetriNets",
|
|
|
set(['"p1" --> 1',
|
|
|
'"p2" --> 2',
|
|
|
'"p3" --> 3',
|
|
|
]),
|
|
|
- "Transformation executed with result: True",
|
|
|
"Ready for command...",
|
|
|
# transformation_execute (pn_design_to_runtime)
|
|
|
"Which transformation do you want to execute?",
|
|
|
- "Which model to bind for source element PetriNets",
|
|
|
- "Which model to create for target element PetriNets_Runtime",
|
|
|
- "Transformation executed with result: True",
|
|
|
+ "Which model to bind for source type PetriNets",
|
|
|
+ "Which model to create for target type PetriNets_Runtime",
|
|
|
"Ready for command...",
|
|
|
# transformation_execute (pn_step)
|
|
|
"Which transformation do you want to execute?",
|
|
|
- "Which model to bind for source element PetriNets_Runtime",
|
|
|
- "Which model to create for target element PetriNets_Runtime",
|
|
|
+ "Which model to bind for source type PetriNets_Runtime",
|
|
|
+ "Which model to create for target type PetriNets_Runtime",
|
|
|
"Ready for command...",
|
|
|
# transformation_execute (pn_runtime_to_design)
|
|
|
"Which transformation do you want to execute?",
|
|
|
- "Which model to bind for source element PetriNets_Runtime",
|
|
|
- "Which model to create for target element PetriNets",
|
|
|
- "Transformation executed with result: True",
|
|
|
+ "Which model to bind for source type PetriNets_Runtime",
|
|
|
+ "Which model to create for target type PetriNets",
|
|
|
"Ready for command...",
|
|
|
# transformation_execute (pn_print)
|
|
|
"Which transformation do you want to execute?",
|
|
|
- "Which model to bind for source element PetriNets",
|
|
|
+ "Which model to bind for source type PetriNets",
|
|
|
set(['"p1" --> 0',
|
|
|
'"p2" --> 1',
|
|
|
'"p3" --> 5',
|
|
|
]),
|
|
|
- "Transformation executed with result: True",
|
|
|
"Ready for command...",
|
|
|
]))
|
|
|
|
|
@@ -1573,9 +1548,9 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
"Where do you want to store the RAMified metamodel?",
|
|
|
"Ready for command...",
|
|
|
# transformation_add_MANUAL
|
|
|
- "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...",
|
|
|
# transformation_add_MT
|
|
|
"RAMified metamodel to use?",
|
|
@@ -1583,10 +1558,9 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
set([" PetriNets",
|
|
|
" PetriNets_Runtime",
|
|
|
]),
|
|
|
- "",
|
|
|
- "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...",
|
|
|
# transformation_add_MT
|
|
@@ -1595,10 +1569,9 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
set([" PetriNets",
|
|
|
" PetriNets_Runtime",
|
|
|
]),
|
|
|
- "",
|
|
|
- "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...",
|
|
|
# transformation_add_MT
|
|
@@ -1607,10 +1580,9 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
set([" PetriNets",
|
|
|
" PetriNets_Runtime",
|
|
|
]),
|
|
|
- "",
|
|
|
- "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...",
|
|
|
# model_list
|
|
@@ -1635,17 +1607,17 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
"Ready for command...",
|
|
|
# transformation_execute (pn_print)
|
|
|
"Which transformation do you want to execute?",
|
|
|
- "Which model to bind for source element PetriNets",
|
|
|
+ "Which model to bind for source type PetriNets",
|
|
|
set(['"p1" --> 1',
|
|
|
'"p2" --> 2',
|
|
|
'"p3" --> 3',
|
|
|
]),
|
|
|
- "Transformation executed with result: True",
|
|
|
"Ready for command...",
|
|
|
# transformation_execute (pn_design_to_runtime)
|
|
|
"Which transformation do you want to execute?",
|
|
|
- "Which model to bind for source element PetriNets",
|
|
|
- "Which model to create for target element PetriNets_Runtime",
|
|
|
+ "Which model to bind for source type PetriNets",
|
|
|
+ "Which model to create for target type PetriNets_Runtime",
|
|
|
+ "Please perform manual operation \"pn_design_to_runtime\"",
|
|
|
"Model loaded, ready for commands!",
|
|
|
"Use 'help' command for a list of possible commands",
|
|
|
"Please give your command.",
|
|
@@ -1654,12 +1626,12 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
"Name of new element?",
|
|
|
"Instantiation successful!",
|
|
|
"Please give your command.",
|
|
|
- "Which model do you want to assign an attribute to?",
|
|
|
+ "Which element do you want to assign an attribute to?",
|
|
|
"Which attribute do you wish to assign?",
|
|
|
"Value of attribute?",
|
|
|
"Added attribute!",
|
|
|
"Please give your command.",
|
|
|
- "Which model do you want to assign an attribute to?",
|
|
|
+ "Which element do you want to assign an attribute to?",
|
|
|
"Which attribute do you wish to assign?",
|
|
|
"Value of attribute?",
|
|
|
"Added attribute!",
|
|
@@ -1669,12 +1641,12 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
"Name of new element?",
|
|
|
"Instantiation successful!",
|
|
|
"Please give your command.",
|
|
|
- "Which model do you want to assign an attribute to?",
|
|
|
+ "Which element do you want to assign an attribute to?",
|
|
|
"Which attribute do you wish to assign?",
|
|
|
"Value of attribute?",
|
|
|
"Added attribute!",
|
|
|
"Please give your command.",
|
|
|
- "Which model do you want to assign an attribute to?",
|
|
|
+ "Which element do you want to assign an attribute to?",
|
|
|
"Which attribute do you wish to assign?",
|
|
|
"Value of attribute?",
|
|
|
"Added attribute!",
|
|
@@ -1684,12 +1656,12 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
"Name of new element?",
|
|
|
"Instantiation successful!",
|
|
|
"Please give your command.",
|
|
|
- "Which model do you want to assign an attribute to?",
|
|
|
+ "Which element do you want to assign an attribute to?",
|
|
|
"Which attribute do you wish to assign?",
|
|
|
"Value of attribute?",
|
|
|
"Added attribute!",
|
|
|
"Please give your command.",
|
|
|
- "Which model do you want to assign an attribute to?",
|
|
|
+ "Which element do you want to assign an attribute to?",
|
|
|
"Which attribute do you wish to assign?",
|
|
|
"Value of attribute?",
|
|
|
"Added attribute!",
|
|
@@ -1699,7 +1671,7 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
"Name of new element?",
|
|
|
"Instantiation successful!",
|
|
|
"Please give your command.",
|
|
|
- "Which model do you want to assign an attribute to?",
|
|
|
+ "Which element do you want to assign an attribute to?",
|
|
|
"Which attribute do you wish to assign?",
|
|
|
"Value of attribute?",
|
|
|
"Added attribute!",
|
|
@@ -1711,7 +1683,7 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
"Destination name?",
|
|
|
"Instantiation successful!",
|
|
|
"Please give your command.",
|
|
|
- "Which model do you want to assign an attribute to?",
|
|
|
+ "Which element do you want to assign an attribute to?",
|
|
|
"Which attribute do you wish to assign?",
|
|
|
"Value of attribute?",
|
|
|
"Added attribute!",
|
|
@@ -1723,7 +1695,7 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
"Destination name?",
|
|
|
"Instantiation successful!",
|
|
|
"Please give your command.",
|
|
|
- "Which model do you want to assign an attribute to?",
|
|
|
+ "Which element do you want to assign an attribute to?",
|
|
|
"Which attribute do you wish to assign?",
|
|
|
"Value of attribute?",
|
|
|
"Added attribute!",
|
|
@@ -1735,7 +1707,7 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
"Destination name?",
|
|
|
"Instantiation successful!",
|
|
|
"Please give your command.",
|
|
|
- "Which model do you want to assign an attribute to?",
|
|
|
+ "Which element do you want to assign an attribute to?",
|
|
|
"Which attribute do you wish to assign?",
|
|
|
"Value of attribute?",
|
|
|
"Added attribute!",
|
|
@@ -1743,24 +1715,21 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
"Ready for command...",
|
|
|
# transformation_execute (pn_step)
|
|
|
"Which transformation do you want to execute?",
|
|
|
- "Which model to bind for source element PetriNets_Runtime",
|
|
|
- "Which model to create for target element PetriNets_Runtime",
|
|
|
- "Transformation executed with result: True",
|
|
|
+ "Which model to bind for source type PetriNets_Runtime",
|
|
|
+ "Which model to create for target type PetriNets_Runtime",
|
|
|
"Ready for command...",
|
|
|
# transformation_execute (pn_runtime_to_design)
|
|
|
"Which transformation do you want to execute?",
|
|
|
- "Which model to bind for source element PetriNets_Runtime",
|
|
|
- "Which model to create for target element PetriNets",
|
|
|
- "Transformation executed with result: True",
|
|
|
+ "Which model to bind for source type PetriNets_Runtime",
|
|
|
+ "Which model to create for target type PetriNets",
|
|
|
"Ready for command...",
|
|
|
# transformation_execute (pn_print)
|
|
|
"Which transformation do you want to execute?",
|
|
|
- "Which model to bind for source element PetriNets",
|
|
|
+ "Which model to bind for source type PetriNets",
|
|
|
set(['"p1" --> 0',
|
|
|
'"p2" --> 1',
|
|
|
'"p3" --> 5',
|
|
|
]),
|
|
|
- "Transformation executed with result: True",
|
|
|
"Ready for command...",
|
|
|
]))
|
|
|
|
|
@@ -1889,31 +1858,29 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
"RAMified metamodel to use?",
|
|
|
"Supported metamodels:",
|
|
|
set([" PetriNet",]),
|
|
|
- "",
|
|
|
- "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...",
|
|
|
# transformation_add_MANUAL
|
|
|
- "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...",
|
|
|
# transformation_add_AL
|
|
|
- "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...",
|
|
|
# transformation_add_MT
|
|
|
"RAMified metamodel to use?",
|
|
|
"Supported metamodels:",
|
|
|
set([" 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...",
|
|
|
# model_add
|
|
@@ -1938,12 +1905,13 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
" __merged_PetriNet_RAM : SimpleClassDiagrams",
|
|
|
" __merged_ReachabilityGraph_RAM : SimpleClassDiagrams",
|
|
|
" __merged_refine_PN : SimpleClassDiagrams",
|
|
|
+ " __merged_reachability : SimpleClassDiagrams",
|
|
|
]),
|
|
|
"Ready for command...",
|
|
|
# process_execute
|
|
|
"Which process model do you want to execute?",
|
|
|
"Model prefix to use?",
|
|
|
- "Please perform manual transformation \"refine_PN\"",
|
|
|
+ "Please perform manual operation \"refine_PN\"",
|
|
|
"Model loaded, ready for commands!",
|
|
|
"Use 'help' command for a list of possible commands",
|
|
|
"Please give your command.",
|
|
@@ -1952,12 +1920,12 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
"Name of new element?",
|
|
|
"Instantiation successful!",
|
|
|
"Please give your command.",
|
|
|
- "Which model do you want to assign an attribute to?",
|
|
|
+ "Which element do you want to assign an attribute to?",
|
|
|
"Which attribute do you wish to assign?",
|
|
|
"Value of attribute?",
|
|
|
"Added attribute!",
|
|
|
"Please give your command.",
|
|
|
- "Which model do you want to assign an attribute to?",
|
|
|
+ "Which element do you want to assign an attribute to?",
|
|
|
"Which attribute do you wish to assign?",
|
|
|
"Value of attribute?",
|
|
|
"Added attribute!",
|
|
@@ -1967,7 +1935,7 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
"Name of new element?",
|
|
|
"Instantiation successful!",
|
|
|
"Please give your command.",
|
|
|
- "Which model do you want to assign an attribute to?",
|
|
|
+ "Which element do you want to assign an attribute to?",
|
|
|
"Which attribute do you wish to assign?",
|
|
|
"Value of attribute?",
|
|
|
"Added attribute!",
|
|
@@ -1979,7 +1947,7 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
"Destination name?",
|
|
|
"Instantiation successful!",
|
|
|
"Please give your command.",
|
|
|
- "Which model do you want to assign an attribute to?",
|
|
|
+ "Which element do you want to assign an attribute to?",
|
|
|
"Which attribute do you wish to assign?",
|
|
|
"Value of attribute?",
|
|
|
"Added attribute!",
|
|
@@ -2007,6 +1975,140 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
" __merged_PetriNet_RAM : SimpleClassDiagrams",
|
|
|
" __merged_ReachabilityGraph_RAM : SimpleClassDiagrams",
|
|
|
" __merged_refine_PN : SimpleClassDiagrams",
|
|
|
+ " __merged_reachability : SimpleClassDiagrams",
|
|
|
]),
|
|
|
"Ready for command...",
|
|
|
]))
|
|
|
+
|
|
|
+ def test_render(self):
|
|
|
+ self.assertTrue(run_file(all_files,
|
|
|
+ [ "root", "root", "root",
|
|
|
+ "model_add",
|
|
|
+ "SimpleClassDiagrams",
|
|
|
+ "CausalBlockDiagrams",
|
|
|
+ ] + get_model_constructor(open("integration/code/cbd_design.mvc", "r").read()) + [
|
|
|
+ "model_add",
|
|
|
+ "SimpleClassDiagrams",
|
|
|
+ "MM_rendered_graphical",
|
|
|
+ ] + get_model_constructor(open("models/MM_rendered_graphical.mvc", "r").read()) + [
|
|
|
+ "model_add",
|
|
|
+ "CausalBlockDiagrams",
|
|
|
+ "my_CBD",
|
|
|
+ ] + get_model_constructor(open("integration/code/my_cbd.mvc", "r").read()) + [
|
|
|
+ "model_list",
|
|
|
+ "transformation_add_MT_language",
|
|
|
+ "CausalBlockDiagrams",
|
|
|
+ "MM_rendered_graphical",
|
|
|
+ "",
|
|
|
+ "CBD_RAM",
|
|
|
+ "model_modify",
|
|
|
+ "__merged_CBD_RAM",
|
|
|
+ "instantiate",
|
|
|
+ "Association",
|
|
|
+ "TracabilityLink",
|
|
|
+ "CausalBlockDiagrams/Block",
|
|
|
+ "MM_rendered_graphical/Group",
|
|
|
+ "exit",
|
|
|
+ "transformation_RAMify",
|
|
|
+ "__merged_CBD_RAM",
|
|
|
+ "CBD_RAM",
|
|
|
+ "transformation_add_MT",
|
|
|
+ "CBD_RAM",
|
|
|
+ "CausalBlockDiagrams",
|
|
|
+ "MM_rendered_graphical",
|
|
|
+ "",
|
|
|
+ "MM_rendered_graphical",
|
|
|
+ "",
|
|
|
+ "render_graphical_CBD",
|
|
|
+ ] + get_model_constructor(open("models/CBD_mapper.mvc", "r").read()) + [
|
|
|
+ "model_list",
|
|
|
+ "model_render",
|
|
|
+ "my_CBD",
|
|
|
+ "render_graphical_CBD",
|
|
|
+ ],
|
|
|
+ [ # bootup phase
|
|
|
+ "Desired username for admin user?",
|
|
|
+ "Desired password for admin user?",
|
|
|
+ "Please repeat the password",
|
|
|
+ "Passwords match!",
|
|
|
+ "Welcome to the Model Management Interface v2.0!",
|
|
|
+ "Use the 'help' command for a list of possible commands",
|
|
|
+ "Ready for command...",
|
|
|
+ # model_add
|
|
|
+ "Creating new model!",
|
|
|
+ "Model type?",
|
|
|
+ "Model name?",
|
|
|
+ "Waiting for model constructors...",
|
|
|
+ "Model upload success!",
|
|
|
+ "Ready for command...",
|
|
|
+ # model_add
|
|
|
+ "Creating new model!",
|
|
|
+ "Model type?",
|
|
|
+ "Model name?",
|
|
|
+ "Waiting for model constructors...",
|
|
|
+ "Model upload success!",
|
|
|
+ "Ready for command...",
|
|
|
+ # model_add
|
|
|
+ "Creating new model!",
|
|
|
+ "Model type?",
|
|
|
+ "Model name?",
|
|
|
+ "Waiting for model constructors...",
|
|
|
+ "Model upload success!",
|
|
|
+ "Ready for command...",
|
|
|
+ # model_list
|
|
|
+ set(model_list) |
|
|
|
+ set([
|
|
|
+ " CausalBlockDiagrams : SimpleClassDiagrams",
|
|
|
+ " MM_rendered_graphical : SimpleClassDiagrams",
|
|
|
+ " my_CBD : CausalBlockDiagrams",
|
|
|
+ ]),
|
|
|
+ "Ready for command...",
|
|
|
+ # transformation_add_MT_language
|
|
|
+ "Formalisms to include (terminate with empty string)?",
|
|
|
+ "Name of the RAMified transformation metamodel?",
|
|
|
+ "Ready for command...",
|
|
|
+ # model_modify
|
|
|
+ "Which model do you want to modify?",
|
|
|
+ "Model loaded, ready for commands!",
|
|
|
+ "Use 'help' command for a list of possible commands",
|
|
|
+ "Please give your command.",
|
|
|
+ # instantiate
|
|
|
+ "Type to instantiate?",
|
|
|
+ "Name of new element?",
|
|
|
+ "Source name?",
|
|
|
+ "Destination name?",
|
|
|
+ "Instantiation successful!",
|
|
|
+ "Please give your command.",
|
|
|
+ "Ready for command...",
|
|
|
+ # transformation_RAMify
|
|
|
+ "Which metamodel do you want to RAMify?",
|
|
|
+ "Where do you want to store the RAMified metamodel?",
|
|
|
+ "Ready for command...",
|
|
|
+ # transformation_add_MT
|
|
|
+ "RAMified metamodel to use?",
|
|
|
+ "Supported metamodels:",
|
|
|
+ set([" CausalBlockDiagrams",
|
|
|
+ " MM_rendered_graphical",
|
|
|
+ ]),
|
|
|
+ "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...",
|
|
|
+ # model_list
|
|
|
+ set(model_list) |
|
|
|
+ set([
|
|
|
+ " CausalBlockDiagrams : SimpleClassDiagrams",
|
|
|
+ " MM_rendered_graphical : SimpleClassDiagrams",
|
|
|
+ " CBD_RAM : SimpleClassDiagrams",
|
|
|
+ " my_CBD : CausalBlockDiagrams",
|
|
|
+ " render_graphical_CBD : CBD_RAM",
|
|
|
+ " __merged_CBD_RAM : SimpleClassDiagrams",
|
|
|
+ ]),
|
|
|
+ "Ready for command...",
|
|
|
+ # model_render
|
|
|
+ "Model to render?",
|
|
|
+ "Mapper to use?",
|
|
|
+ "Mapping success",
|
|
|
+ None,
|
|
|
+ ]))
|