What is OOA/Ood?

Source: Internet
Author: User

Object Oriented Analyzing
Object Oriented Design
Object Oriented Programming

OOA (Object Oriented Analysis) Object-Oriented Analysis
Object Oriented Design (OOD) Object-oriented Design
As you are familiar with it, object-oriented Program Design technology was first proposed in the late 1960s s for the application of Simula
Collation Development . In 1970s, object-oriented language became an important feature of smalltalk. At that time, the main Object-Oriented Technology
For programming. In 1990s, people's attention gradually shifted from program design System Analysis and Design, object view
Point to understand the real world, the feasible solution to design problems, followed by many OOA and OOD Methods. But these methods
It is not very mature yet, and there are still disputes over the boundary division between OOA and Ood. For example, some people think that object-oriented Software Development
The process can be divided into three stages: object-oriented analysis, object-oriented design, and object-oriented programming.
You do not need to strictly distinguish between different types of data. Others use traditional methods for analysis and design, and use object-oriented Program Design
Language. O
Some representative jobs of OA/ood include OOAD of gray. booch. Method , Coad & Yourdon's
OOA and OOD Methods, the OOA method of shlaer & Mellor, And the OOAD method of Rumbaugh. Different Methods
Systems all reflect different understandings of OOA, Ood, and object-oriented software development processes. Main
The purpose is to find out the boundary between OOA and OOD by looking at the common characteristics of the existing OOA and OOD Methods.
Evaluate the difficulty of transition from OOA to Ood, and discuss the main work involved in this transition.
OOA: the main task in the analysis stage is to understand the problem and requirement modeling, and map problems in the real world to the problem domain. In
Stage, it is necessary to clarify what the user has proposed Function Requirements: in order to fulfill these requirements, the system should have the components, structure, and detailed requirement specifications. OOA introduces many object-oriented concepts and principles, such as objects, attributes, and services.
, Inheritance, encapsulation, etc., and use these concepts and principles to analyze, understand, and understand the objective world, and extract entities from the objective world
This is the object in the problem domain, that is, the object of the problem. It analyzes the structure of the problem in the objective world and is clearly defined as the function of the system.
Contacts and interactions. Therefore, the following questions must be answered at the OOA stage:
1) What functions should the system provide to fulfill user requirements?
2) What objects should the system have?
3) What attributes and services should each object have?
4) What is the relationship between objects? Yes
To answer these questions, we need to understand and analyze the real world objects from both static and dynamic aspects. Specifically
:
1) Individual Feature Analysis: identifies an object and its attributes and services. Some methods may require attributes when identifying features.
This is because the object is the encapsulation body of properties and operations. object access can be achieved through interfaces-operations. This
When an object is identified, the internal features of the object can be ignored for the moment, and only external behaviors are investigated. Each Analysis Method completes these tasks.
For example, the Coad & Yourdon method only provides some general principles and ideas for identifying objects and their features. r
Abbott believes that non-formal analysis can be performed. English Problem description, Mark nouns as objects and adjectives as genus
Verbs are marked as services, while Bailin and others use a combination of structured and object-oriented technologies.
2) Static Analysis: analyze and describe the static structure of the system. Generally, there are two
Type link: general-special link and overall-partial link. The former is more universal and an important form of implementation.
It is the inheritance mechanism and the Language facilities supported by the object-oriented programming language. Similarly, most OOA methods are
Inheritance provides corresponding representation methods. Therefore, static system analysis mainly analyzes and identifies objects or classes.
Structure, and add some necessary classes to construct the inheritance relationship.
3) Dynamic Analysis: analyzes the object and its behavior and control relationships, and establishes a dynamic model of the system. Most Analysis Methods
Some require that this work be done in the design stage, which is mainly divided by OOA and OOD stages.
. A dynamic model is generally composed of a group of state transition graphs, which can be mapped to an object model.
Type. The dynamic model of the system describes the system functions from the perspective of object behavior, facilitating the transition from OOA to Ood. Yes
Although the method does not provide a dynamic model, it also provides similar methods to represent object behavior. Early OOA method was used to establish a system
Lack of understanding about unified dynamic models, mainly because many methods were inspired by data models at that time. More and more
Many people realized the importance of System Dynamic Analysis and introduced the corresponding concepts in the analysis method. Division
In addition, many OOA methods also introduce the problem complexity control mechanism. For example, in Coad & Yourdon's method
The topic concept is introduced; wirfs & Brock introduces the sub-system concept in its method. Problem complexity control mechanism master
For large complex systems, it abstracts a group of objects or classes into new system components to simplify the problem space.
. In this way, the analysis and design personnel can analyze problems from different perspectives, such as macro and micro, overall and local, to facilitate thorough analysis.
Understand and understand problems.
OOD method:
In the analysis phase, the user's functional requirements and the system components and structures required by the user are clarified. The primary node in the design phase
Determine the method to meet user needs, that is, how to meet user needs, and construct a system implementation blueprint. Oriented
The same is true for Object design, but some object-oriented concepts and principles are introduced to guide the design work. Home
Start with the OOA result and map it from the problem domain to the implementation domain. To meet the implementation needs, you need to add some classes.
, Structure, attributes, and services, and adjust the original class and attributes. In addition, application control and human-computer interaction interface design must be completed. Among the existing methods, Coad and others are the more comprehensive design methods. Main jobs of OOD include: 2
Question Domain Design
The design of the question domain is a task that must be completed by any OOD method. It mainly improves OOA results and
It is refined and converted from the problem domain to the solution domain. Specifically, there are the following aspects :.
Attribute: Some attributes help to understand the problem in the analysis phase, while in the design phase, they can be exported by other attributes or
There is no need to keep it. Therefore, remove them. On the contrary, to implement services Algorithm You also need to add relevant attributes.
..
Service: OOA only provides the service interface, and its implementation algorithm must be completed in the OOD stage ..
Class and object: some classes that help to understand the problem in the OOA stage become redundant in the OOD stage and need to be deleted.
Optimized adjustment of inheritance relationships and added some classes. All classes determine which class objects will be triggered in the future.
Some classes to create new objects ..
Structure: optimize and adjust the inter-class structure ..
Object behavior: defines the implementation algorithm of message transmission between objects, and determines the order of message transmission between objects based on the dynamic model.
And design algorithms to coordinate object behavior. 2
2 The design of human-computer interaction and application control includes:
The interaction interface design is not mentioned in some design methods. On the one hand, the interaction interface is not very important in these systems.
On the other hand, this part of the design is very regular and the design method is also relatively mature, but for the sake of completeness, it is still listed
. Main tasks include :.
Interaction interface subsystem design: design of the interface-related classes and inter-class structures, and design of related algorithms ..
Interface Design Between the interaction interface subsystem and the application ..
Application Control Design: these objects are mainly used to drive applications. This part of objects is different from reality
Objects abstracted in the world have no prototype in the real world and problem domains. They are the same as objects and problems in the interface subsystem.
The object takes effect to control the operation of the system.

