Menu

TraceLink Example

Andreas Kretschmer
Attachments
ActorView.jpg (3887 bytes)
CheckBalanceView.jpg (8240 bytes)
CheckBalanceView2.jpg (10794 bytes)
IdentifyView.jpg (13023 bytes)
LinkErstellen.jpg (26998 bytes)
LinkTypes.jpg (7372 bytes)
ModelElementTraceLink.xmi (124883 bytes)
ProjectOverview.png (72619 bytes)
TraceLinkView1.jpg (16205 bytes)
TraceLinkView2.jpg (16349 bytes)
Use Case.png (32456 bytes)

Creating and usage of trace links for model dependencies

For the illustration there is an example project of a simple bank account system modeled in UML
[]

The model transferred into EMFTrace looks like this:
[]

In the model entry you can find all elements from the diagram plus some more from maybe another diagram we want to link here. There are already several trace links and link types defined in the project which are grouped in container for a better overview.

From the diagram we know that it starts with the actor, so right click on this element and select "show Model Dependencies". The view opens with this:
[]

The actor is connected via a trace link that says login to the identify Use Case. A click on it will show us the dependency graph of this element:
[]

The red links are incoming paths over which the element can be accessed or referenced as reference. In this case identify is used only by the Actor and linked to three other Use Cases it allows access to and one fault condition.

Check balance even has two incoming links and is used by payout, also reads the account, but a view in the list of the project shows that there is a class of check balance that isn’t linked here yet.
[][]

So we have to link it. To do so we need a TraceLink element. Right click on the Project, select New Model Element and create a TraceLink under the LinkModel entry. Name the link as you like, but for a better overview choose a name to categories like “uc check” for alias the link starts from. The source is the Use Case and target the class it refers to. The description makes the link more clear. Finally the link needs a type displayed in the graph, but the existing are not suitable enough to describe it well. So we create a new one and call it "implemented by"
[][][]

With this change, the resulting graph has a new link
[]


Download

pre Project File
post Project File


MongoDB Logo MongoDB