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 10:57  |
Eclipse User |
|
|
|
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 #472907 is a reply to message #472906] |
Mon, 14 May 2007 16:51   |
Eclipse User |
|
|
|
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 #472981 is a reply to message #472979] |
Wed, 23 May 2007 17:46  |
Eclipse User |
|
|
|
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 13:44  |
Eclipse User |
|
|
|
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 14:09  |
Eclipse User |
|
|
|
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 16:09  |
Eclipse User |
|
|
|
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 16:51  |
Eclipse User |
|
|
|
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 #617532 is a reply to message #472979] |
Wed, 23 May 2007 17:46  |
Eclipse User |
|
|
|
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
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>
>>>
>>
>
>
|
|
|
Goto Forum:
Current Time: Mon Jul 07 00:01:02 EDT 2025
Powered by FUDForum. Page generated in 0.25192 seconds
|