Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Sequence Diagrams - creating a message which source and target is the same lifeline
Sequence Diagrams - creating a message which source and target is the same lifeline [message #626176] Tue, 11 March 2008 02:42
Eclipse UserFriend
Originally posted by:

Hi list,

i am currently working on small tool(bachelor exam) which creates
sequence diagrams from java sourcecode. I am able to create most of the
elements i need (Lifelines, Messages, Occurrence/Execution
Specifications,...). I am tweaking my tool so the IBM Rational Software
Modeler has no problem visualizing the model it creates. Most of my
"knowledge" comes from looking at models create by IBM Rat. Soft. Mod.
and other tools (Topcased UML, MagicDraw CE, ..). Although i've come
pretty far, i hit a dead end. I can't figure out how to create a message
from a lifeline back to itself so that the visualization shows a new
Behavior Occurrence Specification. I attached the code i use to create a
messages and to create a new Behavioral Occurrence Specification (BOS).
After the creation of the BOS i invoke
"recvExecutionSpec.getCovereds().add(lifelineSend);" (being
recvExecutionSpec the new BOS and lifelineSend the lifeline it was
created from (although only the name is used in the actual createBOS
method). Is there anything i have to look for when i want to create a
"nested" BOS to create a recursive message? I noticed that the IBM Rat.
Soft. Mod. creates Execution Events and Execution Occurrence
Specifications if i create a model visually, are there the key?

Aside from the actual question i would be very grateful for any links
and snippets (you may be able to release) which deal with the
"programmatically" creation of the UML models (especially sequence
diagram). I think i exhausted the material a newbie is able to google
and find on this newsgroup :/
Is there maybe any information available in the uml spec that i missed?
I also want to apologize for my bad english since i'm from germany.


Previous Topic:UML2 for activity&composite diagram?
Next Topic:dependency and allocation
Goto Forum:

Current Time: Fri Aug 12 15:38:38 GMT 2022

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

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

Back to the top