Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the problems related to the design principles of UML2

2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Today, I would like to share with you what are the relevant knowledge points about UML2 design principles, which are detailed in content and clear in logic. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article.

The design idea of the UML metamodel follows the following principles:

Modularization-apply the principles of strong cohesion and loose coupling to group modeling concepts into multiple packages and organize functional features into multiple metaclasses.

The hierarchical-UML metamodel applies two kinds of layering.

First, the structure of the package separates the core concepts of the metalanguage from the high-level concepts that use them.

Second, the architectural pattern of the four-tier metamodel separates concerns across many layers of abstraction (especially those related to instances).

Partition-Partition is used to organize the conceptual scope of the same layer. In InfrastructureLibrary, detailed partitioning is used to provide the flexibility required by current and future metamodel modeling standards; in the UML metamodel, partitioning is sketchy, which enhances package cohesion and loose coupling between multiple packages.

Scalability-there are two ways to extend UML2:

1) use Profiles to define new dialects and customize languages oriented to specific platforms (such as J2EE Universe EJBMag.NETAccord com +) and domains (such as finance, communications, aviation).

2) by reusing InfrastructureLibrary package and adding appropriate metaclasses and meta-relationships, a new language related to UML can be defined. The former case defines a new dialect of UML, while the latter case defines a new member of the UML language family.

Reuse-provides a detailed and flexible metamodel library that can be reused to define UML metamodels and other architecture-related metamodels, such as Meta Object Facility (MOF) and Common Warehouse Metamodel (CWM).

UML2 Q & A

Why does 1.UML2 define compatibility levels?

UML2 is a wide range of languages. These language sets are divided into different modules, and UML tools from different vendors can implement different modules. The need for interoperability between these tools (for example, different tools provide modeling capabilities for different steps of the development process), there may be a problem, that is, the compatibility of the models defined between different UML tools. Therefore, the UML2 specification defines a small number of UML2 compatibility levels to increase the possibility that the two tools support the same or mutually compatible subset of languages.

two。 What is language Unit (Language Unit)?

A language unit is a collection of closely related modeling concepts. The concepts in this collection can reflect an aspect of the system to be modeled, so they are packaged together to form a basic modeling unit. Corresponding to the diagram, it may roughly correspond to several different graphics (do you understand it correctly? To be verified). UML2 contains fourteen language units: actions, activities, classes, components, deployment, common behaviors, information flows, interactions, modeling, Profiles, state machines, structures, templates, and use cases.

At each level of compatibility, all language units should be merged step by step and incrementally.

These are all the contents of this article entitled "what are the issues related to UML2 design principles?" Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 275

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report