Book a Demo

Author Topic: Send self-message to myself  (Read 4501 times)

gh

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Send self-message to myself
« on: July 17, 2007, 11:43:12 pm »
Hi, is it possible to do something like this in EA? ( Note: If anyone wonders, this is just a pixel mockup ;) )



I'd like to use this to show that I send a message to myself. Is there in general a better way to show this in UML?

thomaskilian

  • Guest
Re: Send self-message to myself
« Reply #1 on: July 18, 2007, 02:00:04 am »
There is a standard self-message which is UML compliant. See the help on how to create it (drag away from the quicklink and drop on the object itself).

gh

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Send self-message to myself
« Reply #2 on: July 18, 2007, 03:51:17 am »
I tried the self message - through the Toolbox and by drawing the message as you described - but what I wanted to achieve is to show that the activation of the object is stopped after the message is "delayed" in the message queue of the object.

thomaskilian

  • Guest
Re: Send self-message to myself
« Reply #3 on: July 18, 2007, 04:11:52 am »
But that would mean another instance, which I would expect to appear on another life line.

gh

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Send self-message to myself
« Reply #4 on: July 18, 2007, 04:48:51 am »
That's exactly what I don't want to be forced to.

Let's assume I have a diagram which shows the message flow between various tasks. It is true that every task has its message box etc. but that should be left out for now as the diagram is supposed to highlight the messages being sent between the entities within the various tasks. For this I'd like to show a self message (asynchronous, eventually with timing constraints) which is sent from the object and handled "after some time" from the same one.

thomaskilian

  • Guest
Re: Send self-message to myself
« Reply #5 on: July 18, 2007, 08:06:19 am »
I see your point. I'm not sure whether this is UML compliant at all. And - most important - I don't see a way to achieve that with EA :-/

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Send self-message to myself
« Reply #6 on: July 19, 2007, 11:46:38 pm »
Model the queue.

Update
(Now that I have more than 2 seconds to spare, I'll explain.)

If your object is truly asynchronous wrt enqueing/dequeing messages, then the easiest way to show this is to include the queue itself as an object in the diagram.  Then "putQ" and "getQ" can be shown as completely different interactions.

IAF, enqueing and dequeing are more "assymtotic" than asychronous.

hth
bruce
« Last Edit: July 23, 2007, 12:39:06 am 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.