[Design Patterns] 1. Primary concept & term - UML

It's time to review design patterns, especially when I reach the turning-point of my career. That's not a small test, but a challenge to my life. Hold it!

http://blog.csdn.net/lovelion/article/details/17517213


 

View and Diagram

用户视图:Use Case Diagram // describe requiremnet

结构视图:Class Diagram, Object Diagram, Package Diagram, Composite Structure Diagram // static behavour

行为视图:State Diagram, Activity Diagram, SequenceDiagram, Communication Diagram, Timing Diagram, Interaction Overview Diagram // dynamic behavour

实现视图:Component Diagram // logical file <--> physical file

环境视图:Deployment Diagram // physical file <--> physical device

 

 


 

Class Diagram

Category

Entity Class, Control Class, Boundary Class

 

Model Element between Class Diagrams

Association: 双向关联,单项关联,自关联,多重性关联,聚合关系(Aggregation),组合关系(Composition)

Dependency: 作为参数,作为局部变量,调用静态方法

Generalization

Interface & Implement

 


 

 

Illustration

[Design Patterns] 1. Primary concept & term - UML_第1张图片

 


 

Demostration

Reference: http://www.cnblogs.com/hoojo/p/UML_design_constitute_example.html, http://raychou.blogbus.com/

 

[Design Patterns] 1. Primary concept & term - UML_第2张图片

 

 

Use Case Diagram (Demand Analysis)

[Design Patterns] 1. Primary concept & term - UML_第3张图片

用例图是从用户角度描述系统功能, 是用户所能观察到的系统功能的模型图,用例是系统中的一个功能单元。

关注用户的输入系统的输出

  参与者:关联,泛化

  用例:关联,包含,扩展

 

用况图说明表格:

[Design Patterns] 1. Primary concept & term - UML_第4张图片

 

 

Class Diagram (System Analysis: 面向业务;System Design)  

[Design Patterns] 1. Primary concept & term - UML_第5张图片

 

   

Timing Diagram (System Analysis: 面向过程;System Design)  

[Design Patterns] 1. Primary concept & term - UML_第6张图片

 

 

Activity Diagram (System Analysis: 面向过程) 

[Design Patterns] 1. Primary concept & term - UML_第7张图片

 

Object Diagram

[Design Patterns] 1. Primary concept & term - UML_第8张图片

 

Component Diagram

[Design Patterns] 1. Primary concept & term - UML_第9张图片

 

Deployment Diagram

[Design Patterns] 1. Primary concept & term - UML_第10张图片

 

State Diagram

[Design Patterns] 1. Primary concept & term - UML_第11张图片

 

  Collaboration Diagram

[Design Patterns] 1. Primary concept & term - UML_第12张图片

 

 

 


 

 

消息通信:类之间只能通过消息控制(杜绝友元类)

粒度控制:同种类打包

 

OOA:(分析问题,列出功能,平台无关,现实世界)

需求模型:用况图,系统中的参与者对系统功能使用情况的描述,定义功能需求

基本模型:类图【对象层,特征层,关系层】

辅助模型:包图(把类打包),顺序图(方法执行的顺序),活动图(行为执行的过程),状态机图(状态见的转换)

 

- - - - - - - - - - - - - - - - - - - - - - - - 

MDA(Model-driven architecture)

PIM --> PSM (平台无关-->平台专用)

- - - - - - - - - - - - - - - - - - - - - - - - 

 

OOD:(对特定实现条件进行设计,软件世界)

问题域部分设计

  人机交互部分设计

  控制驱动部分设计:主动类;进程,线程

  数据接口部分设计

    构件化与系统部署

 

OOP:(具体语言,具体设计)

 


 

 

你可能感兴趣的:(Pattern,design)