上海交通大学:《面向对象分析与设计 Object Oriented Analysis and Design》课程教学资源(PPT课件讲稿)04 Interaction Diagrams

Shanghai Jiao Tong University 上海交通大学 Object Oriented Analysis and Design Interaction Diagrams 上海交通大学软件工程中心
Shanghai Jiao Tong University 上海交通大学软件工程中心 Object Oriented Analysis and Design Interaction Diagrams

Outline ★◆Classes ◆ Interaction diagrams ◆ Sequence diagrams ◆( Collaboration diagrams ◆ Interaction diagram comparison ◆Reports Object Oriented Analysis and Design 2
Object Oriented Analysis and Design 2 Classes Interaction diagrams Sequence diagrams Collaboration diagrams Interaction diagram comparison Reports Outline

What Are Classes? A class is a set of objects that share the same attributes,operations,relationships, and semantics. In the UML,a class is represented by a compartmentalized rectangle. BuyerRecord (from Analysis Model) 色name:String address String ◆find buyer record ●create a new record0 get e-mail address0 Object Oriented Analysis and Design 3
Object Oriented Analysis and Design 3 What Are Classes? A class is a set of objects that share the same attributes, operations, relationships, and semantics. In the UML, a class is represented by a compartmentalized rectangle

Attributes An attribute defines the characteristics or structure of a class. In the UML,a class attribute is displayed in the middle of the compartmentalized rectangle. BuyerRecord (from Analysis Model) Attribute name:String address:String ◆find buyer recordO create a new record( get e-mail address0 Object Oriented Analysis and Design 4
Object Oriented Analysis and Design 4 Attributes An attribute defines the characteristics or structure of a class. In the UML, a class attribute is displayed in the middle of the compartmentalized rectangle. Attribute

Operations An operation is the service provided by the class.It is the behavior of the class. In the UML,a class operation is displayed in the bottom of the compartmentalized rectangle. BuyerRecord BuyerRecord (from Analysis Model) (from Analysis Model) name:String 念name:String 急address:String ®address:String Operations find buyer recordO ◆find buyer record Responsibilities ●create a new recordo ◆create a new record get e-mail address0 get e-mail address0 Object Oriented Analysis and Design 5
Object Oriented Analysis and Design 5 Operations An operation is the service provided by the class. It is the behavior of the class. In the UML, a class operation is displayed in the bottom of the compartmentalized rectangle. Operations Responsibilities

How Are Classes Found? Classes can be discovered using various artifacts. Use-Case BuyerRecord PersonalPlannerForm Specification Stakeholder Requests (from Analysis Model) (from Analysis Model) Classes Glossary Object Oriented Analysis and Design 6
Object Oriented Analysis and Design 6 How Are Classes Found? Classes can be discovered using various artifacts. Use-Case Specification Glossary Stakeholder Requests Classes

Outline ◆Classes Interaction diagrams Sequence diagrams ◆ Collaboration diagrams ◆ Interaction diagram comparison ◆Reports Object Oriented Analysis and Design 7
Object Oriented Analysis and Design 7 Classes Interaction diagrams Sequence diagrams Collaboration diagrams Interaction diagram comparison Reports Outline

Objects Need to Collaborate ◆ Objects are useless unless they can collaborate to solve a problem. Each object is responsible for its own behavior and status. No one object can carry out every responsibility on its own. How do objects interact with each other? They interact through messages. Object Oriented Analysis and Design 8
Object Oriented Analysis and Design 8 Objects Need to Collaborate Objects are useless unless they can collaborate to solve a problem. ▪ Each object is responsible for its own behavior and status. ▪ No one object can carry out every responsibility on its own. How do objects interact with each other? ▪ They interact through messages

Objects Interact with Messages A message shows how one object asks another object to perform an operation. Message getCourseOfferings(forSemester) RegistrationController :CourseCatalogSystem Object Oriented Analysis and Design 9
Object Oriented Analysis and Design 9 Objects Interact with Messages A message shows how one object asks another object to perform an operation. : Car buyer Message :RegistrationController :CourseCatalogSystem getCourseOfferings(forSemester)

What Is an Interaction Diagram? An interaction diagram models the dynamic aspects of the system by showing relationships among objects and the messages they may dispatch. There are two types of interaction diagrams Sequence 吴 Collaboration Sequence Diagram Collaboration Diagram Object Oriented Analysis and Design 10
Object Oriented Analysis and Design 10 What Is an Interaction Diagram? An interaction diagram models the dynamic aspects of the system by showing relationships among objects and the messages they may dispatch. There are two types of interaction diagrams. ▪Sequence ▪ Collaboration Collaboration Diagram Sequence Diagram
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 上海交通大学:《面向对象分析与设计 Object Oriented Analysis and Design》课程教学资源(PPT课件讲稿)02 Introduction to Visual Modeling.ppt
- 上海交通大学:《面向对象分析与设计 Object Oriented Analysis and Design》课程教学资源(PPT课件讲稿)01 Introduction to Object Technology.ppt
- 上海交通大学:《软件测试与质量控制》课程教学资源(课件讲稿)chapter 4 test case generation 1.pdf
- 上海交通大学:《软件测试与质量控制》课程教学资源(课件讲稿)Chapter 2 fundamentals of software test.pdf
- 上海交通大学:《软件测试与质量控制》课程教学资源(课件讲稿)chapter 3 Test environment and tools.pdf
- 上海交通大学:《软件测试与质量控制》课程教学资源(课件讲稿)教学大纲(高级软件测试).doc
- 上海交通大学:《软件测试与质量控制》课程教学资源(课件讲稿)chapter 1 Introduction of software testing.pdf
- 上海交通大学:《软件测试与质量控制》课程教学资源(课件讲稿)Chapter 2 fundamentals of software test.pdf
- 上海交通大学:《软件测试与质量控制》课程教学资源(课件讲稿)第4章 Fundamental theory and methods of software test.pdf
- 上海交通大学:《软件测试与质量控制》课程教学资源(课件讲稿)第2章 Prerequisites Mathematics knowledge of software test.pdf
- 上海交通大学:《软件测试与质量控制》课程教学资源(课件讲稿)第3章 Test environment and tools.pdf
- 上海交通大学:《软件测试与质量控制》课程教学资源(课件讲稿)第1章 Introduction of software testing.pdf
- 《软件工程概论》课程教学资源(参考资料)软件工程知识体系指南(2004版).pdf
- 《软件工程概论》课程教学资源(参考资料)Guide to the Software Engineering Body of Knowledge(SWEBOK)Version 3.0.pdf
- 中华人民共和国国家标准(GB/T8567一2006 代替GB/T8567-1988)计算机软件文档编制规范 Specification for computer software documentation.pdf
- 上海交通大学:《理论力学》课程教学资源(PPT讲稿)平面矢量.ppt
- 上海交通大学:《计算机硬件技术》课程PPT教学课件(计算机概论,孙德文).ppt
- 上海交通大学:《程序设计基础》课程教学资源(PPT课件讲稿)第9章 数据封装——结构体.ppt
- 上海交通大学:《程序设计基础》课程教学资源(PPT课件讲稿)第8章 间接访问——指针.ppt
- 上海交通大学:《程序设计基础》课程教学资源(PPT课件讲稿)第7章 数组.ppt
- 上海交通大学:《面向对象分析与设计 Object Oriented Analysis and Design》课程教学资源(PPT课件讲稿)05 ClassDiagrams.ppt
- 上海交通大学:《面向对象分析与设计 Object Oriented Analysis and Design》课程教学资源(PPT课件讲稿)06 Other UML Diagrams.ppt
- 上海交通大学:《面向对象分析与设计 Object Oriented Analysis and Design》课程教学资源(PPT课件讲稿)07 Design Pattern.ppt
- 上海交通大学:《面向对象分析与设计 Object Oriented Analysis and Design》课程教学资源(PPT课件讲稿)08 Requirements Overview.ppt
- 上海交通大学:《面向对象分析与设计 Object Oriented Analysis and Design》课程教学资源(PPT课件讲稿)09 Analysis and Design Overview.ppt
- 上海交通大学:《面向对象分析与设计 Object Oriented Analysis and Design》课程教学资源(PPT课件讲稿)10 Architectural Analysis.ppt
- 上海交通大学:《面向对象分析与设计 Object Oriented Analysis and Design》课程教学资源(PPT课件讲稿)11 Use-Case Analysis.ppt
- 上海交通大学:《面向对象分析与设计 Object Oriented Analysis and Design》课程教学资源(PPT课件讲稿)12 Architecture Design.ppt
- 上海交通大学:《面向对象分析与设计 Object Oriented Analysis and Design》课程教学资源(PPT课件讲稿)13 Use-Case Design.ppt
- 上海交通大学:《面向对象分析与设计 Object Oriented Analysis and Design》课程教学资源(PPT课件讲稿)14 Subsystem Design.ppt
- 上海交通大学:《面向对象分析与设计 Object Oriented Analysis and Design》课程教学资源(PPT课件讲稿)16 Database Design.ppt
- 上海交通大学:《面向对象分析与设计 Object Oriented Analysis and Design》课程教学资源(PPT课件讲稿)17 Model Driven Development.ppt
- 上海交通大学:《面向对象分析与设计 Object Oriented Analysis and Design》课程教学资源(PPT课件讲稿)19 Aspect-Oriented Software Development(AOSD).ppt
- 上海交通大学:《微型计算机技术及在材料加工中的应用》教学资源_微型计算机概述.pdf
- 上海交通大学:《微型计算机技术及在材料加工中的应用》教学资源_第三章作业.pdf
- 上海交通大学:《微型计算机技术及在材料加工中的应用》教学资源_第二章 微处理器.pdf
- 上海交通大学:《数据库(A类)》教学资源_参考资料_MFC ODBC编程.doc
- 上海交通大学:《程序设计思想与方法》课程教学资源_C 12.28上机测试题_C++ 上机测试题.pdf
- 《程序设计思想与方法》课程教学资源(书籍文献)Python Programming:An Introduction to Computer Science.pdf
- 《程序设计思想与方法》课程教学资源(书籍文献)Python Programming:An Introduction to Computer Science.pdf