Design while maintaining traceability of class diagram and sequence diagram

Hello, this is Lily.

Are you doing modeling that maintains traceability?
I will explain how it is possible.

1. Use an existing class in a sequence diagram
2. Specify the operation defined for the class and draw a message
3. Add operations to the class from the sequence diagram


1. Use an existing class in a sequence diagram

In Astah, you can dynamically design while maintaining traceability with the class diagram by setting the created class as the base class of the lifeline of the sequence diagram.

create_lifeline

When you drag and drop a class onto a diagram, a lifeline is automatically created with the base class set.
You can also set the base class from the property view on the created lifeline.

create_lifeline2

Lifeline’s base class and class changes are synchronized.

2. Specify the operation defined for the class and draw a message

In Astah, if you change the operation name or parameter on the class diagram side by specifying the operation in the message, it can be set to be reflected in the sequence diagram.

create_message1

When you create a message to the lifeline with the base class set up, candidates for the operation will be displayed, so select it (this function is called content assist).
If content assist is not displayed, change the setting in the system property.
Once you select a message you can also set it from the Properties view.

create_operation

The message is linked with the set operation.

3. Add operations to the class from the sequence diagram

It is also possible to add operations from the sequence diagram and reflect it on the class diagram.

create_message2

Create a message to the lifeline where the base class is set up and create a new operation from the base tab.
New operations are also added to class diagram classes. It is linked with editing these.


Was this article helpful to you?
Write comments on your comments and requests.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s