Book a Demo

Author Topic: Requirements on operations  (Read 4259 times)

fferm

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Requirements on operations
« on: November 02, 2010, 09:01:57 pm »
Hi

I'd like to be able to put requirements on operations of a class.  The reason is that I have a specific requirement on how an operation should be implemented, and therefore I'd like to build a relationship between that requirement and the specific operation.

When I try to do that in EA, there is no requirements tab in the operation properties dialog.  I suppose that this has to do with the fact that an operation is not a UML classifier and cannot therefore have any relationships to other classifiers, but I may be wrong in that.

Does anybody have any good ideas of workarounds for this problem?

Regards
Fredrik Ferm

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Requirements on operations
« Reply #1 on: November 03, 2010, 06:27:31 pm »
Fredrik,

I would either use the behavior field, or link a requirement to the operation using a tagged value of RefGUID type.

Geert

fferm

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Requirements on operations
« Reply #2 on: November 03, 2010, 08:36:09 pm »
Hi

Thanx for your answer, but I don't see that any of those solutions are good enough, unfortunately...

Using the behaviour field only allows me to enter text into the operation, and not to have an explicitly defined Requirement that I can trace, set attributes to etc...

Using the tagged value-solution does not give me any good visual indication that there is a linked requirement to the operation.

Am I wrong, or does anybody have any other solution?

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: Requirements on operations
« Reply #3 on: November 03, 2010, 08:44:04 pm »
Hi

There is a way of achieving this, on a diagram.

1) Create a class diagram and place your classes on the diagram with operartions visible
2) Drag (as links) the Requirement(s) to your diagram
3) Connect a Requirement to the Class containing the desired operation (I suggsest UML::Realization) as the link
4) Right click the connector close to the class element and select from the menu "Link to Element Feature"
5) From the dialog select Operartions, and then chose the operation that the Requirement should link to
6) Repeat for other Requirements / Operations

The diagram can look a little messy, and as far as I know these relationships cannot be viewed in a Relationship Matrix  :( You can only view class / requirement

I haven't tried outputing the relationships using RTF (I'll give it a go and let you know what I discover)

Cheers

Phil
Models are great!
Correct models are even greater!

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: Requirements on operations
« Reply #4 on: November 03, 2010, 09:02:57 pm »
Hi

Just as a follow up, yes you can output the realtionship details using RTF. (It certainly works in Version 8.0)

As a very simple guide use the following:

[highlight]package >[/highlight]
{Pkg.Name}[highlight]
element >[/highlight]
{Element.Name}
[highlight]connector >[/highlight]
[highlight]source >[/highlight]
[highlight]element >[/highlight]
{Element.Name}
[highlight]< element
linked feature >[/highlight]
{LinkedSourceFeature.Signature}
[highlight]< linked feature
< source
< connector
child elements >
< child elements
< element
child packages >
< child packages
< package[/highlight]
Models are great!
Correct models are even greater!