模型驱动架构的软件开发方法能够直接生成可用的软件产品,但在开发过程中的建模与模型转换难以实现核心关注点与横切关注点的分离,从而导致模型的纠结和重复。基于模型层的面向方面思想(AOP)可以先将核心功能与横切功能分开独立建模,然后再通过编织技术将它们集成起来,从而有效地解决了这个问题。探讨了通过扩展UML语言使之能表现方面的特性的方法,以及如何针对MDA的不同层次来使用相对应的方面来表达。为模型转换的具体实现提供了可行的方法。
Model-driven architecture development methodology can be used to directly generate software products. But in the development process modeling and model transformation is difficult to separate the core concern and cross- cutting concerns. It will cause model entangled and duplication. Based on the aspect- oriented thinking (AOP) in model layer provide an effective approach to solve this problem. It can separately model the core functions and cross- cutting functions, then weave them together. Disemses the method of extended UML language to perform the concept of aspect, and how to address the different levels of MDA correspond to the use of the aspect to express. It provides a workable solution to realize the transformation of MDA model.