Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Doctor on November 09, 2005, 12:45:12 am

Title: Changing class in interaction diagram
Post by: Doctor on November 09, 2005, 12:45:12 am
Hi all,

I would like to ask you for help with following. I have an interaction diagram not very simple with about 8 lifelines (objects).
In the next version of the project one of the parcticipating classes becomes abstract and 3 concrete classes are derived of it. Now I would like to have 3 copies of the original diagram (no problem) and change the class (now abstract) of the object to the particular concrete class different in each new diagram.

I did not found the way how to change the object's class in the interaction diagram.

Or is this wrong approach?

Thanks,
Martin  
Title: Re: Changing class in interaction diagram
Post by: Eve on November 09, 2005, 01:00:22 pm
You can do what you want by right clicking on the object and selecting 'Advanced Settings' | 'Set Instance Classifier'.

As for if it's the right thing to do.  I don't know.  If the diagrams are exactly the same in all other respects I probably wouldn't.  In my opinion it would just be unecessary noise in your model.
Title: Re: Changing class in interaction diagram
Post by: Doctor on November 10, 2005, 12:28:54 am
Thanks Simon,

Now it is clear why I did not see it before - I tried the procedure on some test diagram and have done something wrong before so this item does not appear in the menu (the lifeline name is not underlined here). But on the meant diagram it works.

The copied diagrams are not exactly same - my intent is to point out also the dynamical differencies between the classes not only the static (described in the class diagram).

Thanks again.
Martin