Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - aram

Pages: [1]
1
It would be nice to have the possibility to transform and generate code from behavior models such as action diagrams, finite state machines.

2
General Board / Re: model transformations
« on: June 16, 2006, 02:04:31 am »
Thomas,

seems indeed too much work. I still need a couple of things and maybe I can fix it without the "hack" you suggested.

The documentation of the current transformation language is huge but still seems incomplete. Like I don't understand the semantics of
$var = %Class__X%. What I'd like to have is to be able to obtain a reference or classGUID of the newly generated class.

Another thing - is there any function that could retrieve classGUID by class name?

Last question - can I pass parameters to list macros? E.g.:
%list="Class($parameter1, $parameter2)" @separator="\n" @indent="  "%

Thanks.

3
General Board / Re: model transformations
« on: June 15, 2006, 01:31:36 am »
Thomas,

Can I see a couple of sample perl files. How do you access the model and all? It is still pretty obscure for me.

Moreover, I still do not see how could I transform behavior models and generate code from them.

4
General Board / Re: model transformations
« on: June 14, 2006, 06:16:33 am »
Thanks for the info Thomaskilian

The only thing is - i've tried to search for the keyword EA_EXE_ADDIN however it doesn't find any results.

could you help me out.

thanks a lot.

5
General Board / model transformations
« on: June 14, 2006, 05:57:24 am »
I'm writing a model transformation templates which should merge several models. However I don't see how can I do the following.

I have a class X associated with Y (X->Y). The class Y is associated with Z. So what I have is X->Y->Z. I need to transform this to X associated with Z. Y should be deleted.
So what I don't know is how do I lets say get all the associations that have the current class as a Target.

Also where could I find more information on model transformations as the tutorial is not 100% helpful.
Thanks.

6
General Board / Behavior model transformations and code-generation
« on: June 11, 2006, 01:25:43 am »
Is there any way I could write transformations between for instance Action Diagram models? Any tricks to generate code from Action Diagrams?
If not, is Sparx Systems planning to introduce that?

I have tomorrow a presentation for a European level MARTES ITEA project http://www.martes-itea.org where I will present a small case-study worked out in EA. Would be nice to have complete info on dynamic models. I couldn't find anything on this in the help.

Thankx in advance.

7
General Board / Re: C++ code generation errors
« on: May 30, 2006, 06:23:29 am »
So what should I do to have
*variable = newVal
instead of the currently generated
variable = newVal

8
General Board / Re: C++ code generation errors
« on: May 30, 2006, 04:41:12 am »
its in the C++ Language Operation Body template.

I've tried to remove the lines
%if opCode != ""%
%WRAP_LINES(opCode, "-1", "\t", "")%
then i don't get any getter/setter implementation which means that the whole thing is being done exactly in the opCode macro.

thnx.

9
General Board / C++ code generation errors
« on: May 30, 2006, 12:50:25 am »
The C++ code generation template introduces simple errors when generating the code. For association classes it generates a pointer variable however in the getters and setters it uses this variable as an value object.

I've tried to modify the template but I got stuck in the following lines:

%if opCode != ""%
%WRAP_LINES(opCode, "-1", "\t", "")%

This opCode produces the getter/setter method implementation. However it is not explained anywhere how is opCode constructed and how could one modify it.

10
Uml Process / Re: Named element dependencies (UML 2)
« on: August 08, 2006, 11:23:58 pm »
At our university we have developed "A modular access control service for supporting application-specific policies" (http://dsonline.computer.org/portal/site/dsonline/menuitem.6dd2a408dbe4a94be487e0606bcd45f3/index.jsp?&pName=dso_level1_article&TheCat=&path=dsonline/2006/06&file=o6001.xml&). The main idea is to have a separate corporate-wide security model for subjects and objects and to map them on the application specific domain. From the two models and this mapping it should be possible to generate the full source code for CaesarJ.
I was hoping to implement this using EA.

11
Uml Process / Named element dependencies (UML 2)
« on: August 08, 2006, 05:53:29 am »
According to the UML2 metamodel dependencies are allowed between 2 any named elements. However in EA I can only denote dependencies between classes. What I would like to do is have a dependency between two methods or two attributes.
Will this be fixed in future releases?

Thanks.

12
Is there a way to invoke a transformation template from another one?
More specific: I am trying to make one EJB template that transforms the whole model onto the EJB domain according to the class stereotypes.
So what I need to do is very simple. Check the stereotype of the class and if it is a Session I invoke the EJB Session template.
If this is possible I have another question - how do I tell to the EJB Session template which class to transform.

Thanks

Pages: [1]