How to show the relationship of a requirement with the operation of satifying class?

Viewed 88

As the title of question shows, I want to display the relationship of the requirements of a class with the method of that class that satisfies the requirement(s). for example, suppose that we have a class named myClass that is supposed to satisfy Req1, Req2, and Req3. In class diagram, I connected the three requirements to the myClass through satisfy relationship. myClass has three methods named method1, method2, and method3 that each method satisfies Req1, Req2, and Req3 respectively.

now, how can I show (and in which UML diagram) that method1, method2, and method3 satisfies Req1, Req2, and Req3 respectively?

1 Answers

The following ways come to mind, none preferred:

  • The most general way would be to attach a note to a «satisfies» (or what ever stereotype you like) Dependency where you specify the name of the operation.

enter image description here

  • Instead of a note you could per convention name to connector as the operation. This convention must be documented elsewhere in the modeling domain.

enter image description here

  • Some tools (like Enterprise Architect) allow to position connectors towards attributes/operations. This is no standard, but in the tool's domain it would be a way to pin the «satisfies».

enter image description here

Related