《面向对象软件工程》课程PPT教学课件(英文版)Chapter 5:Modelling with Classes

object-Oriented Software Engineering Practical Software development using uml and Java Chapter 5 Modelling with Classes www.oseng.com
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 5: Modelling with Classes

5. 1 What is UMl? The Unified Modelling language is a standard graphical language for modelling object oriented software At the end ofthe 1980s and the beginning of 1990s, the first object- oriented development processes appeared The proliferation of methods and notations tended to cause considerable confusion Two important methodologists Rumbaugh and Booch decided to merge their approaches in 1994 They worked together at the Rational Software Corporation In 1995, another methodologist, Jacobson, joined the team -His work focused on use cases In 1997 the Object Management Group(OMG) started the process ofuml standardization www.oseng.com O Lethbridge/Laganiere 2001 Chapter 5: Modelling with classes
© Lethbridge/Laganière 2001 Chapter 5: Modelling with classes 2 5.1 What is UML? The Unified Modelling Language is a standard graphical language for modelling object oriented software • At the end of the 1980s and the beginning of 1990s, the first objectoriented development processes appeared • The proliferation of methods and notations tended to cause considerable confusion • Two important methodologists Rumbaugh and Booch decided to merge their approaches in 1994. —They worked together at the Rational Software Corporation • In 1995, another methodologist, Jacobson, joined the team —His work focused on use cases • In 1997 the Object Management Group (OMG) started the process of UML standardization

UML diagrams Class diagrams -describe classes and their relationships Interaction diagrams show the behaviour of systems in terms of how objects interact with each other State diagrams and activity diagrams show how systems behave internally Component and deployment diagrams -show how the various components of systems are arranged logically and physically www.oseng.com O Lethbridge/Laganiere 2001 Chapter 5: Modelling with classes
© Lethbridge/Laganière 2001 Chapter 5: Modelling with classes 3 UML diagrams • Class diagrams —describe classes and their relationships • Interaction diagrams —show the behaviour of systems in terms of how objects interact with each other • State diagrams and activity diagrams —show how systems behave internally • Component and deployment diagrams —show how the various components of systems are arranged logically and physically

