Book a Demo

Author Topic: Ports, Interfaces and Sequence Diagrams  (Read 11624 times)

netizensmith

  • EA User
  • **
  • Posts: 24
  • Karma: +1/-0
    • View Profile
Ports, Interfaces and Sequence Diagrams
« on: January 28, 2019, 11:31:45 pm »
How I expected this to work is as below:

I have a component "Foo", I put an untyped port on it and specify that port "provides" an interface "X".
X interface is defined as having a bunch of methods on it.
I drop Foo onto a sequence diagram, along with its port.
I should be able to send a message to that port and choose a method from the interface X.

The above does not work, no methods are listed.

So, should the above work?

Plan B, type the port by the interface. This also does not work; I am unable to set the type of the port at all it seems. It lets me choose a type but does not populate the Type on the properties dialog. Clicking on the Type value in the properties afterwards does cause my chosen type to render in there but the save button is disabled etc.

Do I literally have to add the methods from my port's provided interface to the component in order to be able to choose the methods for use on my sequence diagram?

many thanks for any tips anyone can provide.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Ports, Interfaces and Sequence Diagrams
« Reply #1 on: January 29, 2019, 02:00:24 am »
EA version?

q.

netizensmith

  • EA User
  • **
  • Posts: 24
  • Karma: +1/-0
    • View Profile
Re: Ports, Interfaces and Sequence Diagrams
« Reply #2 on: January 29, 2019, 03:12:49 am »
Sorry, should have said : 14.1

ngong

  • EA User
  • **
  • Posts: 275
  • Karma: +2/-2
    • View Profile
Re: Ports, Interfaces and Sequence Diagrams
« Reply #3 on: January 30, 2019, 07:18:28 pm »
I am not using ports. I just add a "Provided Interface" to the component in the Project Browser. With "Properties/Special Action …." I bind the Interface to the Provided Interface. (I found searching for the interface is better than typing in the name, but I am not sure whether this is still true for 14.1 ).

When I now drag the component and its Provided Interface to the sequence diagram, I can send messages to its lifeline and have the operations available.

If from my context its clear what component provides the interface, I can simply drag the interface to the sequence diagram. Sending messages to its lifeline I can choose from operations.
« Last Edit: January 30, 2019, 07:22:20 pm by ngong »
Rolf

netizensmith

  • EA User
  • **
  • Posts: 24
  • Karma: +1/-0
    • View Profile
Re: Ports, Interfaces and Sequence Diagrams
« Reply #4 on: January 30, 2019, 07:45:39 pm »
Yeah I've made my component realise the interface for now but the other way is still preferable to us and our design. I'll raise it with Sparx.