`
touchmm
  • 浏览: 1038589 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

AndroMDA:是真正的MDA实现吗?

阅读更多


这里有一个老外的blog,其中对AndroMDA是否真正的MDA提出了疑问:

http://andrej.racchvs.com/archives/2003/08/10/is-andromda-really-a-mda-tool/

内容如下:

Is Andromda really a MDA tool?
The Andromda project just released version 2 of their tool. According to their website Andromda is an open source code generation framework that follow the model driver architecture (MDA) paradigm. It’s a nice tool which will generate j2ee code based on xml diagrams saved as xmi files. So you can design your application in an UML tool (e.g., poseidon), save the diagrams, and then use andromda to generate your application.

Andromda支持XMI,那么它对MOF标准的支持如何?

This is all very usefull ofcourse, but how’s this different than UML tools which generate code? What exactly makes this MDA? As i see it, one of the important characteristics of MDA is that is has models on different levels, and you’ll have tool based support to keep these models in sync. The three levels in MDA are PIM, platform independent model, PSM, platform specific model, and the implementation. Currently the combination of Poseidon (or a similar UML tool) and Andromda seems to be missing the PIM level.

原来他是觉得这里缺少了PIM这一层。

Ofcourse, if you know j2ee and uml, and you just want to be more productive, the combination of a UML tool and Andromda might be exactly what you need.

=========================================================

结果恰巧AndroMDA的首席架构师Matthias路过:

Hi folks,

I’m the lead architect and founder of the project AndroMDA and just came across this interesting discussion. I’d like to contribute.

From my point of view, I say: Yes, AndroMDA is an MDA tool. You have asked: What makes it MDA?

谈到MDA是什么?他对MDA的理解:

MDA is all about modeling at a platform-independent level (modeling the PIM) and be able to map this PIM to a concrete technical platform. Two points make this differ from traditional, CASE tool based code generators:
1) The level of abstraction of the PIM is very high.
2) The level is maintained over the whole project lifecycle. The mapping to a concrete platform can be changed “after the fact”.

What does this mean?

Example for 1): A class in the PIM can mean anything. AndroMDA translates the class to whatever artifact you like, one or more of them. A class in the PIM need not mean a class in the implementation language (e.g. a Java class). The mapping function (product of script helper objects and template code) determines which kind of artifacts are generated. The templates and script helpers are written by the target project’s architects.

Example for 2): An element of the PIM can be mapped to a few Java classes today but may be mapped to a table of bytes driving a state machine interpreter tomorrow. The PIM element remains the same and does not know about this. The high level of abstraction is maintained. Compare this to code generation techniques in traditional CASE tools! An EJB in a traditional CASE tool remains an EJB forever, even if you should find out after three months that you prefer a Hibernate object!

Andrej said: “the combination of Poseidon (or a similar UML tool) and Andromda seems to be missing the PIM level.”

No, we are not missing the PIM but the PSM level, in fact. The models that we design are a kind of “marked PIM”, i.e. a PIM with a small amount of additional markup (tagged values) that configures the code generation process. We skip the PSM because we feel that a PSM does not give our users any additional value.

In AndroMDA, we have a demo app that we call “the car rental system”. The PIM of this app is so platform independent that I was able to port the whole system from EJB entity beans to Hibernate objects in only one hour, once I had written the Hibernate cartridge for AndroMDA!

恩,这确实是MDA的初衷也是价值所在。

One fact made this possible: The high level, platform independent architectural patterns of the car rental app remained invariant. Examples:

Each component has a facade.
Each component throws one exception type.

About the PSM:

In AndroMDA 3.0, we’ll try to let Eclipse regenerate a kind of “very low level PSM” from the code (the so called abstract syntax tree, or AST) and let Eclipse make refactorings to it when AndroMDA detects a refactoring at the model level. But, I would rather not call this a PSM, either.

If you want to know more about all this, you have got two options:

Post questions on the andromda-user mailing list at sourceforge.net.
Come to my MDA tutorial at the openMDA 2003 conference on Sept. 15 in Cologne, Germany (see http://www.openmda.de ).

Keep on “MDA-ing”...
Matthias


附录:

下面这个blog中对androMDA的文档给了中文翻译,有兴趣的可以去看:
AndroMDA是什么?-
http://starrynight.blogdriver.com/starrynight/149721.html
AndroMDA:概貌和工作原理- -
http://starrynight.blogdriver.com/starrynight/149726.html

初步印象:

AndroMDA中基于template的形式来进行转换的。从model到text。转换规则被封装为cartridge(Arcstyler中也这么叫)。对于一些特定的应用很有帮助,但未来对于model到model的转换支持,或者说QVT之后的转换实现,目前都觉得不是很清楚……

分享到:
评论

相关推荐

    andromda:新的AndroMDA,由KissMDA提供支持

    而KissMDA(Keep it simple, stupid Model Driven Architecture)则是一个轻量级的MDA实现,它的目标是简化MDA过程,使其更加易于理解和使用。 在AndroMDA与KissMDA的结合中,开发者可以使用UML(统一建模语言)或...

    AndroMDA:轻松地将UML模型转换为代码-开源

    AndroMDA是遵循模型驱动架构(MDA)范式的代码生成框架。 它从UML工具获取UML模型,并生成特定于您的应用程序体系结构的类和可部署组件(J2EE或其他)。 可通过Maven Central(发行版)和Sonatype(快照)获得工件。

    MDA Development

    AndroMDA是一个开源框架,专门用于实现MDA规范。它提供了一种机制,可以根据统一建模语言(Unified Modeling Language,UML)模型自动生成代码。AndroMDA支持多种编程语言和平台,使得开发者能够轻松地在不同的技术...

    mdamdamdamda

    总之,MDA和AndroMDA是软件开发中提升效率和质量的有效工具,它们通过模型驱动的方式,降低了开发复杂度,使开发者能更专注于业务逻辑,而不是底层实现。在Android应用开发领域,AndroMDA尤其有价值,它可以帮助...

    textile_2.6_2.9.1-1-1.3.zip

    Andromda通过将业务逻辑与呈现层分离,允许开发者专注于业务规则,而无需过多关注底层实现细节,提高了开发效率和代码质量。 Sbt-Andromda是Andromda的一个扩展,它是一个针对Andromda的sbt插件。sbt作为Scala项目...

    UML开发工具一览表

    AndroMDA通过代码生成和反向工程,实现了模型与代码之间的双向转换,极大地提高了开发效率。 ### ArcStyler:全面的J2EE/.NET系统开发套件 ArcStyler是由德国的InteractiveObjectsSoftware开发的UML工具,版本5.5...

    Modelling and Generating Ajax Applications A Model-Driven Approach

    ##### Key Concepts in MDA: - **Computational Independent Models (CIMs)**: Represent the highest level of abstraction and capture the domain-specific requirements. - **Platform Independent Models (PIMs...

    UML相关工具一览(2009年10月)

    - **备注**: 遵循MDA流程,能够生成超过90%的J2EE和.NET平台代码,2003年获得了Jolt Productivity Award奖项。 #### Rational Rose - **最新版本**: 2000e 或更新版本 - **厂商&地址**: Rational XDE 2003, Borland...

    Basegen-开源

    Basegen是基于AndroMDA的开源MDA代码生成工具。 它以一种简单的方式从UML模型快速生成整个应用程序。 Basegen使用最先进的技术,例如:Maven,Rich Faces,MyFaces,Spring,Hibernate,JasperReports,Spr

Global site tag (gtag.js) - Google Analytics