Book a Demo

Author Topic: Realized interface can't be re-arranged  (Read 2541 times)

Asad Quraishi

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Realized interface can't be re-arranged
« on: March 13, 2013, 02:56:06 am »
Although this is a problem on both Class and Component diagrams it's more of an issue, for me, on component diagrams and so I will use this as my example.

When you create a component and then expose an interface, there are two ways to accomplish this.

The first way I describe below, 'Expose Interface', allows you to drag the interface and position it on any side of the diagram. This allows me to arrange a complex diagram manually, a necessity if I want it to be readable and don't want a mess. The problem with this method is there is little semantic information captured as the exposed interfaces are named and have no operations - something I need for documentation.

The second way, 'Realize Interface', displays the interface and doesn't allow you to drag. It does allow for the semantic richness I'm looking for.

My questions: is there any way to either a) rearrange this (2nd) depiction of component interfaces or b) add operations to and drag and drop the interfaces described in 1) below into a sequence diagram?

1) Expose Interface
a) Using a component diagram and tools, drag a component into the diagram
b) Select 'Expose interface' form the toolbox and select the component
c) select provided as type
d) drag it around the component, this works

2) Realize Interface
a) Same as above
b) Drag an interface onto the diagram
c) Add some operations to it
d) Drag a realization from the component to the interface
e) right-click on interface and go to menu item 'Features & Properties' -> 'Show Realized Interfaces'
f) the interface now appears in lollypop notation
g) try dragging it around the component. No can do

Thanks

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Realized interface can't be re-arranged
« Reply #1 on: March 15, 2013, 06:43:59 pm »
Hello,

if you have a component with an interface (provided or required) you can simply drag the interface to the diagram.

For the interface you can choose a circle notation to make it more compact.

Usually you model a realize dependency for provided and
Usage for required interfaces.

This works for both class and component diagram.

Instead of draging the component on the diagram you can choose to visualize the interfaces by "Show realized/dependant" interfaces.

Kind regards,

Helmut



Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)