The difference between building and building a dog's nest is that building a dog's Nest does not require design. To produce qualified software, you must have a set of specifications on the architecture, processes, and tools.
Definition of modeling: Modeling simplifies reality.
Modeling objectives:
1) The model helps us visualize the system based on the actual situation or the style we need.
2) The model allows us to describe the structure and behavior of the system in detail.
3) The model provides a template that knows the system we construct.
4) models document our decisions.
Modeling is to turn a complex system into a small system and solve it one by one based on the principle of "cracking each.
1.2 modeling principles
1) It is very important to choose the model to create. The model should reflect the development problems that are difficult to handle.
2) The model must be expressed at different precision levels. You can choose the precision based on the observed role and the observed reason.
3) The construction model should be connected with reality.
4) important systems must be processed using a set of independent models. In an object-oriented software system, to understand the system architecture, you need several complementary and chained views: use case diagram, design view, process view, implementation view, and implementation view.
1.3 Object-Oriented Modeling
Oriented AlgorithmModeling becomes difficult to maintain after the demand changes or the system grows.
Object-Oriented Modeling uses objects and classes as the main construction blocks. For example, in a three-tier structure, you can find the desired object in the user interface layer, middle layer, and database layer.
2 UML Introduction
2.1 Overview
UML can visualize, detail, construct, and document the products of software-intensive systems. It is best to use it in a process driven by use cases, centered on the architecture, down generation, and increment.
UML is a language, a visual language, and a group of graphical symbols. It can be used for detailed description. It is also a constructor that can be directly generated. Code. With rational xde, You can implement two-way engineering from UML to C # Or from C # To UML.
2.2 UML Conceptual Model
Three elements of learning Modeling: the basic building blocks of UML, the rules of these building blocks, and some common mechanisms applied to the entire UML.
UML involves four things:
1) Structured things --- classes, interfaces, and collaboration (it is an interactive group composed of a group of roles and other elements that work together to provide a cooperative action .) Use Cases, active classes (having at least one process or thread, the behavior of its elements can be concurrent with the behavior of other elements), components (such as COM + and Java Bean), and nodes.
2) behavior things-interaction and state machine (a sequence of States describing an object or an interaction that responds to an event during its life cycle ).
3) group things --- package
4) Comment things --- annotations
Four Relationships in UML
1) Dependency --- semantic relationship between two things
2) Association --- a structural relationship, such as aggregation
3) Generalization --- General/Special Relationship
4) Implementation --- it is used in two places: interfaces and classes and components implementing them; Use Cases and collaboration implementing them.
Diagrams in UML
1) class diagram-the static state diagram of the system, which includes the class diagram of the active class to the static process view except the system.
2) object graph
3) use case diagram
4) Sequence Chart
5) Collaboration Diagram
6) status chart
7) activity diagram --- control process between objects
8) component Diagram
9) Implementation Diagram
2.3 Architecture
We use five interconnected views to describe the architecture of software-intensive systems:
1) system use case diagram
2) system design view-the static aspect is described by the class diagram and the object diagram, and the dynamic aspect is described by the InterAction diagram, state diagram, and activity diagram.
3) system process view-contains the threads and processes that form the system concurrency and synchronization mechanism.
4) system implementation view-mainly for system release configuration management.
5) system implementation View
2.4 software development lifecycle
Usage-driven
Architecture-centric
Down generation process-involves a series of executable release management.
Four Stages of the software development lifecycle:
Initial
Details
Structure
Handover
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