|
@@ -260,6 +260,26 @@ Element function ramify(model : Element):
|
|
|
instantiate_attribute(new_model, "QueryLHS", "target_lower_cardinality", 1)
|
|
|
instantiate_attribute(new_model, "QueryLHS", "target_upper_cardinality", 1)
|
|
|
|
|
|
+ // Class ForAll : Rule {}
|
|
|
+ instantiate_node(new_model, "Class", "ForAll")
|
|
|
+ instantiate_link(new_model, "Inheritance", "", "Atomic", "ForAll")
|
|
|
+
|
|
|
+ // Association ForAllLHS (ForAll, LHS) {
|
|
|
+ // target_lower_cardinality = 1
|
|
|
+ // target_upper_cardinality = 1
|
|
|
+ // }
|
|
|
+ instantiate_link(new_model, "Association", "ForAllLHS", "ForAll", "LHS")
|
|
|
+ instantiate_attribute(new_model, "ForAllLHS", "target_lower_cardinality", 1)
|
|
|
+ instantiate_attribute(new_model, "ForAllLHS", "target_upper_cardinality", 1)
|
|
|
+
|
|
|
+ // Association ForAllRHS (ForAll, RHS) {
|
|
|
+ // target_lower_cardinality = 1
|
|
|
+ // target_upper_cardinality = 1
|
|
|
+ // }
|
|
|
+ instantiate_link(new_model, "Association", "ForAllRHS", "ForAll", "RHS")
|
|
|
+ instantiate_attribute(new_model, "ForAllRHS", "target_lower_cardinality", 1)
|
|
|
+ instantiate_attribute(new_model, "ForAllRHS", "target_upper_cardinality", 1)
|
|
|
+
|
|
|
// Class Atomic : Rule {}
|
|
|
instantiate_node(new_model, "Class", "Atomic")
|
|
|
instantiate_link(new_model, "Inheritance", "", "Atomic", "Rule")
|