|
@@ -321,7 +321,8 @@ Element function main():
|
|
|
output(" delete -- Delete a previously made model")
|
|
|
output(" list -- Show a list of all stored models")
|
|
|
output(" upload -- Upload a model using the model constructor commands")
|
|
|
- output(" ramify -- RAMify a previously made model")
|
|
|
+ output(" ramify -- RAMify existing metamodels to generate a language for transformations")
|
|
|
+ output(" transform -- Execute a previously defined model transformation")
|
|
|
output(" help -- Show a list of possible commands")
|
|
|
elif (command == "new"):
|
|
|
output("Metamodel to instantiate?")
|
|
@@ -385,15 +386,26 @@ Element function main():
|
|
|
output("Back in model manager!")
|
|
|
elif (command == "ramify"):
|
|
|
Element result
|
|
|
- output("Which model do you want to RAMify?")
|
|
|
+ String old_name
|
|
|
+ output("Name of the new RAMified metamodel")
|
|
|
name = input()
|
|
|
if (dict_in(root, name)):
|
|
|
- my_model = root[name]
|
|
|
- result = ramify(my_model)
|
|
|
- dict_add(root, name + "_SCHEDULE", result)
|
|
|
- output("success")
|
|
|
+ output("Already exists; aborting")
|
|
|
else:
|
|
|
- output("Model not found; aborting")
|
|
|
+ output("Source language?")
|
|
|
+ String source
|
|
|
+ String target
|
|
|
+ source = input()
|
|
|
+ if (dict_in(root, source)):
|
|
|
+ output("Target language?")
|
|
|
+ target = input()
|
|
|
+ if (dict_in(root, target)):
|
|
|
+ result = create_transformation_language(root, source, target)
|
|
|
+ dict_add(root, name, result)
|
|
|
+ else:
|
|
|
+ output("Unknown target language; aborting")
|
|
|
+ else:
|
|
|
+ output("Unknown source language; aborting")
|
|
|
elif (command == "transform"):
|
|
|
Element result
|
|
|
String schedule
|