Object Oriented Analysis and Design Using the UMLVersion .ppt
《Object Oriented Analysis and Design Using the UMLVersion .ppt》由会员分享,可在线阅读,更多相关《Object Oriented Analysis and Design Using the UMLVersion .ppt(63页珍藏版)》请在麦多课文档分享上搜索。
1、Object Oriented Analysis and Design Using the UML Version 4.2,Introduction to Object Orientation,Objectives: Introduction to Object Orientation,Understand the basic principles of object orientation Understand the basic concepts and terms of object orientation and the associated UML notation Apprecia
2、te the strengths of object orientation Understand some basic UML modeling mechanisms,Introduction to Object Orientation Topics,Basic Principles of Object Orientation Basic Concepts of Object Orientation Strengths of Object Orientation General UML Modeling Mechanisms,Basic Principles of Object Orient
3、ation,Salesperson Not saying Which salesperson just a salesperson in general!,Customer,Product,Manages Complexity,What is Abstraction?,Improves Resiliency,What is Encapsulation?,Hide implementation from clients Clients depend on interface,How does an object encapsulate? What does it encapsulate?,Ord
4、er Processing System,Billing,Order Entry,Order Fulfillment,Manages Complexity,What is Modularity?,The breaking up of something complex into manageable pieces,Asset,RealEstate,Savings,BankAccount,Checking,Stock,Security,Bond,Elements at the same level of the hierarchy should be at the same level of a
5、bstraction,What is Hierarchy?,Levels of abstraction,Introduction to Object Orientation Topics,Basic Principles of Object Orientation Basic Concepts of Object Orientation Strengths of Object Orientation General UML Modeling Mechanisms,Basic Concepts of Object Orientation,Object Class Attribute Operat
6、ion Interface (Polymorphism) Component Package Subsystem Relationships,Basic Concepts of Object Orientation,Object Class Attribute Operation Interface (Polymorphism) Component Package Subsystem Relationships,Chemical Process,What is an Object?,Informally, an object represents an entity, either physi
7、cal, conceptual, or software Physical entity Conceptual entity Software entity,A More Formal Definition,An object is a concept, abstraction, or thing with sharp boundaries and meaning for an application An object is something that has: State Behavior Identity,: Professor,a + b = 10,ProfessorClark :
8、Professor,ProfessorClark,Class Name Only,Object Name Only,Class and Object Name,(stay tuned for classes),Representing Objects,An object is represented as rectangles with underlined names,Basic Concepts of Object Orientation,Object Class Attribute Operation Interface (Polymorphism) Component Package
9、Subsystem Relationships,OO Principle: Abstraction,What is a Class?,A class is a description of a group of objects with common properties (attributes), behavior (operations), relationships, and semantics An object is an instance of a class A class is an abstraction in that it: Emphasizes relevant cha
10、racteristics Suppresses other characteristics,a + b = 10,Class Course,Properties Name Location Days offered Credit hours Start time End time,Behavior Add a student Delete a student Get course roster Determine if it is full,Sample Class,Professor,Professor Clark,a + b = 10,Representing Classes,A clas
11、s is represented using a compartmented rectangle,Class Compartments,A class is comprised of three sections The first section contains the class name The second section shows the structure (attributes) The third section shows the behavior (operations),Classes of Objects,How many classes do you see?,O
12、bjects,Class,Professor,The Relationship Between Classes and Objects,A class is an abstract definition of an object It defines the structure and behavior of each object in the class It serves as a template for creating objects Objects are grouped into classes,Basic Concepts of Object Orientation,Obje
13、ct Class Attribute Operation Interface (Polymorphism) Component Package Subsystem Relationships,Class,Attribute,Object,Attribute Value,What is an Attribute?,Basic Concepts of Object Orientation,Object Class Attribute Operation Interface (Polymorphism) Component Package Subsystem Relationships,Class,
14、Operation,What is an Operation?,Basic Concepts of Object Orientation,Object Class Attribute Operation Interface (Polymorphism) Component Package Subsystem Relationships,OO Principle: Encapsulation,What is Polymorphism?,The ability to hide many different implementations behind a single interface,Real
15、ization relationship,(stay tuned for realization relationships),What is an Interface?,Interfaces formalize polymorphism Interfaces support “plug-and-play” architectures,Shape,Elided/Iconic Representation (“lollipop”),Canonical (Class/Stereotype) Representation,(stay tuned for realization relationshi
16、ps),Interface Representations,Basic Concepts of Object Orientation,Object Class Attribute Operation Interface (Polymorphism) Component Package Subsystem Relationships,Source File Name, Executable Name,OO Principle: Encapsulation,What is a Component?,A non-trivial, nearly independent, and replaceable
17、 part of a system that fulfills a clear function in the context of a well-defined architecture A component may be A source code component A run time components or An executable component,Basic Concepts of Object Orientation,Object Class Attribute Operation Interface (Polymorphism) Component Package
18、Subsystem Relationships,Package Name,OO Principle: Modularity,What is a Package?,A package is a general purpose mechanism for organizing elements into groups A model element which can contain other model elementsUses Organize the model under development A unit of configuration management,Basic Conce
19、pts of Object Orientation,Object Class Attribute Operation Interface (Polymorphism) Component Package Subsystem Relationships,OO Principles: Encapsulation and Modularity,(stay tuned for realization relationship),What is a Subsystem?,A combination of a package (can contain other model elements) and a
20、 class (has behavior) Realizes one or more interfaces which define its behavior,Component Name,Design Model,Implementation Model,Component Interface,OO Principles: Encapsulation and Modularity,Subsystems and Components,Components are the physical realization of an abstraction in the design Subsystem
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- OBJECTORIENTEDANALYSISANDDESIGNUSINGTHEUMLVERSIONPPT

链接地址:http://www.mydoc123.com/p-373026.html