public static void AddASBIE(this Element client, Element supplier, string name, EaAggregationKind aggregationKind, string lowerBound, string upperBound) { client.AddConnector(name, EaConnectorTypes.Aggregation.ToString(), c => { c.Stereotype = Stereotype.ASBIE; c.ClientEnd.Aggregation = (int)aggregationKind; c.SupplierID = supplier.ElementID; c.SupplierEnd.Role = name; c.SupplierEnd.Cardinality = lowerBound + ".." + upperBound; }); }
public static void AddASBIE(this Element client, Element supplier, string name, EaAggregationKind aggregationKind) { AddASBIE(client, supplier, name, aggregationKind, "1", "1"); }