Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Rich_Lynch on March 26, 2002, 11:09:47 am

Title: function call origin?
Post by: Rich_Lynch on March 26, 2002, 11:09:47 am
Being new to UML and even newer to EA, I am stumped.

Is there a way in UML (and then in EA) to specify which method a call originates from in a sequence diagram?  

As a term project for grad school, I have to write a source code generator that takes in an xmi file.  So far I can generate the function declarations, but the implementations are empty.  I would think that there is a way to capture the function calls as seen in the sequence diagram.

Thanks in advance...
Title: Re: function call origin?
Post by: Kalyan on March 28, 2002, 02:28:13 pm
I really would love to be able to do this. UML allows this as :

||
||---
||    |
|||<-  Object calls Func1 on itself
|||
|||---
|||    | Func 1 causes a call to func2 on the same object.
||||<-
||||--------> func2 Calls into some other object from here.
|||  Func 2 returns to Func 1.
|||-----------> Maybe func 1 calls into some object here.  
||  Func 1 returns. The call context is in the original context.

I wish EA allowed this. It allows calls into itself , but the context is kind of lost. This would be a wonderful feature to add.
Title: Re: function call origin?
Post by: TLCowart on April 25, 2002, 08:29:39 am
The ability to specify signals on self calls is a very important feature.  Fortunately, it was addressed in the latest build (version 3.10 build 485).

I for one am also happy about this.  Resolution of this issue has dramatically increased the likelyhood that we will recommend this product as our standard design tool.