Przeglądaj źródła

Added commented version of the nicer multiplicity and cardinality code

Yentl Van Tendeloo 9 lat temu
rodzic
commit
572f2706f9
1 zmienionych plików z 8 dodań i 0 usunięć
  1. 8 0
      bootstrap/metamodels.alc

+ 8 - 0
bootstrap/metamodels.alc

@@ -97,6 +97,14 @@ Element function create_metamodels():
 		retype(scd, "assoc_to_tuc", "Association")
 		retype(scd, "tuc_name", "association_attr")
 
+		// TODO: try this
+		//instantiate_named(scd, "Association", "lower_multiplicity", "Class", "Integer")
+		//instantiate_named(scd, "Association", "upper_multiplicity", "Class", "Integer")
+		//instantiate_named(scd, "Association", "source_lower_multiplicity", "Association", "Integer")
+		//instantiate_named(scd, "Association", "source_upper_multiplicity", "Association", "Integer")
+		//instantiate_named(scd, "Association", "target_lower_multiplicity", "Association", "Integer")
+		//instantiate_named(scd, "Association", "target_upper_multiplicity", "Association", "Integer")
+
 		export_node("models/SimpleClassDiagrams", scd)
 
 		Element pn