Introduction to UML

xiaoxiao2021-03-20  221

The main contents of the previous period include: 1. Standard Modeling Language UML Overview Second, Standard Modeling Language UML Static Modeling Mechanism Three, Standard Modeling Language UML Dynamic Modeling Mechanism 4, Standard Modeling Language UML Support Environment Five , Standard modeling language UML application example 1. UML modeling process high-level view 2. UML actual modeling process (1) demand (2) analysis

(Connecting) (3) The task of designing design phases is to extend and refine the model of the analysis phase by comprehensively considering all technical limits to expand and refine the model. The purpose of the design is to indicate a work program that is easy to convert to code is the refinement of analysis, that is, further refine the class (including its operations and attributes) extracted in the analysis phase, and increasing new categories to handle, such as databases. Problems in technical fields such as user interface, communication, equipment. The design phase can be divided into two parts: structural design is high-level design, its mission is to define the package (subsystem), including the dependence and main communication mechanism between the package. We hope to get as simple and clear structures, depending on the dependence as small as possible, and reduce the bidirectional dependencies as possible. The second part is a detailed design, refining the content of the package, so that the programmer gets a sufficiently clear description of all classes. Simultaneous use of dynamic models in UML, the behavior between these classes is described in a particular case. • Structure Design A good design is a basis for system-expandable and changeable. The package is actually a collection of some classes. The class diagram includes help users separate application logic (domain classes) from technical logic, thereby reducing the dependence between them. This is the principle of high polymerization and low coupling between the software structure design emphasized. In commercial MIS, there is a package (or subsystem): user interface package: User interface class allows users to access system data and add new data. In the business object, the user interface packs with the business object package, calls the operation of the business object, implement the search and insertion of the data. Business object packages: including specific domains from the analysis phase. In the design phase, these classes are designed in detail to complete their operations to support access to the database. Therefore, all commercial object classes must inherit the class in the database package. Database Pack: Provide services for class in the commercial object package for permanent storage. Package: Contains services to use for other packages. The intrinsic relationship between them is shown in Figure 1.

· Detailed design detailed design is to describe the new technical class and expand and refine the business object class "Sketch" by creating new class diagrams, state diagrams and dynamics. These images have been used in the analysis phase, but in the detailed design phase, they are more detailed in the system from the technical level. If the use example of the analysis phase is used to verify that they are processed in the design phase, and the sequence diagram is used to display how each used case in the system is technically implemented, and so on. Database Package: The implementation of MIS must have a permanent storage object that is, the database is supported, so the database layer must be added to provide this service. At present, there are many commercial databases on the market, and some are real object-oriented databases such as engineering databases, and some are traditional databases. Since we only discuss design methods, do not involve specific environments, therefore, you can abstract a permanent storage class to implement common operations for databases, such as storage, update, deletion, query, etc. Permanent class is similar to the base class in the MFC. Commercial object package: The commercial object package in the design phase is the domain class of the analysis phase, which needs to be refinered from the achievement angle, including how to achieve the association and behavior between them. All of these object classes must be inherited from the permanent class of the database package. The operation of the class described in the analysis phase may be decomposed into several operations or change the name in the design model. Because the analysis is to construct the framework of each class, the design is a detailed description of the system, so the operations of all classes in the design model must define symbols and return values. Figure 2 is a subsequent business class (partial)

In the design phase, the state diagram of the analysis phase can also be refined, and the transformation details of the display state (Figure 3) are also detailed. Using the status map can reveal the details of the variation of a single object throughout the system, which is helpful for understanding and implementing key classes. In addition, other images can be used to refine the models established from different sides on different sides on the implementation layer. User interface package: User interface package "top" in other packages. In the system, it provides information and support for users. Since all interactions with the user are implemented through the user interface, the dynamic model of the UML is ideal for a description of the GUI package. Figure 4 shows the dynamic model of the new commodity usage with the sequence diagram description system. Another figure representation is a cooperation diagram (Figure 5).

