Book a Demo

Author Topic: Bidirectional arrows in sequence diagrams  (Read 8552 times)

pink

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Bidirectional arrows in sequence diagrams
« on: April 25, 2009, 01:17:57 am »
Hi,

Does anyone know how to get bidirectional arrows in sequence diagrams? I am sure it's there but I just can't see it.  :(

Thanks in advance!
« Last Edit: April 25, 2009, 01:18:25 am by pink »

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Bidirectional arrows in sequence diagrams
« Reply #1 on: April 26, 2009, 07:14:35 pm »
I must admit this is quite perplexing.

Given that a directed connection, i.e. a single headed arrow, is supposed to represent a message (signal or call) from an instance of one classifier to an instance of another, just what is a bi-directional arrow supposed to represent?

b
« Last Edit: April 26, 2009, 07:15:16 pm by sargasso »
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Bidirectional arrows in sequence diagrams
« Reply #2 on: April 26, 2009, 09:13:47 pm »
Dialing your own number?
No, you can't have it!

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Bidirectional arrows in sequence diagrams
« Reply #3 on: April 26, 2009, 10:35:50 pm »
I'm gonna get shot for this one but...

Two women talking?

Cheryl::lady  <--------> Beryl::lady
Cheryl::lady  <--------> Beryl::lady
Cheryl::lady  <--------> Beryl::lady
Cheryl::lady  <--------> Beryl::lady
...


OK. I'll go back to sleep now. (MODS: Please kill this quickly)
b
« Last Edit: April 26, 2009, 10:43:07 pm by sargasso »
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Bidirectional arrows in sequence diagrams
« Reply #4 on: April 27, 2009, 03:20:15 pm »
I don't think a bi-directional arrow makes sense on a sequence diagram.  It's certainly not available in EA. I tried thinking of what it might mean, something like a shorthand for call and return, but that makes it impossible to see what is calling what.  A more normal shorthand is not showing the return.

But the key question, is what are you trying to show.  Then maybe we can make a recommendation about how to show it.

(I'd be thinking asynchronous messages that cross for that kind of conversation.   :-/)

pink

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Bidirectional arrows in sequence diagrams
« Reply #5 on: April 28, 2009, 02:01:51 am »
okay..I am trying to show a message that could be sent by either node (like an error message) ..I guess I am trying to use seq diagrams for diagrms which are not really seq diagrams.

I could separate it out into two diagrams and show that the message could be sent by either node.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Bidirectional arrows in sequence diagrams
« Reply #6 on: April 28, 2009, 08:29:05 am »
Given that a sequence diagram usually represents a single flow of events  (alt blocks excluded) I think it would be a good idea to split it up.