|
@@ -101,7 +101,7 @@ Element function get_full_model(model_id : String, metamodel_id : String):
|
|
|
dict_add(m, "model", import_node(read_attribute(core, model_id, "location")))
|
|
|
|
|
|
// TODO for now this is restricted to the fixed semantics
|
|
|
- // dict_add(m, "semantics", set_pop(allAssociationDestinations(core, choice, "semantics")))
|
|
|
+ // dict_add(m, "semantics", anAssociationDestination(core, choice, "semantics"))
|
|
|
dict_add(m, "semantics", get_entry_id("models/conformance_mv"))
|
|
|
|
|
|
if (metamodel_id == model_id):
|
|
@@ -144,7 +144,7 @@ Integer function get_relation_to_model(user_id : String, model_id : String):
|
|
|
return 0!
|
|
|
else:
|
|
|
String group_id
|
|
|
- group_id = set_pop(allAssociationDestinations(core, model_id, "group"))
|
|
|
+ group_id = anAssociationDestination(core, model_id, "group")
|
|
|
if (set_in(allAssociationDestinations(core, user_id, "belongsTo"), group_id)):
|
|
|
// We are in the owning group
|
|
|
return 1!
|
|
@@ -1023,9 +1023,9 @@ Void function enact_PM(pm : Element, mapping : Element):
|
|
|
if (read_type(pm, next) == "Decision"):
|
|
|
// Got decision node, so expand immediately
|
|
|
if (result):
|
|
|
- list_append(worklist, set_pop(allAssociationDestinations(pm, next, "Then")))
|
|
|
+ list_append(worklist, anAssociationDestination(pm, next, "Then"))
|
|
|
else:
|
|
|
- list_append(worklist, set_pop(allAssociationDestinations(pm, next, "Else")))
|
|
|
+ list_append(worklist, anAssociationDestination(pm, next, "Else"))
|
|
|
else:
|
|
|
// Other node, so just append for further processing
|
|
|
list_append(worklist, next)
|
|
@@ -1608,7 +1608,7 @@ String function cmd_model_overwrite(model_name : String, metamodel_name : String
|
|
|
model_id = get_entry_id(model_name)
|
|
|
if (model_id != ""):
|
|
|
if (allow_write(current_user_id, model_id)):
|
|
|
- type_id = set_pop(allAssociationDestinations(core, model_id, "instanceOf"))
|
|
|
+ type_id = anAssociationDestination(core, model_id, "instanceOf")
|
|
|
if (allow_read(current_user_id, type_id)):
|
|
|
Element mm
|
|
|
mm = get_full_model(get_entry_id(metamodel_name), get_entry_id("formalisms/SimpleClassDiagrams"))
|
|
@@ -1639,7 +1639,7 @@ String function cmd_model_modify(model_name : String, metamodel_name : String):
|
|
|
|
|
|
if (model_id != ""):
|
|
|
if (allow_read(current_user_id, model_id)):
|
|
|
- type_id = set_pop(allAssociationDestinations(core, model_id, "instanceOf"))
|
|
|
+ type_id = anAssociationDestination(core, model_id, "instanceOf")
|
|
|
if (allow_read(current_user_id, type_id)):
|
|
|
Element new_model
|
|
|
new_model = get_full_model(model_id, get_entry_id(metamodel_name))
|
|
@@ -1726,8 +1726,8 @@ String function cmd_model_list_full(location : String):
|
|
|
while (set_len(models) > 0):
|
|
|
m = set_pop(models)
|
|
|
permissions = read_attribute(core, m, "permissions")
|
|
|
- owner = read_attribute(core, set_pop(allAssociationDestinations(core, m, "owner")), "name")
|
|
|
- group = read_attribute(core, set_pop(allAssociationDestinations(core, m, "group")), "name")
|
|
|
+ owner = read_attribute(core, anAssociationDestination(core, m, "owner"), "name")
|
|
|
+ group = read_attribute(core, anAssociationDestination(core, m, "group"), "name")
|
|
|
if (is_nominal_instance(core, m, "Folder")):
|
|
|
name = get_filename(read_attribute(core, m, "name")) + "/"
|
|
|
else:
|
|
@@ -2354,7 +2354,7 @@ String function cmd_model_types(model_name : String):
|
|
|
types = allOutgoingAssociationInstances(core, model_id, "instanceOf")
|
|
|
while (set_len(types) > 0):
|
|
|
type_link = set_pop(types)
|
|
|
- result = result + full_name(readAssociationDestination(core, type_link)) + ", " + full_name(set_pop(allAssociationDestinations(core, type_link, "typing"))) + ", " + full_name(set_pop(allAssociationDestinations(core, type_link, "semantics")))+ "\n"
|
|
|
+ result = result + cast_string(full_name(readAssociationDestination(core, type_link))) + ", " + cast_string(full_name(anAssociationDestination(core, type_link, "typing"))) + ", " + cast_string(full_name(anAssociationDestination(core, type_link, "semantics"))) + "\n"
|
|
|
|
|
|
return result!
|
|
|
else:
|