Author Topic: Changing class in interaction diagram  (Read 2218 times)

Doctor

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Changing class in interaction diagram
« 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  

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: Changing class in interaction diagram
« Reply #1 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.

Doctor

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Changing class in interaction diagram
« Reply #2 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
« Last Edit: November 10, 2005, 12:29:29 am by Doctor »