Book a Demo

Author Topic: Message crossing on sequence diagrams  (Read 7693 times)

ocroquette

  • EA User
  • **
  • Posts: 93
  • Karma: +0/-0
    • View Profile
Message crossing on sequence diagrams
« on: July 13, 2007, 03:26:53 am »
Hi

I am trying to represent message crossing on sequence diagrams.
What I want as a result, is the following:



I have great difficulties with EA, since it always take control of the length of my activation regions, and I just can't achieve it. If I completely deactivate the activations for the diagram, the problem is solved of course.

Is the diagram below actually UML compliant?
Is there a way to achieve this with EA?

Thanks!

thomaskilian

  • Guest
Re: Message crossing on sequence diagrams
« Reply #1 on: July 13, 2007, 04:06:09 am »
Hm. What is the semantic of this? Your left object is passing a message to the right one while it in the same moment accepts another one from the same partner. Now they continue concurrently repeating this step. As you depicted it, it does not make sense to me. You probably have some kind of synchronisation point where the two object interchange information, right? In that case you have two messages. One going from left to right and a 2nd a bit later in the other direction. Or vice versa.

ocroquette

  • EA User
  • **
  • Posts: 93
  • Karma: +0/-0
    • View Profile
Re: Message crossing on sequence diagrams
« Reply #2 on: July 13, 2007, 05:11:25 am »

It's a system where the 2 classes are desynchronized, ie. they run in parallel and independently. They both handle asynchronous messages, and use for that services from each other.

I have 2 other diagrams showing the simple cases, where only one of them gets something to handle.

This diagram on the other end shall show what happens when they both get a request at the same time.

thomaskilian

  • Guest
Re: Message crossing on sequence diagrams
« Reply #3 on: July 13, 2007, 12:44:01 pm »
So when they run single treaded each object can either work on a task of its own OR serve another task. I think you should adorn this with a state diagram. Especially the message interchange seems to be tricky. There must be some scheduler that knows "I currently serve another task but also wait for response from someone I called". You should make this clear. Else your diagram opens more questions than it could clarify.

Bokkie

  • EA User
  • **
  • Posts: 80
  • Karma: +0/-0
  • Lima Bravo!
    • View Profile
Re: Message crossing on sequence diagrams
« Reply #4 on: July 16, 2007, 12:09:53 am »
These kind of diagrams/situations are typically found in telecom / protocol situations e.g. TCP/IP, SIP etc... You will have to consider state of the applicable classes/objects.

Sometimes I think the UML guys are too much focussed at business/financial/web applications and forget us, poor telecommies and embedded people...
Lima Bravo!

ocroquette

  • EA User
  • **
  • Posts: 93
  • Karma: +0/-0
    • View Profile
Re: Message crossing on sequence diagrams
« Reply #5 on: July 16, 2007, 06:00:46 am »
Quote
These kind of diagrams/situations are typically found in telecom / protocol situations e.g. TCP/IP, SIP etc...


Exactly :)

Quote
You will have to consider state of the applicable classes/objects.


While I understand that state machines will help the readers to understand how the requests are handled internally, it won't show the crossing of messages in the corner cases I am interested in :-/
Or did I understand both of you wrong?

Quote
Sometimes I think the UML guys are too much focussed at business/financial/web applications and forget us, poor telecommies and embedded people...


Yep, it's not as universal as advertised, especially the tools!

By the way, I tested with Rhapsody, and I can get the result I want. It lets more freedom about the position of the elements.

SF_lt

  • EA User
  • **
  • Posts: 216
  • Karma: +1/-0
  • The Truth Is Out There
    • View Profile
Re: Message crossing on sequence diagrams
« Reply #6 on: July 16, 2007, 06:52:54 am »
quite opposite in fact :)

by showing not horizontal message passing you state, that this passing takes time and this is important for you

also, I would use communication diagram for asynchronous message exchange
registertm everything to SparX

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Message crossing on sequence diagrams
« Reply #7 on: July 16, 2007, 07:34:10 pm »
Try setting the 'duration constraint' from the 'timing details' option in the context menu.

This allows for non-horizontal messages.

Bokkie

  • EA User
  • **
  • Posts: 80
  • Karma: +0/-0
  • Lima Bravo!
    • View Profile
Re: Message crossing on sequence diagrams
« Reply #8 on: July 16, 2007, 09:15:00 pm »
Nice feature! Didn't know that was possible with EA.

In my understanding the purpose of the non-horizontals is to indicate that the transport of the message takes time and cannot be neglected. This imposes special requirements for the statemachines (clientside&serverside) that handle the protocol. E.g. the ability to deal with retransmissions etc... Take a look at the four statemachines defined as in the SIP specs(rfc3261) (if you savvy ascii art :o ).
Lima Bravo!

ocroquette

  • EA User
  • **
  • Posts: 93
  • Karma: +0/-0
    • View Profile
Re: Message crossing on sequence diagrams
« Reply #9 on: July 16, 2007, 10:10:46 pm »
Quote
Try setting the 'duration constraint' from the 'timing details' option in the context menu.

This allows for non-horizontal messages.


Thanks, I can already do that. Where I have problems is in the repeated crossing of messages. EA imposes too much constraints on the activation regions. Try it, you will see better than I can explain
:)

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Message crossing on sequence diagrams
« Reply #10 on: July 17, 2007, 12:58:01 pm »
Then I suggest sending an email to sparx support detailing exactly what you believe is wrong.

ocroquette

  • EA User
  • **
  • Posts: 93
  • Karma: +0/-0
    • View Profile
Re: Message crossing on sequence diagrams
« Reply #11 on: July 20, 2007, 01:56:08 am »
Hi all

I have filled a bug report.
The support confirmed the limitation and recommended to deactivate the actions completely "for now".

I hope we will see some improvements in the next versions.

ocroquette

  • EA User
  • **
  • Posts: 93
  • Karma: +0/-0
    • View Profile
Re: Message crossing on sequence diagrams
« Reply #12 on: December 05, 2007, 05:41:27 am »

FYI: the support told me this would be improved in the next "update".

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Message crossing on sequence diagrams
« Reply #13 on: December 05, 2007, 06:23:46 am »
Do you mean that you've just heard that recently?
No, you can't have it!

ocroquette

  • EA User
  • **
  • Posts: 93
  • Karma: +0/-0
    • View Profile
Re: Message crossing on sequence diagrams
« Reply #14 on: December 05, 2007, 08:57:46 am »
Yes.