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

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

Outline Statechart diagrams ◆Deployment diagrams Component diagrams Object Oriented Analysis and Design 2
Object Oriented Analysis and Design 2 Outline Statechart diagrams Deployment diagrams Component diagrams

Review:An Object Has State The state of an object is one of the possible conditions in which an object may exist. The state of an object normally changes over time. ☐Name:J Clark 口Employee ID:567138 HireDate:07/25/1991 Status:Tenured Discipline:Finance MaxLoad:3 Name:J Clark Employee ID:567138 Date Hired:July 25,1991 Status:Tenured Discipline:Finance Professor Clark Maximum Course Load:3 classes Object Oriented Analysis and Design 3
Object Oriented Analysis and Design 3 Review: An Object Has State The state of an object is one of the possible conditions in which an object may exist. The state of an object normally changes over time. Name: J Clark Employee ID: 567138 Date Hired: July 25, 1991 Status: Tenured Discipline: Finance Maximum Course Load: 3 classes Name: J Clark Employee ID: 567138 HireDate: 07/25/1991 Status: Tenured Discipline: Finance MaxLoad: 3 Professor Clark

What Are Statechart Diagrams? A statechart diagram shows a state machine. It specifies the sequence of states that an object can be in: The events and conditions that cause the object to reach those states The actions that take place when those states are reached Sample Sample State 1 State 2 Object Oriented Analysis and Design
Object Oriented Analysis and Design 4 What Are Statechart Diagrams? A statechart diagram shows a state machine. It specifies the sequence of states that an object can be in: ▪ The events and conditions that cause the object to reach those states ▪ The actions that take place when those states are reached Sample State 1 Sample State 2

Drawing States A state is represented as a rounded rectangle on a statechart diagram. As a comparison,note the subtle difference between a state and an activity Sample Sample State 1 Activity Object Oriented Analysis and Design 5
Object Oriented Analysis and Design 5 Drawing States A state is represented as a rounded rectangle on a statechart diagram. As a comparison, note the subtle difference between a state and an activity. Sample State 1 Sample Activity

Special States The initial state is the state entered when an object is created. An initial state is mandatory. Only one initial state is permitted. The initial state is represented as a solid circle. A final state indicates the end of life for an object. A final state is optional. A final state is indicated by a bull's eye. More than one final state may exist. Sample Sample State 1 State 2 Object Oriented Analysis and Design 6
Object Oriented Analysis and Design 6 Special States The initial state is the state entered when an object is created. ▪ An initial state is mandatory. ▪ Only one initial state is permitted. ▪ The initial state is represented as a solid circle. A final state indicates the end of life for an object. ▪ A final state is optional. ▪ A final state is indicated by a bull’s eye. ▪ More than one final state may exist. Sample State 1 Sample State 2

What Are Events? An event is the specification of a significant occurrence that has a location in time and space. An event is an occurrence of a stimulus that can trigger a state transition. Example: Adding a student to a course ·Creating a new course Event State A State B Object Oriented Analysis and Design 7
Object Oriented Analysis and Design 7 What Are Events? An event is the specification of a significant occurrence that has a location in time and space. ▪ An event is an occurrence of a stimulus that can trigger a state transition. ▪ Example: • Adding a student to a course • Creating a new course State A State B Event

What Are Transitions? ◆ A transition is a change from an originating state to a successor state as a result of some stimulus. The successor state could possibly be the originating state. Atransition may take place in response to an event. Transitions can be labeled with events Event State A State B Transition Object Oriented Analysis and Design 8
Object Oriented Analysis and Design 8 What Are Transitions? A transition is a change from an originating state to a successor state as a result of some stimulus. ▪ The successor state could possibly be the originating state. A transition may take place in response to an event. Transitions can be labeled with events. State A State B Event Transition

Example:Statechart Applied 【accepted] Enrolled 【rejected] First year credits>=28】 Second year ∠fcredits>=56】 Third year Hiatus leave ∠Tcredits>=84】 Fourth year retur H credits>=112] Graduated Object Oriented Analysis and Design 9
Object Oriented Analysis and Design 9 Example: Statechart Enrolled Freshman Sophmore Junior Senior H First year Second year Third year Fourth year Graduated [ credits >= 112 ] Applied [ rejected ] [ accepted ] H [ credits >= 28 ] [ credits >= 56 ] [ credits >= 84 ] Hiatus return leave

Outline ◆Statechart diagrams Deployment diagrams Component diagrams Object Oriented Analysis and Design 10
Object Oriented Analysis and Design 10 Outline Statechart diagrams Deployment diagrams Component diagrams
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 上海交通大学:《面向对象分析与设计 Object Oriented Analysis and Design》课程教学资源(PPT课件讲稿)05 ClassDiagrams.ppt
- 上海交通大学:《面向对象分析与设计 Object Oriented Analysis and Design》课程教学资源(PPT课件讲稿)04 Interaction Diagrams.ppt
- 上海交通大学:《面向对象分析与设计 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
- 上海交通大学:《面向对象分析与设计 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
- 《程序设计思想与方法》课程教学资源(书籍文献)简明Python教程.pdf
- 上海交通大学:《编译原理》教学资源_第一周讲义_Parameter Passing Mechanisms.pdf