Book a Demo

Author Topic: Traceability matrix to/from Class atributes/operations  (Read 10098 times)

Pawel Zubkiewicz

  • EA User
  • **
  • Posts: 78
  • Karma: +2/-1
    • View Profile
    • zubkiewicz.com
Traceability matrix to/from Class atributes/operations
« on: August 22, 2016, 09:25:10 pm »
Hi,

I would like to show in traceablity matrix which class attributes and operations are used by different UseCases. However in Relationship Matrix I can only display elements located in given package. Is is possible to go one level deeper into "sub-elements"?

Also, if it's not possible to realize my idea, I'm open to your suggestion how I can document that. I already have class element with attributes and operations defined.

PS. I just checked. I can drag and drop class operation element on diagram, it is of type Action. So it's perfectly legal to add a relationship to/from it. Question is, how to show that in Relationship Matrix.
« Last Edit: August 22, 2016, 09:30:30 pm by Pawel Zubkiewicz »
Enhanced Requirement Attributes Addin for Enterprise Architect (ERA Addin) - http://zubkiewicz.com/?p=239

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Traceability matrix to/from Class atributes/operations
« Reply #1 on: August 22, 2016, 09:33:48 pm »
You could use a <<trace>> with Link to Element Feature.

q.

Pawel Zubkiewicz

  • EA User
  • **
  • Posts: 78
  • Karma: +2/-1
    • View Profile
    • zubkiewicz.com
Re: Traceability matrix to/from Class atributes/operations
« Reply #2 on: August 22, 2016, 09:54:03 pm »
You could use a <<trace>> with Link to Element Feature.

Hi,
I intend to use trace relationship, however I don't fully undestrand your answer. How can I add it to "element feature" ? It's possible to do it in Relationship Matrix? Or should I do it on diagram (where I have class element expended with all attributes/operations visible)?
Could you please explain :)
Enhanced Requirement Attributes Addin for Enterprise Architect (ERA Addin) - http://zubkiewicz.com/?p=239

Pawel Zubkiewicz

  • EA User
  • **
  • Posts: 78
  • Karma: +2/-1
    • View Profile
    • zubkiewicz.com
Re: Traceability matrix to/from Class atributes/operations
« Reply #3 on: August 22, 2016, 10:01:52 pm »
Hi qwerty, I manged to find out what link to element feature is :-)
Thanks  :D

Now, my only question is: is it possible to show on Relationship Matrix?
Enhanced Requirement Attributes Addin for Enterprise Architect (ERA Addin) - http://zubkiewicz.com/?p=239

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Traceability matrix to/from Class atributes/operations
« Reply #4 on: August 22, 2016, 11:02:28 pm »
I rarely use the relationship matrix, so I made a quick test. I was able to show use case vs. attribute. It was possible to create a relation in the matrix which was named Abstraction, but I could not see that in the diagram. Vice versa I could not show a trace in the relationship matrix (because that was setup agains the class). I'm no sure about this Abstraction but is smells. As per UML spec you can not create relations to features. The "Link to Element Feature" is an EA extension.

q.

Pawel Zubkiewicz

  • EA User
  • **
  • Posts: 78
  • Karma: +2/-1
    • View Profile
    • zubkiewicz.com
Re: Traceability matrix to/from Class atributes/operations
« Reply #5 on: August 23, 2016, 10:04:12 pm »
Thanks for checking, more or less I have the same findings.
Enhanced Requirement Attributes Addin for Enterprise Architect (ERA Addin) - http://zubkiewicz.com/?p=239

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Traceability matrix to/from Class atributes/operations
« Reply #6 on: August 23, 2016, 11:22:26 pm »
I think that the attribute thingy is a bug in the RM since you can not create connectors to attributes. Maybe someone wants to report that.

q.

Pawel Zubkiewicz

  • EA User
  • **
  • Posts: 78
  • Karma: +2/-1
    • View Profile
    • zubkiewicz.com
Re: Traceability matrix to/from Class atributes/operations
« Reply #7 on: August 24, 2016, 06:41:04 pm »
By the way, qwerty do you know if it's possible to extract from connector the "element feature" (attribute or operation) to which it is assigned?
I want't to write a script which will iterate through all class's operations and list only those that have  Element Feature links.
Enhanced Requirement Attributes Addin for Enterprise Architect (ERA Addin) - http://zubkiewicz.com/?p=239

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Traceability matrix to/from Class atributes/operations
« Reply #8 on: August 24, 2016, 08:41:27 pm »
Search for "link to element feature" and you should find some topics with the answers.

Geert

Pawel Zubkiewicz

  • EA User
  • **
  • Posts: 78
  • Karma: +2/-1
    • View Profile
    • zubkiewicz.com
Re: Traceability matrix to/from Class atributes/operations
« Reply #9 on: August 24, 2016, 08:58:48 pm »
thanks Geert :-)

Just for future refrecence (maybe somone will need this)

For a certain validation I need to check if an attribute with a certain stereotype has a connector that is 'linked to the attribute'

Linking to an attribute can be done with the 'link to element feature'.

I have found that an attribute has an EA_GUID. For example: {7DBF1703-D202-4336-B1C9-B63D7522089A};
When a connector is linked to this attribute, the StyleEx field of the connector contains: LFSP={7DBF1703-D202-4336-B1C9-B63D7522089A}R;

That's all I needed to know :-)
Enhanced Requirement Attributes Addin for Enterprise Architect (ERA Addin) - http://zubkiewicz.com/?p=239