UML features It has detailed semantics It has extension mechanisms It has an associated textual language -Object Constraint Language(OCL The objective of uMl is to assist in software development - It is not a methodolo www.oseng.com O Lethbridge/Laganiere 2001 Chapter 5: Modelling with classes 4
© Lethbridge/Laganière 2001 Chapter 5: Modelling with classes 4 UML features • It has detailed semantics • It has extension mechanisms • It has an associated textual language —Object Constraint Language (OCL) The objective of UML is to assist in software development —It is not a methodology

What constitutes a good model? A model should use a standard notation be understandable by clients and users lead software engineers to have insights about the system provide abstraction Models are used to help create designs to permit analysis and review of those designs as the core documentation describing the system www.oseng.com O Lethbridge/Laganiere 2001 Chapter 5: Modelling with classes
© Lethbridge/Laganière 2001 Chapter 5: Modelling with classes 5 What constitutes a good model? A model should • use a standard notation • be understandable by clients and users • lead software engineers to have insights about the system • provide abstraction Models are used: • to help create designs • to permit analysis and review of those designs. • as the core documentation describing the system

5.2 Essentials of UML Class Diagrams The main symbols shown on class diagrams are: asses represent the types of data themselves · associations represent linkages between instances of classes Attributes are simple data found in classes and their instances perations represent the functions performed by the classes and their Instances · Generalizations group classes into inheritance hierarchies www.oseng.com O Lethbridge/Laganiere 2001 Chapter 5: Modelling with classes 6
© Lethbridge/Laganière 2001 Chapter 5: Modelling with classes 6 5.2 Essentials of UML Class Diagrams The main symbols shown on class diagrams are: • Classes - represent the types of data themselves • Associations - represent linkages between instances of classes • Attributes - are simple data found in classes and their instances • Operations - represent the functions performed by the classes and their instances • Generalizations - group classes into inheritance hierarchies

Classes a class is simply represented as a box with the name of the class inside The diagram may also show the attributes and operations The complete signature of an operation is operationName( parameter Name: parameter Type.) return Type Rectangle Rectangle RectangleRectangle Rectangle getArea hei ght height height: int resize idth width width int getArea getArea(: int 柔e( int, int) www.oseng.com O Lethbridge/Laganiere 2001 Chapter 5: Modelling with classes
© Lethbridge/Laganière 2001 Chapter 5: Modelling with classes 7 Classes A class is simply represented as a box with the name of the class inside • The diagram may also show the attributes and operations • The complete signature of an operation is: operationName(parameterName: parameterType …): returnType Rectangle height: int width: int getArea(): int resize(int,int) Rectangle height width getArea resize Rectangle height width Rectangle getArea resize Rectangle

5.3 Associations and Multiplicity An association is used to show how two classes are related to each other Symbols indicating multiplicity are shown at each end of the association Employee Company Secretary Manager Company BoardofDirectors Office 0.1 Employee Perso 0,3.8 BoardofDirectors www.oseng.com O Lethbridge/Laganiere 2001 Chapter 5: Modelling with classes 8
© Lethbridge/Laganière 2001 Chapter 5: Modelling with classes 8 5.3 Associations and Multiplicity An association is used to show how two classes are related to each other • Symbols indicating multiplicity are shown at each end of the association 0,3..8 * Employee * * 1..** 0..1 * Secretary Office Person Company Employee Company Manager BoardOfDirectors BoardOfDirectors

Labelling associations Each association can be labelled to make explicit the nature of the association works For Employee Company Secretary Manager supervisor Company BoardofDirectors Office 0.1 allo catedTol Employee Person 0.3.8 BoardofDirectors bo ard Member wwseng. com O Lethbridge/Laganiere 2001 Chapter 5: Modelling with classes
© Lethbridge/Laganière 2001 Chapter 5: Modelling with classes 9 Labelling associations • Each association can be labelled, to make explicit the nature of the association * supervisor 1..** * w orksFor 0..1 allocatedTo * boardMember 0,3..8 * Employee Secretary Office Person Company Employee Company Manager BoardOfDirectors BoardOfDirectors

Analyzing and validating associations One-to-one For each company there is exactly one board of directors a board is the board of only one company a company must always have a board a board must al ways be of some company Company BoardofDirectors www.oseng.com O Lethbridge/Laganiere 2001 Chapter 5: Modelling with classes
© Lethbridge/Laganière 2001 Chapter 5: Modelling with classes 10 Analyzing and validating associations • One-to-one —For each company, there is exactly one board of directors —A board is the board of only one company —A company must always have a board —A board must always be of some company Company BoardOfDirectors
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 《面向对象软件工程》课程PPT教学课件(英文版)Chapter 4:Developing Requirements.ppt
- 《面向对象软件工程》课程PPT教学课件(英文版)Chapter 3:Basing Software Development on Reusable Technology.ppt
- 《面向对象软件工程》课程PPT教学课件(英文版)Chapter 2:Review of Object Orientation.ppt
- 《面向对象软件工程》课程PPT教学课件(英文版)Chapter 1:Software and Software Engineering.ppt
- 《面向对象软件工程》课程PPT教学课件(英文版)Chapter 7:Focusing on Users and Their Tasks.ppt
- 徐州工程学院:《电子商务概论》课程教学资源(PPT课件讲稿)总目录.ppt
- 徐州工程学院:《电子商务概论》课程教学资源(PPT课件讲稿)导论(主讲:武长柱).ppt
- 徐州工程学院:《电子商务概论》课程教学资源(PPT课件讲稿)复习.ppt
- 徐州工程学院:《电子商务概论》课程教学资源(PPT课件讲稿)chp14电子商务发展中的法律法规.ppt
- 徐州工程学院:《电子商务概论》课程教学资源(PPT课件讲稿)chp9 电子商务开发技术.ppt
- 徐州工程学院:《电子商务概论》课程教学资源(PPT课件讲稿)chp8 电子政务.ppt
- 徐州工程学院:《电子商务概论》课程教学资源(PPT课件讲稿)chp7 物流与供应链管理.ppt
- 徐州工程学院:《电子商务概论》课程教学资源(PPT课件讲稿)chp6 客户关系管理.ppt
- 徐州工程学院:《电子商务概论》课程教学资源(PPT课件讲稿)chp5 网络银行与支付.ppt
- 徐州工程学院:《电子商务概论》课程教学资源(PPT课件讲稿)chp4 网络营销与管理.ppt
- 徐州工程学院:《电子商务概论》课程教学资源(PPT课件讲稿)chp3 电子商业与贸易.ppt
- 徐州工程学院:《电子商务概论》课程教学资源(PPT课件讲稿)chp2 电子商务机理与模式.ppt
- 徐州工程学院:《电子商务概论》课程教学资源(PPT课件讲稿)chp15 电子商务发展状况.ppt
- 徐州工程学院:《电子商务概论》课程教学资源(PPT课件讲稿)chp12 电子商务网站建设.ppt
- 徐州工程学院:《电子商务概论》课程教学资源(PPT课件讲稿)chp11 电子商务系统设计.ppt
- 《面向对象软件工程》课程PPT教学课件(英文版)Chapter 6:Using Design Patterns.ppt
- 《面向对象软件工程》课程PPT教学课件(英文版)Chapter 1. Software and Software Engineering.pdf
- 《面向对象软件工程》课程PPT教学课件(英文版)Chapter 8:Modelling Interactions and Behaviour.ppt
- 《面向对象软件工程》课程PPT教学课件(英文版)Chapter 9:Architecting and Designing Softwarech09.ppt
- 《面向对象软件工程》课程PPT教学课件(英文版)Chapter 10:Testing and Inspecting to Ensure High Quality.ppt
- 《面向对象软件工程》课程PPT教学课件(英文版)Chapter 11:Managing the Software Process.ppt
- 《PPT应用与计算机安全》讲义.ppt
- 《新标准中文版Photoshop7基础培训教程》教学资源(PPT课件讲稿)第10章 滤镜(上).ppt
- 《新标准中文版Photoshop7基础培训教程》教学资源(PPT课件讲稿)第11章 滤镜(下).ppt
- 《新标准中文版Photoshop7基础培训教程》教学资源(PPT课件讲稿)第1章 初识Photoshop 7.ppt
- 《新标准中文版Photoshop7基础培训教程》教学资源(PPT课件讲稿)第2章 基础工具.ppt
- 《新标准中文版Photoshop7基础培训教程》教学资源(PPT课件讲稿)第3章 绘图工具.ppt
- 《新标准中文版Photoshop7基础培训教程》教学资源(PPT课件讲稿)第4章 油漆桶和渐变工具.ppt
- 《新标准中文版Photoshop7基础培训教程》教学资源(PPT课件讲稿)第5章 路径及形状处理工具.ppt
- 《新标准中文版Photoshop7基础培训教程》教学资源(PPT课件讲稿)第6章 文字工具.ppt
- 《新标准中文版Photoshop7基础培训教程》教学资源(PPT课件讲稿)第7章 其他工具.ppt
- 《新标准中文版Photoshop7基础培训教程》教学资源(PPT课件讲稿)第8章 图层与蒙版第8章.ppt
- 《新标准中文版Photoshop7基础培训教程》教学资源(PPT课件讲稿)第9章 通道的应用.ppt
- 《数字图象处理》第一章 Windows 位图和调色板.doc
- 《数字图象处理》第十章 图象处理编程工具及简单的多媒体编程.doc