Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Sequence Diagram Messages
Sequence Diagram Messages [message #478571] Tue, 30 June 2009 20:25 Go to next message
mary is currently offline maryFriend
Messages: 22
Registered: July 2009
Junior Member
Hi,
How can we add a message to an existing Interaction.
I checked the metamodel for the element Message and I can't find which
attribute is responsible to define the source and target of the message.
For example in State Machine if you want to create a transition there is
an attribute source and target that specify the two ends of the
transition.. How can we do that in sequence diagrams?

Also which element/attribute is responsible to specify the position of the
message in the interaction diagram.. (i.e. first message in a specific
lifeline or the second..etc)

Thanks.
Re: Sequence Diagram Messages [message #478573 is a reply to message #478571] Wed, 01 July 2009 07:45 Go to previous messageGo to next message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Mary,

the ordering of the messages in an interaction is determined by the
elements MessageOccurrenceSpecification(MOS), which represent the
sending and receiving of a message.

Each MOS contains exactly one association to an Event
(SendOperationEvent, SendSignalEvent, etc.), that represents the kind of
message event. So, the ordering depends on the ordering of the MOS. If
you want to add to message as the first message afterwards, you have r
create not only the message, but also the corresponding occurrence
specifications.

HTH
Timothy

mary schrieb:
> Hi, How can we add a message to an existing Interaction. I checked the
> metamodel for the element Message and I can't find which attribute is
> responsible to define the source and target of the message.
> For example in State Machine if you want to create a transition there is
> an attribute source and target that specify the two ends of the
> transition.. How can we do that in sequence diagrams?
>
> Also which element/attribute is responsible to specify the position of
> the message in the interaction diagram.. (i.e. first message in a
> specific lifeline or the second..etc)
>
> Thanks.
>
>
Re: Sequence Diagram Messages [message #478575 is a reply to message #478573] Wed, 01 July 2009 21:44 Go to previous messageGo to next message
mary is currently offline maryFriend
Messages: 22
Registered: July 2009
Junior Member
Thanks Timothy for your reply, it really helped..

I have a question about the Events for example SendOperationEvent. What I
understood is that in a sequence diagram each message represent an
operation call in the corresponding lifeline. And for each operation we
should create a Send and Recieve Operation Event.. Am I right ?

I have created the MOS, and the message it self.. But in the MOS there is
an attribute for specifying the event which mean I have to create the
SendOperationEvent and RecieveOperationEvent.. right?

I have set the attribute operation to the operation I want to call.. But
I'm having a problem in specifying the owner of the Send/ Recieve
OperationEvent.
it seems that this property is read only.. is there another way to specify
the owner of the Event???
Thanks again for your help..
Re: Sequence Diagram Messages [message #478576 is a reply to message #478573] Wed, 01 July 2009 21:49 Go to previous messageGo to next message
mary is currently offline maryFriend
Messages: 22
Registered: July 2009
Junior Member
Thanks Timothy for your reply, it really helped..

I have a question about the Events for example SendOperationEvent. What I
understood is that in a sequence diagram each message represent an
operation call in the corresponding lifeline. And for each operation we
should create a Send and Recieve Operation Event.. Am I right ?

I have created the MOS, and the message itself.. But in the MOS there is
an attribute for specifying the event which mean I have to create the
SendOperationEvent and RecieveOperationEvent.. right?

I have set the attribute operation to the operation I want to call.. But
I'm having a problem in specifying the owner of the Send/ Recieve
OperationEvent.
it seems that this property is read only.. is there another way to specify
the owner of the Event???
Thanks again for your help..
Re: Sequence Diagram Messages [message #478577 is a reply to message #478576] Thu, 02 July 2009 06:27 Go to previous messageGo to next message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Mary,

since an Event is an PackageableElement, you can add an Event to every
Package. It's derive attribute "owner" will be determined by the
Package, to which it was added.

But let me precise your statement: A message represents either an
operation call or the sendig of a signal (see: SendSignalEvent).

THT
Timothy

mary schrieb:
> Thanks Timothy for your reply, it really helped..
>
> I have a question about the Events for example SendOperationEvent. What
> I understood is that in a sequence diagram each message represent an
> operation call in the corresponding lifeline. And for each operation we
> should create a Send and Recieve Operation Event.. Am I right ?
>
> I have created the MOS, and the message itself.. But in the MOS there is
> an attribute for specifying the event which mean I have to create the
> SendOperationEvent and RecieveOperationEvent.. right?
>
> I have set the attribute operation to the operation I want to call.. But
> I'm having a problem in specifying the owner of the Send/ Recieve
> OperationEvent. it seems that this property is read only.. is there
> another way to specify the owner of the Event???
> Thanks again for your help..
>
>
>
Re: Sequence Diagram Messages [message #478595 is a reply to message #478577] Tue, 07 July 2009 21:39 Go to previous messageGo to next message
mary is currently offline maryFriend
Messages: 22
Registered: July 2009
Junior Member
Hello again,

I am still facing a problem with the ordering of the messages in an
interaction. I understood that the order of MOS, specify the order of the
messages in an interaction diagram.

Let me give you an example to help me explain my problem:
I have an interaction with 2 lifelines and a sequence of messages between
them. I am trying to add a new message to the beginning of the
interaction.

I tried to do that using the property toBefore of the MOS that takes
element of type general Ordering, and in the general Ordering element I
set the property before to the first element of MOS in my interaction. but
unfortunately this way didn’t work.

I am wondering if you have another idea to do this?

Thanks,
Re: Sequence Diagram Messages [message #485880 is a reply to message #478595] Tue, 15 September 2009 12:28 Go to previous messageGo to next message
Karim  is currently offline Karim Friend
Messages: 2
Registered: September 2009
Junior Member
Hello Mary ,
i have the same Problem that yo had with the creation of the message in an interaction . how to create a MessageOccurrenceSpecification when you create a message ? should I add an element MessageOccurrenceSpecification to the GMFmap ? and it's the case it will be a node or a link ? i hope you will guive the answer for all those question Wink thanks a lot .
Re: Sequence Diagram Messages [message #627755 is a reply to message #478571] Wed, 01 July 2009 07:45 Go to previous messageGo to next message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Mary,

the ordering of the messages in an interaction is determined by the
elements MessageOccurrenceSpecification(MOS), which represent the
sending and receiving of a message.

Each MOS contains exactly one association to an Event
(SendOperationEvent, SendSignalEvent, etc.), that represents the kind of
message event. So, the ordering depends on the ordering of the MOS. If
you want to add to message as the first message afterwards, you have r
create not only the message, but also the corresponding occurrence
specifications.

HTH
Timothy

mary schrieb:
> Hi, How can we add a message to an existing Interaction. I checked the
> metamodel for the element Message and I can't find which attribute is
> responsible to define the source and target of the message.
> For example in State Machine if you want to create a transition there is
> an attribute source and target that specify the two ends of the
> transition.. How can we do that in sequence diagrams?
>
> Also which element/attribute is responsible to specify the position of
> the message in the interaction diagram.. (i.e. first message in a
> specific lifeline or the second..etc)
>
> Thanks.
>
>
Re: Sequence Diagram Messages [message #627757 is a reply to message #478573] Wed, 01 July 2009 21:44 Go to previous messageGo to next message
mary is currently offline maryFriend
Messages: 22
Registered: July 2009
Junior Member
Thanks Timothy for your reply, it really helped..

I have a question about the Events for example SendOperationEvent. What I
understood is that in a sequence diagram each message represent an
operation call in the corresponding lifeline. And for each operation we
should create a Send and Recieve Operation Event.. Am I right ?

I have created the MOS, and the message it self.. But in the MOS there is
an attribute for specifying the event which mean I have to create the
SendOperationEvent and RecieveOperationEvent.. right?

I have set the attribute operation to the operation I want to call.. But
I'm having a problem in specifying the owner of the Send/ Recieve
OperationEvent.
it seems that this property is read only.. is there another way to specify
the owner of the Event???
Thanks again for your help..
Re: Sequence Diagram Messages [message #627758 is a reply to message #478573] Wed, 01 July 2009 21:49 Go to previous messageGo to next message
mary is currently offline maryFriend
Messages: 22
Registered: July 2009
Junior Member
Thanks Timothy for your reply, it really helped..

I have a question about the Events for example SendOperationEvent. What I
understood is that in a sequence diagram each message represent an
operation call in the corresponding lifeline. And for each operation we
should create a Send and Recieve Operation Event.. Am I right ?

I have created the MOS, and the message itself.. But in the MOS there is
an attribute for specifying the event which mean I have to create the
SendOperationEvent and RecieveOperationEvent.. right?

I have set the attribute operation to the operation I want to call.. But
I'm having a problem in specifying the owner of the Send/ Recieve
OperationEvent.
it seems that this property is read only.. is there another way to specify
the owner of the Event???
Thanks again for your help..
Re: Sequence Diagram Messages [message #627759 is a reply to message #478576] Thu, 02 July 2009 06:27 Go to previous messageGo to next message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Mary,

since an Event is an PackageableElement, you can add an Event to every
Package. It's derive attribute "owner" will be determined by the
Package, to which it was added.

But let me precise your statement: A message represents either an
operation call or the sendig of a signal (see: SendSignalEvent).

THT
Timothy

mary schrieb:
> Thanks Timothy for your reply, it really helped..
>
> I have a question about the Events for example SendOperationEvent. What
> I understood is that in a sequence diagram each message represent an
> operation call in the corresponding lifeline. And for each operation we
> should create a Send and Recieve Operation Event.. Am I right ?
>
> I have created the MOS, and the message itself.. But in the MOS there is
> an attribute for specifying the event which mean I have to create the
> SendOperationEvent and RecieveOperationEvent.. right?
>
> I have set the attribute operation to the operation I want to call.. But
> I'm having a problem in specifying the owner of the Send/ Recieve
> OperationEvent. it seems that this property is read only.. is there
> another way to specify the owner of the Event???
> Thanks again for your help..
>
>
>
Re: Sequence Diagram Messages [message #627776 is a reply to message #478577] Tue, 07 July 2009 21:39 Go to previous messageGo to next message
mary is currently offline maryFriend
Messages: 22
Registered: July 2009
Junior Member
Hello again,

I am still facing a problem with the ordering of the messages in an
interaction. I understood that the order of MOS, specify the order of the
messages in an interaction diagram.

Let me give you an example to help me explain my problem:
I have an interaction with 2 lifelines and a sequence of messages between
them. I am trying to add a new message to the beginning of the
interaction.

I tried to do that using the property toBefore of the MOS that takes
element of type general Ordering, and in the general Ordering element I
set the property before to the first element of MOS in my interaction. but
unfortunately this way didn’t work.

I am wondering if you have another idea to do this?

Thanks,
Re: Sequence Diagram Messages [message #627942 is a reply to message #478595] Tue, 15 September 2009 12:28 Go to previous message
Karim  is currently offline Karim Friend
Messages: 2
Registered: September 2009
Junior Member
Hello Mary ,
i have the same Problem that yo had with the creation of the message in an interaction . how to create a MessageOccurrenceSpecification when you create a message ? should I add an element MessageOccurrenceSpecification to the GMFmap ? and it's the case it will be a node or a link ? i hope you will guive the answer for all those question ;) thanks a lot .
Previous Topic:Ecore from UML
Next Topic:drawing sequence diagram
Goto Forum:
  


Current Time: Fri Apr 19 19:59:25 GMT 2024

Powered by FUDForum. Page generated in 0.05371 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top