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 - Kaneda

Pages: [1] 2 3
1
General Board / Re: which diagrams qualify for MDA/code generation
« on: July 28, 2005, 12:54:23 am »
ok, I just realized that code generation from a sequence diagramm is not possible.

This is actually a bit of a letdown.
I don't know about the activity diagramm yet (but I will try, shouldn't be so hard to figure out), but I think it would be a GREAT addon to EA if a process like I described above would be possible.

Escpecially in the context of MDA and its continuous rise to ... well, uhm..., becoming maybe the new standard in software development (give or take a couple of years).

As I reviewed multiple MDA-wanna-be tools for what I am currently doing (the final work for my studies), I realized that EA was the only tool I found, which supported right from the start C# model to model generation, and which was on top relativly easily adjustable.

Borland Together - well either way I am too stupid or sth., but I was not willing to spent 3 days for just finding the feature, or it only does its "instand code thing", Rationa XDE has only a Java toolkit (and both come and an horrendous price).
ArcStyler is extremly slow (on my PC), has an extremly UGLY java user interface (bad joke for software at that price I think), but is extremly powerful and extremly customizable. However, the model to model thing is quite new and there are now standard templates (yet), so it involves a lot of work (and knowing Jython).
Well, I won't mention the rest I tested (or tried to)...


So EA is a great product at an even better price, and I think it would be great to remain at that level in regard of current MDA  standards.
Especially with new Together 2006 coming soon (I guess that one will have model to model), and ArcStyler getting probably also a proper stanard template set.

Maybe, as soon as OMGs QVT is finally standardized, Sparx should go for as much model to model and model to code generation as possible...

2
General Board / which diagrams qualify for MDA/code generation?
« on: July 27, 2005, 05:57:10 am »
Hi there, me again :)

which diagrams can be used for an MDA process?

Class diagram if self explanatory, but how about sequence and activity diagrams?
And is it possible, to link these two diagrams with the "ueber"-class diagram?

Or is this done by default, if the classes names fit to each other?

What I hope to achieve is to
a) model my class diagram (with a class "design")
b) model a sequence diagram (for an action within the design class)
c) model an activity diagram (for a decision process within the action modelled in b)
d) let EA generate code for all mentioned above.

Is this possible (maybe with "add child diagramm" in the context menue)?


3
General Board / Re: Create Tagged Values during MDA Transformation
« on: August 16, 2005, 05:25:59 pm »
Thanks very much simon, that is indeed very helpful!

(kind of embarassing that I missed it..)

4
General Board / Create Tagged Values during MDA Transformation
« on: August 15, 2005, 03:44:38 pm »
Hi there,

is it possible, to create Tagged Values for Classes etc. during the model transformation from PIM to PSM?

I somehow have the feeling, that the macros for the Tagged values are read only?

5
General Board / Re: 2 associations betw. classes -- connectorDestR
« on: August 10, 2005, 02:24:08 am »
well, my initial problem is solved ("smart" as I am, I declared the target role pf projectMember private...).

But I still wonder if sth. like my pseudo code up there is possible?

6
General Board / Re: 2 associations betw. classes -- connectorDestR
« on: August 10, 2005, 12:18:13 am »
Hi Simnon, thanks for the reply.

Though I have to admit, I think you misunderstood my question.:)

"builder" and "projectMember" are both roles a firm (target/destination) can have, they have nothing to do with the project (source).
The project-end of the associations (source) has no roles, as I can't think of any (and the association isn't navigable that direction anyway).
Additionally, both source associations have a multiplicity = *.

Is there maybe a way of doing sth like this( pseudo code):

if (connectors.Count > 1)
   get connector.DestRole where connecterConstraint == "union" ?

That way I could alter the template to always use the role of the union association, not any subset association.

7
General Board / 2 associations betw. classes -- connectorDestRole?
« on: August 09, 2005, 02:44:54 pm »
Hi there,

I have two classes (Project and Firm), which are linked by two associations.
The reason is, that a Project can have multiple project members, but additionally up to one, not mandatory builder (its all about construction business stuff...).
The builder though can also be a regular project member at the same time.
A Firm on the other hand can be both projectmember and/or builder in multiple projects.

So I created both associations, where projectMember gets the {union} constraint and builder the {subset} constraint.
I altered the transformations, that if a destinationMulitplicity is of type  (0..*; *; 1..*), that a DataSet will be created within the destination class.

This is how I do it:

%if connectorDestMultiplicity != "0" or connectorDestMultiplicity != "1" or connectorDestMultiplicity != "0..1" %
         $attName=%connectorDestRole%+"sDS"
         $type="DataSet"
         %Property($attName,$type)%
         %Attribute__Prop_Attr($attName,$type)%
%endTemplate%


However, the DataSets often (not always?) ends up with the connectorDestRole of builder, not of projectMember.
Any way to control which connectorDestRole the template uses?

8
General Board / Re: Namespaces
« on: August 09, 2005, 09:53:38 am »
create subpackages for the view which contains your diagram (in the project view panle) and place the classes in the packages.

These packages will be interpreted as namespaces, and accordingly namespaces will be generated.

9
General Board / Re: Same diagram linked to multiple packages
« on: August 09, 2005, 03:30:34 pm »
might I add to that the general question, what linking a diagram to another does?

10
General Board / Re: genOptDefaultDatabase
« on: August 09, 2005, 06:08:00 am »
well, thanks for the help!
Though you didn't answer my initial question, since "genOptDefaultDatabase" is still not mentioned in the user guide  as well as some other stuff ;)

And will there be aconfiguration menu for DDL transformation as there is for the other programming languages in the future?

11
General Board / Re: genOptDefaultDatabase
« on: August 08, 2005, 01:12:05 am »
well this is the answer I feared, because it includes the possibility that I am totally blind and making a fool out of myself right now.

Because, I looked at exactly the parts of the UserGuide (I printed it out completly), and there is no CONVERT_TYPE function makro explainded.

There is a CONVERT_SCOPE which is followed by the CSTYLE_COMMENT.

Either I have an older version of the UserGuide (though I have the current EA version), or I don't know.

If I search for this makro, the user guide finds nothing.
Hence my initial question :)

12
General Board / genOptDefaultDatabase
« on: August 05, 2005, 04:43:45 am »
Hi there,
I am currently looking through the generation templates, and I am wondering again, that there is some stuff in there that I can find in the Help Documentation.

Such as "genOptDefaultDatabase" , which I found while I was looking for the right place to alter the standard DDL attribute type (memo is WAY to big, varchar is enough for me).

Doing that I realized that there is no entry in the options menue for code generation (as there is for C# and others).
Why is that part "hidden"?

And, sorry, but why is so much stuff missing in the help??
I mean there is a lot of stuff appearing in the templates, that are not talked about at all in the help file.
OK, you  don't need a PHD to find out what a CONVERT_TYPE function makro does, but nonetheless...

It shouldn't be so hard to updatethe helpfiles...

13
General Board / Re: Auto-generate Scenarios from an Activity Diagr
« on: July 31, 2005, 11:21:36 pm »
by "auto-Generate Scenarios", do you mean code generation?

14
General Board / Re: "Activation blocks" gone in sequence
« on: August 04, 2005, 05:12:13 am »
thanks for the hint, I will check it out

15
General Board / Re: "Activation blocks" gone in sequence
« on: August 04, 2005, 12:08:08 am »
thanks for the help but that wasn't the problem.

Garbage Collector was already on, and the width on 10 (12 didn't change much).

And since it worked before in a different EA Project with the same settings, I assume some info got lost during export/import.

Pages: [1] 2 3