Book a Demo

Author Topic: Relationship matrix - link type  (Read 4839 times)

Dima

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Relationship matrix - link type
« on: January 22, 2010, 07:26:04 am »
I have simple relationship - <<trace>> between two elements. How can I show this on Relationship Matrix - the link type trace is not there... in fact many link types do not show up in the drop down.

marcelloh

  • EA User
  • **
  • Posts: 192
  • Karma: +0/-0
    • View Profile
Re: Relationship matrix - link type
« Reply #1 on: January 22, 2010, 07:36:14 am »
I don't know exactly, but if you do the source elemetn and target element types to all, and then select the direction to both... what do you get?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Relationship matrix - link type
« Reply #2 on: January 22, 2010, 08:34:44 am »
A trace is a stereotyped dependency.

David OD

  • EA User
  • **
  • Posts: 56
  • Karma: +0/-0
    • View Profile
Re: Relationship matrix - link type
« Reply #3 on: January 22, 2010, 10:26:19 am »
@Simon: But does the matrix view support the creation of such stereotyped links?  It would be very painful to have to create lots of links and then to have to manually stereotype each of them.  Is there some shortcut that allows stereotyped links to be used in the matrix?
Regards
David

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Relationship matrix - link type
« Reply #4 on: January 22, 2010, 11:01:08 am »
Quote
@Simon: But does the matrix view support the creation of such stereotyped links?  It would be very painful to have to create lots of links and then to have to manually stereotype each of them.  Is there some shortcut that allows stereotyped links to be used in the matrix?
Trace has been added to the listbox for EA 8.0, but until then (and for any other stereotypes that you may want to add) do the following: Create a profile that defines the stereotype "trace" that extends "Dependency". Give the stereotype class an attribute "_metatype" with an initial value of "Trace". Save the profile. Import the profile in the Resources window. (You may also need to reload your model). All stereotypes with a _metatype attribute set will appear in the matrix listboxes.
« Last Edit: January 22, 2010, 11:03:12 am by KP »
The Sparx Team
[email protected]

David OD

  • EA User
  • **
  • Posts: 56
  • Karma: +0/-0
    • View Profile
Re: Relationship matrix - link type
« Reply #5 on: January 22, 2010, 11:14:06 am »
Quote
All stereotypes with a _metatype attribute set will appear in the matrix listboxes.

Brilliant!  :D  We are building a series of profiles and have started using the _metatype attribute, so that should be sorted!
Regards
David

Dima

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Relationship matrix - link type
« Reply #6 on: January 26, 2010, 06:45:44 am »
Quote
Quote
@Simon: But does the matrix view support the creation of such stereotyped links?  It would be very painful to have to create lots of links and then to have to manually stereotype each of them.  Is there some shortcut that allows stereotyped links to be used in the matrix?
Trace has been added to the listbox for EA 8.0, but until then (and for any other stereotypes that you may want to add) do the following: Create a profile that defines the stereotype "trace" that extends "Dependency". Give the stereotype class an attribute "_metatype" with an initial value of "Trace". Save the profile. Import the profile in the Resources window. (You may also need to reload your model). All stereotypes with a _metatype attribute set will appear in the matrix listboxes.

Did all this and it worked when I selected "Dependency" in Link Type field of Relationship Matrix. Good advice!