Book a Demo

Author Topic: sequence diagram messages  (Read 4531 times)

mylesr

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
  • Howdy!!
    • View Profile
sequence diagram messages
« on: March 24, 2005, 09:25:01 am »
In a sequence diagram, when I add a message from class A to class B, a dialog pops up allowing me to name the message.  In this dialog, there is an "Operations" button that allows me to select a method that has been previously defined on class B.  There is also a "Show Inherited Methods" checkbox.  If B inherits from another class (call it C), I would expect that if the "Show Inherited Methods" option is checked, then when I click on the "Operations" button, it will display a merged list of the methods in B and C.  It doesn't do this.  Only methods from B are displayed.  

Takeshi K

  • EA User
  • **
  • Posts: 632
  • Karma: +43/-1
    • View Profile
    • Sparx Systems Japan
Re: sequence diagram messages
« Reply #1 on: March 25, 2005, 01:34:16 am »
Hello Mylesr,

In my opinion, if EA works as you say and you add a
new operation, which class does this new operation belong to?
How do you specify the class by using current dialog?

So, I think it's good to contain methods of only Class B.

--
t-kouno

--
t-kouno

mylesr

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
  • Howdy!!
    • View Profile
Re: sequence diagram messages
« Reply #2 on: March 28, 2005, 07:17:24 am »
Thanks for responding!  

The purpose of the "Operations" button, as I understand it, is to allow you to choose from all available operations that have *already* been defined on class B or any of its ancestors.  All available operations would, of course, include inherited operations.  Since you are choosing from methods that have already been defined, there should not be any confusion.  

Any *new* methods created as a result of adding a message on a sequence diagram should be applied to the class that is receiving the message, not one of its ancestors.  Alternatively, you could be prompted for where to add it.  

thomaskilian

  • Guest
Re: sequence diagram messages
« Reply #3 on: March 29, 2005, 01:36:24 am »
The operations button leads you to the operations dialog of the appropriate class. The drop down list holds the operations already defined. I suppose (haven't tried) that checking the inherited box will also show inherited operations in the drop down.

mylesr

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
  • Howdy!!
    • View Profile
Re: sequence diagram messages
« Reply #4 on: March 29, 2005, 07:35:49 am »
I agree that checking the inherited box *should* cause the inherited methods to be included in the operations list,

but it doesn't work...  That's the problem.  Try it out.  

thomaskilian

  • Guest
Re: sequence diagram messages
« Reply #5 on: March 29, 2005, 11:42:02 pm »
I tried and it worked. The drop down shows inherited methods when I check the box and doesn't when it's not selected.
However the inherited ONLY show up in the drop down, not in dialog popping up when hitting the Operations button.

mylesr

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
  • Howdy!!
    • View Profile
Re: sequence diagram messages
« Reply #6 on: March 30, 2005, 07:50:25 am »
Yes.  That works.  And since the Operations button pulls up the dialog box for a class, I suppose it makes sense to only show methods for that class.  I had been using the Operations button for selecting existing methods as well as for defining new ones.  If I use the drop down for existing methods, everything should be fine.  Thanks for your time!