With Embedded Engineer, you can link requirements to classes and operations.
That way the generated code contains a link to the requirement, enabling you to maintain the traceability of your requirements down to the source code.
Links can be Trace or Realization connectors and can be linked to the class or the a specific function.
To link to a specific function in Enterprise Architect use the "Link to Element Feature" option.
- Create a connector between the Class and the Requirement
- Open the context menu in the first third of the connector (near the Class) and select the "Link to Element Feature" menu entry
- Select the Feature Type: Operation and the operation itself
Since Requirements are not specified within the UML superstructure, Embedded Engineer will check if an element is a Requirement by checking if the stereotype contains the string "requirement"
(This check is case insensitive)
Since we found models containing Trace links with other connectors than Abstract, we opted to also only check for a trace Stereotype linking a Classifier to a Requirement.