|
@@ -1554,25 +1554,23 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
"pn_design_to_runtime",
|
|
|
"my_pn",
|
|
|
"my_pn_runtime",
|
|
|
- "nice_list",
|
|
|
"instantiate", "PetriNets_Runtime/Place", "p1",
|
|
|
- "add_attr", "p1", "tokens", 1,
|
|
|
- "add_attr", "p1", "name", "p1",
|
|
|
+ "attr_add", "p1", "tokens", 1,
|
|
|
+ "attr_add", "p1", "name", "p1",
|
|
|
"instantiate", "PetriNets_Runtime/Place", "p2",
|
|
|
- "add_attr", "p2", "tokens", 2,
|
|
|
- "add_attr", "p2", "name", "p2",
|
|
|
+ "attr_add", "p2", "tokens", 2,
|
|
|
+ "attr_add", "p2", "name", "p2",
|
|
|
"instantiate", "PetriNets_Runtime/Place", "p3",
|
|
|
- "add_attr", "p3", "tokens", 3,
|
|
|
- "add_attr", "p3", "name", "p3",
|
|
|
+ "attr_add", "p3", "tokens", 3,
|
|
|
+ "attr_add", "p3", "name", "p3",
|
|
|
"instantiate", "PetriNets_Runtime/Transition", "t1",
|
|
|
- "add_attr", "t1", "name", "t1",
|
|
|
+ "attr_add", "t1", "name", "t1",
|
|
|
"instantiate", "PetriNets_Runtime/P2T", "p2t1", "p1", "t1",
|
|
|
- "add_attr", "p2t1", "weight", 1,
|
|
|
+ "attr_add", "p2t1", "weight", 1,
|
|
|
"instantiate", "PetriNets_Runtime/P2T", "p2t2", "p2", "t1",
|
|
|
- "add_attr", "p2t2", "weight", 1,
|
|
|
+ "attr_add", "p2t2", "weight", 1,
|
|
|
"instantiate", "PetriNets_Runtime/T2P", "t2p", "t1", "p3",
|
|
|
- "add_attr", "t2p", "weight", 2,
|
|
|
- "nice_list",
|
|
|
+ "attr_add", "t2p", "weight", 2,
|
|
|
"exit",
|
|
|
"transformation_execute",
|
|
|
"pn_step",
|
|
@@ -1767,6 +1765,97 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
"Model loaded, ready for commands!",
|
|
|
"Use 'help' command for a list of possible commands",
|
|
|
"Please give your command.",
|
|
|
+ # instantiate p1
|
|
|
+ "Type to instantiate?",
|
|
|
+ "Name of new element?",
|
|
|
+ "Instantiation successful!",
|
|
|
+ "Please give your command.",
|
|
|
+ "Which model 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 attribute do you wish to assign?",
|
|
|
+ "Value of attribute?",
|
|
|
+ "Added attribute!",
|
|
|
+ "Please give your command.",
|
|
|
+ # instantiate p2
|
|
|
+ "Type to instantiate?",
|
|
|
+ "Name of new element?",
|
|
|
+ "Instantiation successful!",
|
|
|
+ "Please give your command.",
|
|
|
+ "Which model 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 attribute do you wish to assign?",
|
|
|
+ "Value of attribute?",
|
|
|
+ "Added attribute!",
|
|
|
+ "Please give your command.",
|
|
|
+ # instantiate p3
|
|
|
+ "Type to instantiate?",
|
|
|
+ "Name of new element?",
|
|
|
+ "Instantiation successful!",
|
|
|
+ "Please give your command.",
|
|
|
+ "Which model 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 attribute do you wish to assign?",
|
|
|
+ "Value of attribute?",
|
|
|
+ "Added attribute!",
|
|
|
+ "Please give your command.",
|
|
|
+ # instantiate t1
|
|
|
+ "Type to instantiate?",
|
|
|
+ "Name of new element?",
|
|
|
+ "Instantiation successful!",
|
|
|
+ "Please give your command.",
|
|
|
+ "Which model do you want to assign an attribute to?",
|
|
|
+ "Which attribute do you wish to assign?",
|
|
|
+ "Value of attribute?",
|
|
|
+ "Added attribute!",
|
|
|
+ "Please give your command.",
|
|
|
+ # instantiate p2t1
|
|
|
+ "Type to instantiate?",
|
|
|
+ "Name of new element?",
|
|
|
+ "Source name?",
|
|
|
+ "Destination name?",
|
|
|
+ "Instantiation successful!",
|
|
|
+ "Please give your command.",
|
|
|
+ "Which model do you want to assign an attribute to?",
|
|
|
+ "Which attribute do you wish to assign?",
|
|
|
+ "Value of attribute?",
|
|
|
+ "Added attribute!",
|
|
|
+ "Please give your command.",
|
|
|
+ # instantiate p2t2
|
|
|
+ "Type to instantiate?",
|
|
|
+ "Name of new element?",
|
|
|
+ "Source name?",
|
|
|
+ "Destination name?",
|
|
|
+ "Instantiation successful!",
|
|
|
+ "Please give your command.",
|
|
|
+ "Which model do you want to assign an attribute to?",
|
|
|
+ "Which attribute do you wish to assign?",
|
|
|
+ "Value of attribute?",
|
|
|
+ "Added attribute!",
|
|
|
+ "Please give your command.",
|
|
|
+ # instantiate t2p1
|
|
|
+ "Type to instantiate?",
|
|
|
+ "Name of new element?",
|
|
|
+ "Source name?",
|
|
|
+ "Destination name?",
|
|
|
+ "Instantiation successful!",
|
|
|
+ "Please give your command.",
|
|
|
+ "Which model do you want to assign an attribute to?",
|
|
|
+ "Which attribute do you wish to assign?",
|
|
|
+ "Value of attribute?",
|
|
|
+ "Added attribute!",
|
|
|
+ "Please give your command.",
|
|
|
"Ready for command...",
|
|
|
# transformation_execute (pn_step)
|
|
|
"Which transformation do you want to execute?",
|