Login | Register
My pages Projects Community openCollabNet

Discussions > modules-dev > Re: [argouml-modules-dev] Code generation

argouml
Discussion topic

Back to topic list

Re: [argouml-modules-dev] Code generation

Author Frank Raiser <frank dot raiser at uni-ulm dot de>
Full name Frank Raiser <frank dot raiser at uni-ulm dot de>
Date 2005-07-27 02:30:47 PDT
Message On Tue, Jul 26, 2005 at 11:34:17PM +0100, Luis Sergio Oliveira wrote:
> Hi Frank,

Hello Luis,

> the best way to get moving is to check the other code generation
> modules sources, available through CVS.

I already looked at them, however I got confused with the new vs old
module loader and apparently all modules in CVS use the old loader.

> Now, to get the code generator working it must make available a
> manifest which publishes the class that implements the Pluggable
> interface. I.e., in the argouml/modules/cpp/​src/manifest.mf you
> find the entries:
>
[...]
>
> Of course this is the old style modules, as I don't know these new style
> you're referring...

What I did now was implementing org.argouml.modulelo​ader.ModuleInterface​
instead of Pluggable. Apparently there is at least half of an implementation
for the new loader, as it did accept my module. Makes me wonder if the concepts
can be mixed. Could I use my current module and subclass Generator2 and
implement FileGenerator to get it working (similar to the CSharp generator?)

> Check the unit tests in the C++ Generator module. There we create models to
> test code generation. The model API is excercised in a very simple way
> there.
> (modules/cpp/tests)

Thanks. I'll take a look at it.

> The ArgoUML java RTE is already implemented, altough a bit limited, in
> the sence
> the code generation may be in my opinium much improved (lack of javadoc
> support)
> and the RTE dialog isn't very functional. That said, I think you may
> start from there!
> The GeneratorJava and JavaImport are in the argouml/src_new directory.
> The RTE
> module is in the argouml/modules/java_rte directory. Install this RTE
> module
> and make some tests. This might be the best path to start.

I know about the existence of the java generator and import. In the java_rte
directory however I can only see code for the dialog and an empty rte/
directory. Where's the actual logic? Or is the RTE supposed to simply regenerate
code when the diagram changed and vice versa? Or is the generator more intelligent
than I thought and it works incrementally?

PS: Is there a place where the concept of the 'Notation's occuring everywhere in
modules is explained? I currently can't figure out what a Notation is, what it's
good for and why I have to care about it all.

Thanks,
--
Raiser, Frank
Student @ University of Ulm (www.uni-ulm.de)

I don't see the logic of rejecting data just because they seem incredible.
(Fred Hoyle)

« Previous message in topic | 3 of 9 | Next message in topic »

Messages

Show all messages in topic

Code generation Frank Raiser <frank dot raiser at uni-ulm dot de> Frank Raiser <frank dot raiser at uni-ulm dot de> 2005-07-25 16:06:38 PDT
     Re: [argouml-modules-dev] Code generation Luis Sergio Oliveira <euluis at zmail dot pt> Luis Sergio Oliveira <euluis at zmail dot pt> 2005-07-26 15:34:17 PDT
         Re: [argouml-modules-dev] Code generation Frank Raiser <frank dot raiser at uni-ulm dot de> Frank Raiser <frank dot raiser at uni-ulm dot de> 2005-07-27 02:30:47 PDT
             RE: [argouml-modules-dev] Code generation linus Linus Tolke 2005-07-27 13:38:10 PDT
                 Re: [argouml-modules-dev] Code generation Frank Raiser <frank dot raiser at uni-ulm dot de> Frank Raiser <frank dot raiser at uni-ulm dot de> 2005-07-30 05:02:38 PDT
             Re: [argouml-modules-dev] Code generation Luis Sergio Oliveira <euluis at zmail dot pt> Luis Sergio Oliveira <euluis at zmail dot pt> 2005-07-27 15:42:21 PDT
                 Re: [argouml-modules-dev] Code generation Frank Raiser <frank dot raiser at uni-ulm dot de> Frank Raiser <frank dot raiser at uni-ulm dot de> 2005-07-30 05:27:37 PDT
     RE: [argouml-modules-dev] Code generation linus Linus Tolke 2005-07-26 21:46:48 PDT
         Re: [argouml-modules-dev] Code generation Frank Raiser <frank dot raiser at uni-ulm dot de> Frank Raiser <frank dot raiser at uni-ulm dot de> 2005-07-27 01:55:10 PDT
Messages per page: