Book a Demo

Author Topic: equence Diagrams  (Read 4980 times)

mickeysala

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
equence Diagrams
« on: March 01, 2018, 07:52:40 pm »
Where to start?   ???

I am very new to the UML and I have a few questions regarding sequence diagrams, some of them conceptual, others relating to the use of EA.

Hope someone out there can help (with any of the points).

Here goes.

CONCEPTUAL QUESTIONS
1. Class B is subclassed from class A.

  Object Z creates object of class B. Do I show it creating B directly, or an object of class A that itself creates an object of class B?

2. Class B is subclassed from class A.

 Object Z sends message bob() to class B. But bob() is a virtual method, only present in the base class A. How can I show on the diagram that although bob() is invoked on B, it is an invokation of a base class method? Should I even be trying?


EA USAGE
1. Is it possible to show object deletion without sending a message from another object (i.e. to show self-deletion)?
2. The activation box seems to be present for the entire lifetime of an object. Is it possible to only show the activation box for the lifetime of a method?
3. A class makes a self call. The called method makes further calls both to its parent class and to other objects. Is there any way to add messages from inside a self call?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: equence Diagrams
« Reply #1 on: March 01, 2018, 10:19:39 pm »
1. There's a Lifecycle dropdown in the properties of a message. Use New to show object creation.
2. Inherited operations are available from the Message drop down on top. Just select the appropriate one.

q.

Nabil

  • EA User
  • **
  • Posts: 149
  • Karma: +5/-2
    • View Profile
    • View My LinkedIn Profile Here
Re: equence Diagrams
« Reply #2 on: March 01, 2018, 11:01:59 pm »
To Answer the 3rd point yes
After creating a self message draw a message connector to parent or other object. You will find an icon say raise activation level on the source point of connector

HTH

Nabil
Nabil