Book a Demo

Author Topic: Required and Provided Interface  (Read 5570 times)

thomaskilian

  • Guest
Required and Provided Interface
« on: June 19, 2007, 02:25:30 pm »
Hi,
I have a question regarding required and provided interfaces. When I create such for a component, I can choose from exising classes/interfaces. This is nice and what I expect. Now I have two observations.
1: There does not seem to be any link between the embedded element and the selected interface except for the name. At least I can find none.
2: The name for the embedded element appears sometimes as name:name and sometimes simply as name (when I re-select and OK the name it displays the name only). Is this intention or a bug.

I hardly can believe that there is no relation between the embedded element and the real interface. I would expect to be able to navigate between both or to see some kind of relation. When I add interfaces to a component then in the end I just see strings in a diagram. I can't see from the interface that it is actually being used by the specific component. Is it really neccessary to add Implements (for provided) and Dependency (for required) relations manually?

Edit: I now realized that there is a context menu Embedded Elements which lets you show the interfaces. That answers most of my issues above. It still opens the question: why should I make use of the above method. Or why does one need to get confused by it ???

Edit (2):Now, when using the Show Embedded Interfaces (which is by the way very tedious as it needs to be perfomed via context menu separately for EACH SINGLE class and twice for Required and Provided!!!) I run into the next problem. The interface lollipops and sockets show only on the left side of the components. Try to resize if there are many interfaces used (works wrong) or to scroll (all of a sudden this list vanishes). AND you can not connect them with a dependency.

It seems I have to create a bastard living with both, the REAL embedded interfaces (you see as elements in the project browser) PLUS the Realise/Realize (would it be possible to allow both writings in the automation - you know of this problem, Sparxians) and Dependency connectors. I "thought" (kind of a disease, I know) that this could be handled more logically. When one creates an embedded interface for a component the according connector should be created and maintained in parallel - and vice versa. Is that too much expectation from my side?

« Last Edit: June 19, 2007, 11:34:35 pm by thomaskilian »