MDA with Eclipse : Acceleo 2.0.0 generates JEE applications

Acceleo作为一款开源代码生成工具,支持多种技术如JEE、PHP、C#等,通过图形化的UML模型设计,利用Stereotypes添加语义信息,实现快速原型设计与迭代开发。此工具极大提升了开发效率并保持了软件的一致性。
Model Driven Engineering refers to the systematic use of models as primary engineering artifacts throughout the engineering lifecycle, the set of tools needed to apply such an approach is made of graphical modelers (UML), interoperability layers (XML/XMI imports and exports) and tools to take advantage of this models using "Model to Text" transformations.

IT companies used to buy expensive proprietary solutions for these needs, thanks to the Eclipse project and some high quality free software plugins one may now have a full featured IDE with modeling support.

Acceleo is one of these tools, the latest release brings open-source generator modules for many technologies (JEE, Php, CSharp, Python...) These modules are by a team of architects trying to provide state of the art code architecture using well-tried framework and best practices. The JEE generator is directly inspired by the Sun blueprints with Struts and Hibernate. Spring support is on its way and should be integrated for the next release.

The Eclipse ecosystem is now providing nice open-source UML modelers such as Topcased. Using this modeler one is able to design a sofware system using Class diagrams.

These diagrams may be annotated using Stereotypes in order to add semantic information. Basically two main stereotypes are used on UML classes :
  • Screen : mean this class is a screen, each association going from a screen to another meaning I'm able to navigate from this screen to this other screen.
  • Entity : mean this class is a business object that should be persisted.
As many technologies trying to avoid strong coupling, JEE tends to be quite verbose. Using a MDA approach one can greatly improve its productivity and its software consistency generating files. As an example an Entity " Book" generates:
  • Book.java DTO
  • BookDAO.java
  • ProjectDAOFactory.java
  • BookDAOImpl.java
  • book.hbm.xml
  • dao.properties
  • project-ddl.sql
  • project-constraints.sql
  • hibernate.config.xml
A " Welcome" screen will produce:
  • Welcome.jsp
  • WelcomeAction
  • WelcomeForm
  • tiles-def.xml
  • struts-config.xml
  • validator.xml
  • web.xml
  • context.xml
  • Welcome.css
  • Welcome.js
Changing a screen, adding for instance an association to another screen, will cause the update of the struts-config.xml and associated files.

Note the fact that as soon as an entity or a screen is designed and the corresponding code has been generated you're able to deploy the software on application servers. This capability is useful for quick prototyping, encouraging exchanges with the final customer.

The screencasts describes the use of the module: modeling, generating, adding a new business entity and a new screen and then generating again the whole architecture without loosing the previous customizations.
Other features for the JEE module are described on the JEE module official web page.

This pragmatic vision is enforced by an efficient tooling: writing generation templates is made easy thanks to a simple syntax and full-featured editors (highlighting, error detections and completion). This set of tool has been validated with success on real-world projects.

Acceleo is not just a template language and provides behavior to keep user code. That means once you've generated your software and you complete the source code, this so-called "user code" won't be lost when you re-generate information.

Emphasizing the Eclipse integration, it provides a seamless use of the MDA approach for the developers.
"Ready to use" bundles are available providing Acceleo, the set of JEE, CSharp, Php and other modules, and an UML2 modeler.

Thanks to many projects Eclipse is now providing a full set of modeling tools, do you use or plan to use them? Have you tried to apply a model driven approach on any project?
【四轴飞行器】非线性三自由度四轴飞行器模拟器研究(Matlab代码实现)内容概要:本文围绕非线性三自由度四轴飞行器模拟器的研究展开,重点介绍了基于Matlab的建模与仿真方法。通过对四轴飞行器的动力学特性进行分析,构建了非线性状态空间模型,并实现了姿态与位置的动态模拟。研究涵盖了飞行器运动方程的建立、控制系统设计及数值仿真验证等环节,突出非线性系统的精确建模与仿真优势,有助于深入理解飞行器在复杂工况下的行为特征。此外,文中还提到了多种配套技术如PID控制、状态估计与路径规划等,展示了Matlab在航空航天仿真中的综合应用能力。; 适合人群:具备一定自动控制理论基础和Matlab编程能力的高校学生、科研人员及从事无人机系统开发的工程技术人员,尤其适合研究生及以上层次的研究者。; 使用场景及目标:①用于四轴飞行器控制系统的设计与验证,支持算法快速原型开发;②作为教学工具帮助理解非线性动力学系统建模与仿真过程;③支撑科研项目中对飞行器姿态控制、轨迹跟踪等问题的深入研究; 阅读建议:建议读者结合文中提供的Matlab代码进行实践操作,重点关注动力学建模与控制模块的实现细节,同时可延伸学习文档中提及的PID控制、状态估计等相关技术内容,以全面提升系统仿真与分析能力。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值