学习MDA规范_6.UML配置文件
学习MDA规范_6.UML配置文件
本文主要描述了UML Profiles(UML配置文件)的概念、作用以及在模型驱动架构(MDA)中的应用。 UML Profiles是UML语言的一种强大扩展机制,它允许对UML进行定制以适应特定的建模需求或技术平台。在MDA中,UML Profiles扮演着至关重要的角色,为PIMs和PSMs的定义提供了基础。通过利用UML Profiles,开发者可以更加精确地描述系统,从而提高软件开发的效率和质量。
UML Profiles tailor the language to particular areas of computing (such as Enterprise Distributed Object Computing) or particular platforms (such as EJB or CORBA). There’s a working definition of UML Profile in .
UML配置文件将语言定制到特定的计算领域(如企业分布式对象计算)或特定平台(如EJB或CORBA)。本RFP的6.2节中有关于UML配置文件的工作定义。
In the MDA, both PIMs and PSMs will be defined using UML profiles; OMG is well along our way defining a suite of profiles that span the entire scope of potential MDA applications. Profiles are official OMG specifications. The current suite of profiles includes:
- The , which defines the mapping from a PIM to a CORBA-specific PSM.
- The (the CORBA Component Model), OMG’s contribution to component-based programming. Enterprise JavaBeans (EJBs) are the Java mapping of CCM; an initial take on a profile for EJB appears as an appendix of the UML 2.0 Superstructure specification, linked above.
- The is used to build PIMs of enterprise applications. It defines representations for entities, events, process, relationships, patterns, and an Enterprise Collaboration Architecture. As a PIM profile, it needs mappings to platform-specific profiles. A mapping to Web Services is underway now; additional mappings will follow.
- The defines a profile for loosely-coupled systems - that is, those that communicate using either asynchronous or messaging-based methods. These modes are typically used in Enterprise Application Integration, but are used elsewhere as well.
- The defines frameworks for Real-time and high-assurance environments.
- The supports precise modeling of predictable - that is, real-time - systems, precisely enough to enable quantitative analysis of their schedulability, performance, and timeliness characteristics.
- The provides important support for automated testing in MDA-based development environments.
在MDA中,PIM和PSM都将使用UML配置文件进行定义;OMG正在逐步定义一套涵盖所有潜在MDA应用范围的配置文件。配置文件是OMG的官方规范。当前的配置文件套件包括:
- UML CORBA™配置文件定义了从PIM到CORBA特定PSM的映射。
- UML配置文件适用于CCM™(CORBA组件模型),这是OMG对基于组件编程的贡献。企业JavaBeans(EJB)是CCM的Java映射;EJB的初步配置文件作为UML 2.0超级结构规范的附录出现,链接如上所示。
- UML EDOC™配置文件用于构建企业应用程序的PIM。它定义了实体、事件、过程、关系、模式和企业协作架构的表示方法。作为PIM配置文件,它需要映射到特定平台的配置文件。当前正在进行与Web服务的映射;后续将会有更多的映射。
- UML EAI™配置文件定义了一个用于松散耦合系统的配置文件——也就是说,那些使用异步或基于消息的方法进行通信的系统。这些模式通常用于企业应用程序集成,但也用于其他地方。
- 服务质量(QoS)和容错的UML配置文件™定义了实时和高保证环境的框架。
- UML可调度性、性能和时间™配置文件支持对可预测的系统(即,实时系统)进行精确建模,精度足以对其可调度性、性能和及时性特征进行定量分析。
- UML测试配置文件™ (UTP™) 为基于MDA的开发环境中的自动化测试提供了重要支持。
解读:
- UML Profiles的定义
:
- UML Profiles是对UML语言的定制,以适应特定的计算领域(如企业分布式对象计算)或特定平台(如EJB或CORBA)。
- UML Profiles在MDA中的角色
:
- 在MDA中,平台无关模型(PIMs)和平台特定模型(PSMs)都将使用UML Profiles来定义。
- OMG(对象管理组织)正在定义一系列覆盖潜在MDA应用整个范围的UML Profiles。
- UML Profiles的官方性
:
- UML Profiles是OMG的官方规范。
- 当前的UML Profiles套件
:
- 包括针对CORBA、CCM、EDOC、EAI、QoS和容错、可调度性、性能和时间,以及UML测试配置文件(UTP)的UML Profiles。
- 每个Profile都针对特定的建模需求或技术平台提供了额外的建模元素和规则。
- UML Profiles的具体应用
:
- UML Profile for CORBA™:定义了从PIM到CORBA特定PSM的映射。
- UML Profile for CCM™:支持基于组件的编程,EJB是CCM的Java映射。
- UML Profile for EDOC™:用于构建企业应用的PIM,定义了实体、事件、过程等的表示。
- UML Profile for EAI™:定义了用于松散耦合系统的配置文件,这些系统通常使用异步或基于消息的方法通信。
- UML Profile for QoS和容错™:为实时和高保证环境定义了框架。
- UML Profile for 可调度性、性能和时间™:支持对可预测(即实时)系统的精确建模。
- UML Testing Profile™(UTP™):为基于MDA的开发环境提供自动化测试的重要支持。
- UML Profiles的扩展性
:
- 作为PIM配置文件,如EDOC™,需要映射到平台特定的配置文件。目前正在进行到Web服务的映射,后续将有更多映射。