机构地区: 昆明理工大学信息工程与自动化学院,昆明650500
出 处: 《计算机与数字工程》 2017年第8期1670-1674,共5页
摘 要: MDA(Model Driven Architecture)的一个重要思想是将模型作为软件开发的基本单元,解决了软件开发的效率低、可移植性差等问题,进一步提高软件开发的抽象层次。为此,MDA划分了三种抽象级的模型,建立高抽象级的模型,向低抽象级模型和代码的转换来构造可运行的应用程序。因此,提出基于MDA的PIM模型到PSM模型转换方法的研究。并根据转换方法定义了向EJB平台的转换规则,其使用OCL标准描述,具有良好的复用性。最后通过一个实例验证该方法的可行性,实现从平台无关模型到平台相关层EJB模型的转换。 An important idea of MDA(model driven architecture)is using models as the basic unit of software development to solve the problem of low efficiency and poor portability of software development,and to further improve the abstraction level of soft-ware development. To this end,MDA divides the three abstraction levels of the model,high-level abstract model is established and low-level model and code conversion are established to construct a runnable application. Therefore,a MDA-based PIM model to PSM model transformation method is proposed. And then through this model the EJB platform conversion rules are defined. The transformation rules are described by the OCL(Object Constraint Language)standard and have good reusability. At last,an exam-ple is given to verify the feasibility of the method,and the transformation from platform independent model to platform specific EJB model is realized.