Introduction to AndroMDA

xiaoxiao2021-03-06  41

AndroMDA is an open source code generation framework that follows MDA specifications: Gets the model from the Case tool to generate all deployable applications and other components.

1, what is AndroMDA?

l AndroMDA is an open source MDA framework

l It accepts various models (usually generated by the Case tool in XML model), combined with various AndroMDA plugins (CARTRIMDA plugins, generate various custom components)

l You can use a variety of languages, such as Java, .NET, HTML, PHP, or by writing (or existing) plug-ins.

2, MDA and code generation

l Use MDA to simplify developers and architects to make them simpler. Mental Model or MM): Make them to create a platform-independent model (PIM), this model is in a quite One-or-one mapping in formal language (such as UML)

l Use the benefits of MDA:

Ø Very direct conversion process

Ø Developers and architects will focus on business logic, not underlying technology

Ø PIM can be reused instead of binding to any existing platform

Ø PIM is useful to communicate with other ideas

l The next step is to convert PIM as program code: MDA method is a model (PSM) that gradually refines the model into a specific platform, parsing the model to actually write code.

l For AndroMDA, there are different Cartridge, and the given PIM will be analyzed by creating a PSM by template to generate code.

l AndroMDA's conversion process is controlled by a plugin called Cartridge

l AndroMDA helps to eliminate those tired and repeated tasks

3, why should I use AndroMDA?

l Eliminate the preparation of extra code

l project model reflection code

l Project use standard platform-independent method documentation and chart, making it simpler and fast to adapt to rapid changes

l Your model allows you to communicate more simpler.

4, what can AndroMDA do?

l The current andROMDA is mainly used for the development of J2EE technology, and can create J2EE projects that use UML generated code.

l You can choose to generate code using Hibernate, EJB, Spring, WebServices, or Struts, and the generation of code is automatically integrated into the build process.

5, how to work with AndroMDA

l AndroMDA read model to memory so that these object models are valid for its plugin

l These plugins are accurately defined what is or not AndroMDA to be generated.

l Each plugin can be customized according to the special needs of the project.

转载请注明原文地址:https://www.9cbs.com/read-73111.html

New Post(0)