1
Suggestions and Requests / Re: UML Singleton notation
« on: August 08, 2005, 07:40:34 am »
That worked. Thanks for the help!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Darren,
Getting back to the original question. Although I haven't found a way to get EA to initially choose the compose connector, I have found a way to set up the connector in the diagram so that EA accepts it on reverse engineering and doesn't try to add its own association connector. Once I have set it up this way, I can do roundtrip engineering without any problems. The trick is to specify the "role" for the composition connector. To do this, create the composition connector between the two classes, then double-click on the connector itself. Click on the "Source Role" tab and, from the Role combobox, select the attribute in the Target class that actually does the compostion (such as an array, vector, etc.).
As to the use of composition in the first place, a simple one to many association corresponds more closely to aggregation than to composition. The advice of the creators of UML is essentially "don't bother with aggregation" and "use composition when appropriate."
Myles