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.
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.
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.
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.
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 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.