Differences between OOA and OOD
The main work to be done in OOA and OOD stages is discussed.
Standards, some work is completed in the OOA stage or in the OOD stage is still controversial. Some people think that OOA and
Ood can be performed in different ways. Some people think that Ood is an improvement and refinement of OOA results, so they only mention OOA; others are more
Emphasize Ood. Although OOA and OOD have some crossover and association, there are still many differences between them, such:
1) OOA abstracts entities in the real world into problem objects and constructs a system requirement model in the problem domain.
The problem object is converted to a class in the solution domain and a problematic solution is constructed in the solution domain.
2) OOA focuses on the analysis of user requirements and understanding of problem domains. Analysts are concerned about the system structure and Object
.
3) OOA identifies a group of objects and describes the system through their interaction.
Ood defines a group of classes and designs the implementation blueprint of the system. The outline design has nothing to do with the programming language.
The design is closely related to it. (
4) The object identified by OOA is an abstraction of objects in the objective world. The criterion for identifying an object is: whether the introduction of this object helps to understand the problem domain. The criterion for constructing classes in Ood is: whether the construction of this class is feasible and whether the abstraction is effectively implemented
Whether the data type helps the system implementation and improve the software quality. (
5) The system objects are not mentioned in both stages, but the reasons are different. In the OOA stage, the analysis is irrelevant to the implementation.
And range is irrelevant to the solution domain, so you do not need to consider the system objects. The object model created by Ood is the software to be designed.
System, the consideration of system objects is implicit.
6) The Assembly structure and classification structure have different roles in the two phases. In the OOA stage, they are introduced mainly
While in the OOD stage, their introduction mainly focuses on the construction and implementation of software. The classification structure follows
Implementation Mechanism, so Code It is effectively reused. The assembly structure combines some classes to form a large software.
Component.
7) OOA does not consider the generation of objects. When its corresponding entities appear in the real world, it is asking
The question domain is generated. OOA does not consider the value of object attributes and the implementation of service algorithms. In the OOD stage
Must be considered in detail.
8) Ood involves heavy load, while OOA does not consider it because it considers too many implementation details to understand the problem and points.
It is not helpful to analyze user requirements.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.