Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: Barrie Treloar on March 31, 2010, 10:44:40 am
-
I've imported our Rational Software Architect projects into EA and I am having trouble with Components (which is more than likely my lack of understanding)
In RSA we create components and do not define any operations on those components. All operations are defined in the provided/required interfaces. Then on a sequence diagram we would use the component and have access to the provided operations for linking messages.
I prefer linking to the components as this makes our sequence diagrams easier to understand. I don't really want to use the provided interfaces as I am only trying to model the component interactions.
First question: Is what I am attempting to do sane/correct? If not, what should I be doing?
Second question: Looking at my Component Diagram I have the Component and the Interfaces there but there is nothing to show that they are linked via provided/required. Is this a problem with the import process? And if so what is the correct way to attach provided/required interfaces. My fiddling seems to create instances of the interfaces rather than using the classifiers directly.
Cheers
Barrie
-
Barry,
You can link an existing interface to a component using the provided/required interface dialog.
That will allow you to select the interface of your choice.
I just tested the sequence diagram thing, but addin the interface as a provided interface of your component doesn't allow you to call any of its operations on that component.
As a workaround you cour create a realization relation between the component and the interface. Then you can call the operations on the component directly.
Geert
-
Hello Geert,
I just came across the same problem - operations that are contained in "provided interfaces" of a component cannot be selected in sequence diagram calls. Does anybody know whether this is a bug, or standard behaviour of UML? Thank you in advance!
Regards,
Michael