Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Sequence Diagram - How to create Combine Fragments correctly?
Sequence Diagram - How to create Combine Fragments correctly? [message #472901] Mon, 14 May 2007 14:57 Go to next message
Eclipse UserFriend
Originally posted by: joerg.weinmann.iese.fraunhofer.de

Hi,

I would like to create a UML2 EMF model which should represent a Sequence
diagram. In this diagram I would like to use a UML2 "loop" fragment and add
some messages to this loop. Can somebody give me an example how the EMF
model file looks like for this scenario?

Thanks for your effort,
J
Re: Sequence Diagram - How to create Combine Fragments correctly? [message #472904 is a reply to message #472901] Mon, 14 May 2007 17:44 Go to previous messageGo to next message
Andrew Carton is currently offline Andrew CartonFriend
Messages: 104
Registered: July 2009
Senior Member
Hey Jörg,

Go get yourself magicdraw CE (Community Edition). Draw a sequence
diagram or two and then File->Export EMF. You can them paste all these
files into eclipse and load up the UML 2 tree editor to see how it is
done. SDs are pretty tough - a tutorial on them would be nice :)

Regards,
Andrew.

news.eclipse.org wrote:
> Hi,
>
> I would like to create a UML2 EMF model which should represent a Sequence
> diagram. In this diagram I would like to use a UML2 "loop" fragment and add
> some messages to this loop. Can somebody give me an example how the EMF
> model file looks like for this scenario?
>
> Thanks for your effort,
> Jörg
>
>
>
>
>
Re: Sequence Diagram - How to create Combine Fragments correctly? [message #472905 is a reply to message #472904] Mon, 14 May 2007 18:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: joerg.weinmann.iese.fraunhofer.de

Hi Andrew,

thank you for the quick answer. I will download MagicDraw und try it out.
Actually I wanted to use the Sequence Diagram Editor of Topcased, but I do
not know if the model that gets created by this editor is really what it
should be. Maybe it's a bug in the editor.

Does anbody know a good sequence editor which exports XMI and can be used in
a commercial context for free?

Cheers,
J
Re: Sequence Diagram - How to create Combine Fragments correctly? [message #472906 is a reply to message #472904] Mon, 14 May 2007 20:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: joerg.weinmann.iese.fraunhofer.de

I did as you told me, but I get the same irritating results.

My problem: I would like to know which messages are part of a interaction
fragment (alt, loop, seq, etc.). It seems to me that it is only possible to
get a reference to the covered lifelines but not to particular messages. Is
this correct?

Cheers,
J
Re: Sequence Diagram - How to create Combine Fragments correctly? [message #472907 is a reply to message #472906] Mon, 14 May 2007 20:51 Go to previous messageGo to next message
Andrew Carton is currently offline Andrew CartonFriend
Messages: 104
Registered: July 2009
Senior Member
Hey Jörg,

I am trying to figure interaction diagrams too. From my little
knowledge, Messages aren't actually attached to lifelines. They are
attached to MessageEnds. Now OccurenceSpecifications are actually
"covered" by a Lifeline. A MessageOccurenceSpecification is a mix of the
two - a MessageEnd and an OccurenceSpecification.
MessageOccurenceSpecifications are what you are probably going to be using.

So try doing a myLifeline.getCoveredBys() and do a check "instanceof
MessageOccurenceSpecification" and then myMOS.getMessage() ?

There is probably a more elegant solution though..

Regards,
Andrew


news.eclipse.org wrote:
> I did as you told me, but I get the same irritating results.
>
> My problem: I would like to know which messages are part of a interaction
> fragment (alt, loop, seq, etc.). It seems to me that it is only possible to
> get a reference to the covered lifelines but not to particular messages. Is
> this correct?
>
> Cheers,
> Jörg
>
> "Andrew Carton" <cartona@cs.tcd.ie> wrote in message
> news:f2a74u$679$1@build.eclipse.org...
>> Hey Jörg,
>>
>> Go get yourself magicdraw CE (Community Edition). Draw a sequence diagram
>> or two and then File->Export EMF. You can them paste all these files into
>> eclipse and load up the UML 2 tree editor to see how it is done. SDs are
>> pretty tough - a tutorial on them would be nice :)
>>
>> Regards,
>> Andrew.
>>
>> news.eclipse.org wrote:
>>> Hi,
>>>
>>> I would like to create a UML2 EMF model which should represent a Sequence
>>> diagram. In this diagram I would like to use a UML2 "loop" fragment and
>>> add
>>> some messages to this loop. Can somebody give me an example how the EMF
>>> model file looks like for this scenario?
>>>
>>> Thanks for your effort,
>>> Jörg
>>>
>>>
>>>
>>>
>
Re: Sequence Diagram - How to create Combine Fragments correctly? [message #472909 is a reply to message #472907] Tue, 15 May 2007 14:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: joerg.weinmann.iese.fraunhofer.de

Hi Andrew,

yeah, but then you will get all the messages of that lifeline. But I want to
get the messages in a CombinedFragment (like "loop").

Please take a look at the attached image. Now I would like to get the Ping
and Pong message but not the "donot get me" message, because it is not part
of the "loop" fragement. Do you know how to get that?

Thanks,
J
  • Attachment: seq.PNG
    (Size: 10.45KB, Downloaded 348 times)
Re: Sequence Diagram - How to create Combine Fragments correctly? [message #472973 is a reply to message #472909] Wed, 23 May 2007 01:14 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Jorg,

Your combined fragment is an InteractionFragment. The InteractionFragment
has an enclosing interaction. From that interaction you can call
getMessages().

Hope that helps.

- James.

"J
Re: Sequence Diagram - How to create Combine Fragments correctly? [message #472979 is a reply to message #472973] Wed, 23 May 2007 21:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: joerg.weinmann.iese.fraunhofer.de

Thanks for your reply.

I figured that the eclipse uml2 model is fine, but the editor (Topcased)
does not translate the graphical representation into a correct uml2 model
instance.

Again thanks,
J
Re: Sequence Diagram - How to create Combine Fragments correctly? [message #472981 is a reply to message #472979] Wed, 23 May 2007 21:46 Go to previous message
Andrew Carton is currently offline Andrew CartonFriend
Messages: 104
Registered: July 2009
Senior Member
Hey Jörg,

Sorry I couldn't help you further. I am also frustrated that I can find
no tool to view sequence diagrams correctly. If you find something free
let me know! I think they may start working for something to do seq
diagrams over at uml2tools project soon!

Regards,
Andrew.

Jörg Weinmann wrote:
> Thanks for your reply.
>
> I figured that the eclipse uml2 model is fine, but the editor (Topcased)
> does not translate the graphical representation into a correct uml2 model
> instance.
>
> Again thanks,
> Jörg
>
> "James Bruck" <jbruck@ca.ibm.com> wrote in message
> news:f304c2$bn5$1@build.eclipse.org...
>> Hi Jorg,
>>
>> Your combined fragment is an InteractionFragment. The
>> InteractionFragment has an enclosing interaction. From that interaction
>> you can call getMessages().
>>
>> Hope that helps.
>>
>> - James.
>>
>> "Jörg Weinmann" <joerg.weinmann@iese.fraunhofer.de> wrote in message
>> news:f2cghn$6ck$1@build.eclipse.org...
>>> Hi Andrew,
>>>
>>> yeah, but then you will get all the messages of that lifeline. But I want
>>> to get the messages in a CombinedFragment (like "loop").
>>>
>>> Please take a look at the attached image. Now I would like to get the
>>> Ping and Pong message but not the "donot get me" message, because it is
>>> not part of the "loop" fragement. Do you know how to get that?
>>>
>>> Thanks,
>>> Jörg
>>>
>>> "Andrew Carton" <cartona@cs.tcd.ie> wrote in message
>>> news:f2ai4n$3o8$1@build.eclipse.org...
>>>> Hey Jörg,
>>>>
>>>> I am trying to figure interaction diagrams too. From my little
>>>> knowledge, Messages aren't actually attached to lifelines. They are
>>>> attached to MessageEnds. Now OccurenceSpecifications are actually
>>>> "covered" by a Lifeline. A MessageOccurenceSpecification is a mix of the
>>>> two - a MessageEnd and an OccurenceSpecification.
>>>> MessageOccurenceSpecifications are what you are probably going to be
>>>> using.
>>>>
>>>> So try doing a myLifeline.getCoveredBys() and do a check "instanceof
>>>> MessageOccurenceSpecification" and then myMOS.getMessage() ?
>>>>
>>>> There is probably a more elegant solution though..
>>>>
>>>> Regards,
>>>> Andrew
>>>>
>>>>
>>>> news.eclipse.org wrote:
>>>>> I did as you told me, but I get the same irritating results.
>>>>>
>>>>> My problem: I would like to know which messages are part of a
>>>>> interaction
>>>>> fragment (alt, loop, seq, etc.). It seems to me that it is only
>>>>> possible to
>>>>> get a reference to the covered lifelines but not to particular
>>>>> messages. Is
>>>>> this correct?
>>>>>
>>>>> Cheers,
>>>>> Jörg
>>>>>
>>>>> "Andrew Carton" <cartona@cs.tcd.ie> wrote in message
>>>>> news:f2a74u$679$1@build.eclipse.org...
>>>>>> Hey Jörg,
>>>>>>
>>>>>> Go get yourself magicdraw CE (Community Edition). Draw a sequence
>>>>>> diagram
>>>>>> or two and then File->Export EMF. You can them paste all these files
>>>>>> into
>>>>>> eclipse and load up the UML 2 tree editor to see how it is done. SDs
>>>>>> are
>>>>>> pretty tough - a tutorial on them would be nice :)
>>>>>>
>>>>>> Regards,
>>>>>> Andrew.
>>>>>>
>>>>>> news.eclipse.org wrote:
>>>>>>> Hi,
>>>>>>>
>>>>>>> I would like to create a UML2 EMF model which should represent a
>>>>>>> Sequence
>>>>>>> diagram. In this diagram I would like to use a UML2 "loop" fragment
>>>>>>> and
>>>>>>> add
>>>>>>> some messages to this loop. Can somebody give me an example how the
>>>>>>> EMF
>>>>>>> model file looks like for this scenario?
>>>>>>>
>>>>>>> Thanks for your effort,
>>>>>>> Jörg
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>
>>>
>>
>
>
Re: Sequence Diagram - How to create Combine Fragments correctly? [message #615863 is a reply to message #472901] Mon, 14 May 2007 17:44 Go to previous message
Andrew Carton is currently offline Andrew CartonFriend
Messages: 104
Registered: July 2009
Senior Member
Hey Jörg,

Go get yourself magicdraw CE (Community Edition). Draw a sequence
diagram or two and then File->Export EMF. You can them paste all these
files into eclipse and load up the UML 2 tree editor to see how it is
done. SDs are pretty tough - a tutorial on them would be nice :)

Regards,
Andrew.

news.eclipse.org wrote:
> Hi,
>
> I would like to create a UML2 EMF model which should represent a Sequence
> diagram. In this diagram I would like to use a UML2 "loop" fragment and add
> some messages to this loop. Can somebody give me an example how the EMF
> model file looks like for this scenario?
>
> Thanks for your effort,
> Jörg
>
>
>
>
>
Re: Sequence Diagram - How to create Combine Fragments correctly? [message #615864 is a reply to message #472904] Mon, 14 May 2007 18:09 Go to previous message
Eclipse UserFriend
Originally posted by: joerg.weinmann.iese.fraunhofer.de

Hi Andrew,

thank you for the quick answer. I will download MagicDraw und try it out.
Actually I wanted to use the Sequence Diagram Editor of Topcased, but I do
not know if the model that gets created by this editor is really what it
should be. Maybe it's a bug in the editor.

Does anbody know a good sequence editor which exports XMI and can be used in
a commercial context for free?

Cheers,
J
Re: Sequence Diagram - How to create Combine Fragments correctly? [message #615866 is a reply to message #472904] Mon, 14 May 2007 20:09 Go to previous message
Eclipse UserFriend
Originally posted by: joerg.weinmann.iese.fraunhofer.de

I did as you told me, but I get the same irritating results.

My problem: I would like to know which messages are part of a interaction
fragment (alt, loop, seq, etc.). It seems to me that it is only possible to
get a reference to the covered lifelines but not to particular messages. Is
this correct?

Cheers,
J
Re: Sequence Diagram - How to create Combine Fragments correctly? [message #615867 is a reply to message #472906] Mon, 14 May 2007 20:51 Go to previous message
Andrew Carton is currently offline Andrew CartonFriend
Messages: 104
Registered: July 2009
Senior Member
Hey Jörg,

I am trying to figure interaction diagrams too. From my little
knowledge, Messages aren't actually attached to lifelines. They are
attached to MessageEnds. Now OccurenceSpecifications are actually
"covered" by a Lifeline. A MessageOccurenceSpecification is a mix of the
two - a MessageEnd and an OccurenceSpecification.
MessageOccurenceSpecifications are what you are probably going to be using.

So try doing a myLifeline.getCoveredBys() and do a check "instanceof
MessageOccurenceSpecification" and then myMOS.getMessage() ?

There is probably a more elegant solution though..

Regards,
Andrew


news.eclipse.org wrote:
> I did as you told me, but I get the same irritating results.
>
> My problem: I would like to know which messages are part of a interaction
> fragment (alt, loop, seq, etc.). It seems to me that it is only possible to
> get a reference to the covered lifelines but not to particular messages. Is
> this correct?
>
> Cheers,
> Jörg
>
> "Andrew Carton" <cartona@cs.tcd.ie> wrote in message
> news:f2a74u$679$1@build.eclipse.org...
>> Hey Jörg,
>>
>> Go get yourself magicdraw CE (Community Edition). Draw a sequence diagram
>> or two and then File->Export EMF. You can them paste all these files into
>> eclipse and load up the UML 2 tree editor to see how it is done. SDs are
>> pretty tough - a tutorial on them would be nice :)
>>
>> Regards,
>> Andrew.
>>
>> news.eclipse.org wrote:
>>> Hi,
>>>
>>> I would like to create a UML2 EMF model which should represent a Sequence
>>> diagram. In this diagram I would like to use a UML2 "loop" fragment and
>>> add
>>> some messages to this loop. Can somebody give me an example how the EMF
>>> model file looks like for this scenario?
>>>
>>> Thanks for your effort,
>>> Jörg
>>>
>>>
>>>
>>>
>
Re: Sequence Diagram - How to create Combine Fragments correctly? [message #615873 is a reply to message #472907] Tue, 15 May 2007 14:42 Go to previous message
Eclipse UserFriend
Originally posted by: joerg.weinmann.iese.fraunhofer.de

Hi Andrew,

yeah, but then you will get all the messages of that lifeline. But I want to
get the messages in a CombinedFragment (like "loop").

Please take a look at the attached image. Now I would like to get the Ping
and Pong message but not the "donot get me" message, because it is not part
of the "loop" fragement. Do you know how to get that?

Thanks,
J
  • Attachment: seq.PNG
    (Size: 10.45KB, Downloaded 269 times)
Re: Sequence Diagram - How to create Combine Fragments correctly? [message #617180 is a reply to message #472909] Wed, 23 May 2007 01:14 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Jorg,

Your combined fragment is an InteractionFragment. The InteractionFragment
has an enclosing interaction. From that interaction you can call
getMessages().

Hope that helps.

- James.

"J
Re: Sequence Diagram - How to create Combine Fragments correctly? [message #617528 is a reply to message #472973] Wed, 23 May 2007 21:01 Go to previous message
Eclipse UserFriend
Originally posted by: joerg.weinmann.iese.fraunhofer.de

Thanks for your reply.

I figured that the eclipse uml2 model is fine, but the editor (Topcased)
does not translate the graphical representation into a correct uml2 model
instance.

Again thanks,
J
Re: Sequence Diagram - How to create Combine Fragments correctly? [message #617532 is a reply to message #472979] Wed, 23 May 2007 21:46 Go to previous message
Andrew Carton is currently offline Andrew CartonFriend
Messages: 104
Registered: July 2009
Senior Member
Hey Jörg,

Sorry I couldn't help you further. I am also frustrated that I can find
no tool to view sequence diagrams correctly. If you find something free
let me know! I think they may start working for something to do seq
diagrams over at uml2tools project soon!

Regards,
Andrew.

Jörg Weinmann wrote:
> Thanks for your reply.
>
> I figured that the eclipse uml2 model is fine, but the editor (Topcased)
> does not translate the graphical representation into a correct uml2 model
> instance.
>
> Again thanks,
> Jörg
>
> "James Bruck" <jbruck@ca.ibm.com> wrote in message
> news:f304c2$bn5$1@build.eclipse.org...
>> Hi Jorg,
>>
>> Your combined fragment is an InteractionFragment. The
>> InteractionFragment has an enclosing interaction. From that interaction
>> you can call getMessages().
>>
>> Hope that helps.
>>
>> - James.
>>
>> "Jörg Weinmann" <joerg.weinmann@iese.fraunhofer.de> wrote in message
>> news:f2cghn$6ck$1@build.eclipse.org...
>>> Hi Andrew,
>>>
>>> yeah, but then you will get all the messages of that lifeline. But I want
>>> to get the messages in a CombinedFragment (like "loop").
>>>
>>> Please take a look at the attached image. Now I would like to get the
>>> Ping and Pong message but not the "donot get me" message, because it is
>>> not part of the "loop" fragement. Do you know how to get that?
>>>
>>> Thanks,
>>> Jörg
>>>
>>> "Andrew Carton" <cartona@cs.tcd.ie> wrote in message
>>> news:f2ai4n$3o8$1@build.eclipse.org...
>>>> Hey Jörg,
>>>>
>>>> I am trying to figure interaction diagrams too. From my little
>>>> knowledge, Messages aren't actually attached to lifelines. They are
>>>> attached to MessageEnds. Now OccurenceSpecifications are actually
>>>> "covered" by a Lifeline. A MessageOccurenceSpecification is a mix of the
>>>> two - a MessageEnd and an OccurenceSpecification.
>>>> MessageOccurenceSpecifications are what you are probably going to be
>>>> using.
>>>>
>>>> So try doing a myLifeline.getCoveredBys() and do a check "instanceof
>>>> MessageOccurenceSpecification" and then myMOS.getMessage() ?
>>>>
>>>> There is probably a more elegant solution though..
>>>>
>>>> Regards,
>>>> Andrew
>>>>
>>>>
>>>> news.eclipse.org wrote:
>>>>> I did as you told me, but I get the same irritating results.
>>>>>
>>>>> My problem: I would like to know which messages are part of a
>>>>> interaction
>>>>> fragment (alt, loop, seq, etc.). It seems to me that it is only
>>>>> possible to
>>>>> get a reference to the covered lifelines but not to particular
>>>>> messages. Is
>>>>> this correct?
>>>>>
>>>>> Cheers,
>>>>> Jörg
>>>>>
>>>>> "Andrew Carton" <cartona@cs.tcd.ie> wrote in message
>>>>> news:f2a74u$679$1@build.eclipse.org...
>>>>>> Hey Jörg,
>>>>>>
>>>>>> Go get yourself magicdraw CE (Community Edition). Draw a sequence
>>>>>> diagram
>>>>>> or two and then File->Export EMF. You can them paste all these files
>>>>>> into
>>>>>> eclipse and load up the UML 2 tree editor to see how it is done. SDs
>>>>>> are
>>>>>> pretty tough - a tutorial on them would be nice :)
>>>>>>
>>>>>> Regards,
>>>>>> Andrew.
>>>>>>
>>>>>> news.eclipse.org wrote:
>>>>>>> Hi,
>>>>>>>
>>>>>>> I would like to create a UML2 EMF model which should represent a
>>>>>>> Sequence
>>>>>>> diagram. In this diagram I would like to use a UML2 "loop" fragment
>>>>>>> and
>>>>>>> add
>>>>>>> some messages to this loop. Can somebody give me an example how the
>>>>>>> EMF
>>>>>>> model file looks like for this scenario?
>>>>>>>
>>>>>>> Thanks for your effort,
>>>>>>> Jörg
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>
>>>
>>
>
>
Previous Topic:UML naming rules for named elements
Next Topic:Component removal.
Goto Forum:
  


Current Time: Thu Apr 18 23:11:20 GMT 2024

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

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

Back to the top