Establishing a user interface is a special event in the design phase. In commercial MIS, the user interface can be divided into functions (main function windows in the system, such as procurement, inventory, sales, statistical analysis, etc.), information (display system information window, etc.) and other three parts. Currently Due to the rapid development of visualization techniques, the user interface is relatively simple. In general, the user interface of the application system consists of a main window with a menu strip and a corresponding graphic. (4) Implementing the construction or implementation of the class is Procedures for programming. You can choose some object-oriented object programming language (such as Java) as a software environment for implementing the system. Java is easy to implement mappings from logical views to code parts, because class to Java code files are one-one mapping relationship Figure 6 is a component diagram of a design model, a simple mapping of the logical view to the part view. The package in the logical view is also mapped to the corresponding component view. In the implementation phase, the following diagrams can be selected to assist programming: • Specifications for class: Specifications for each class show the necessary properties and operations in detail. · Class diagram: Display the relationship between the static structure and classes of the class. • State diagram: Display the object of the object, The transfer of demand and triggers the operation of these transfer. • A dynamic diagram of an object of a class (sequential diagram, cooperation diagram, activity diagram): Show how the implementation or other object of a method of this class is how to use this class Objects. · Model and Specifications: Display System Demand and Results. During the encoding period, the design model can be discovered. At this time, it is necessary to modify the design model. Modify the design model to maintain design model and encoding Sexuality is easy to maintain. (5) After testing and configuring the system encoding, you need to test the system, which usually include: unit test, integrated test, system testing and acceptance test. Use class diagrams and classes in unit testing Specifications, testing separate classes or sets; in integrated testing, use component maps and cooperation diagrams, testing the cooperation of each component; in system testing, use case diagram to test the system developed Whether to meet the needs described in the example. The configuration of the system is the actual delivery system, including documents and composition models. For business MIS, it is a typical client / server system. You can use the configuration diagram display system physical structure As shown in Figure 7. From the surface, the configuration diagram can display the relationship between the system device and the display node to perform the correspondence between the executable software unit. However, once the object or executable component inside a node (exceeding 5), it is difficult to fully describe this relationship with the configuration diagram.

(6) Small knot

The UML modeling process of the commercial MIS system lifted herein can be described in Figure 8. Among them, we must first grasp how to use the use case technology to correctly describe the system requirements. The class diagram in the UML describes the static relationship between the system, and the object map helps to understand complex classes. During the system development, class diagrams can be applied to analysis, design, and implementation. The package of classes helps to perform system structure design. Commercial MIS package is divided into user interface packages, commercial object packages, database packages, and the relationship between them is the former reliance.

The dynamic model of the UML includes state diagrams, sequential diagrams, cooperation graphs, and activity diagrams. In commercial MIS, the sequence diagram is very useful to describe the interaction of business objects, which is one of the most important support for commercial MIS analysis, design and implementation.

In summary, the nine views provided by UML are analyzed from systematic analysis from different application hies and different angles, and design itself until achieving support. Establish different models in different stages, the purpose of modeling is different.

UML provides strong support for user modeling and provides a lot of freedom. User can fully select the various types provided by UML according to the characteristics of its own development system, in accordance with the characteristics of its own development system, in the micro-process (analysis, design, implementation, testing and configuration) of each iteration Fig.

In the UML application, choose the right tool is also important. For simple applications, Visio, Msword and other tools can support the generation of various desired graphics. But they are static graphics, they cannot support the modeling and optimization of the system. The North Air Technology Institute is developing and developing the UML integrated support system, which is designed and developed to fill the blanks of my country's software industry.

We believe that future software development paradigms will have the following three features: First, software development automation will become higher and higher; second, hidden errors in the software developed will be less and less; third, in new With the support of the software engineering environment, it will be able to develop an adaptive software system. Standard Modeling Language UML and its integrated support environment will be paved towards this new path (full text).

转载请注明原文地址:https://www.9cbs.com/read-130366.html

New Post(0)