Object-Oriented Modeling

Slides:



Advertisements
Similar presentations
Chapter 9 Structuring System Data Requirements
Advertisements

Object-Oriented Analysis and Design: Object Modeling – Class Diagrams
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall A.1.
Solutions to Review Questions. 4.1 Define object, class and instance. The UML Glossary gives these definitions: Object: an instance of a class. Class:
UML Class Diagram. UML Class Diagrams2 Agenda What is a Class Diagram? Essential Elements of a UML Class Diagram Tips.
Chapter 14 (Web): Object-Oriented Data Modeling
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Appendix.
Chapter 4: Object-Oriented Data Modeling
Modelling classes Drawing a Class Diagram. Class diagram First pick the classes –Choose relevant nouns, which have attributes and operations. Find the.
Chapter 14: Object-Oriented Data Modeling
UML Class Diagrams: Basic Concepts. Objects –The purpose of class modeling is to describe objects. –An object is a concept, abstraction or thing that.
EER vs. UML Terminology EER Diagram Entity Type Entity Attribute
Advanced Information Modeling and Database Systems
Chapter 41 Enhanced Entity-Relationship and Object Modeling.
Chapter 14: Object-Oriented Data Modeling
Chapter 13 (Online): Object-Oriented Databases
© 2006 ITT Educational Services Inc. SE350 System Analysis for Software Engineers: Unit 8 Slide 1 Chapter 9 Structuring System Data Requirements.
Copyright 2001 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Appendix A Object-Oriented.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 20 Object-Oriented.
Database Management System Prepared by Dr. Ahmed El-Ragal Reviewed & Presented By Mr. Mahmoud Rafeek Alfarra College Of Science & Technology Khan younis.
R McFadyen Chapter 7 Conceptual Data Modeling.
Object-Oriented Software Development F Software Development Process F Analyze Relationships Among Objects F Class Development F Class Design Guidelines.
CS3773 Software Engineering Lecture 04 UML Class Diagram.
CHAPTER 13 (ONLINE): OBJECT-ORIENTED DATA MODELING © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition.
1 © Prentice Hall, 2002 Chapter 14: Object-Oriented Data Modeling Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R.
© 2011 Pearson Education 1 Chapter 13 (Online): Object-Oriented Databases Modern Database Management 10 th Edition, International Edition Jeffrey A. Hoffer,
7-1 © Prentice Hall, 2004 Chapter 7: Conceptual Data Modeling Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich,
7-1 © Prentice Hall, 2007 Chapter 7: Conceptual Data Modeling Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich,
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 15: Object-Oriented Data Modeling Modern Database Management 9 h Edition Jeffrey A.
Unit 3 Conceptual Data Modeling. Key Concepts Conceptual data modeling process Classes and objects Attributes Identifiers, candidate keys, and primary.
Databases : Data Modeling 2007, Fall Pusan National University Ki-Joune Li.
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 13 (Online): Object-Oriented Data Modeling Modern Database Management 10 th Edition.
CHAPTER 13: OBJECT-ORIENTED DATA MODELING (OVERVIEW) © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition.
Unified Modeling Language © 2002 by Dietrich and Urban1 ADVANCED DATABASE CONCEPTS Unified Modeling Language Susan D. Urban and Suzanne W. Dietrich Department.
Chapter 9 Structuring System Data Requirements. Objectives:  Define key data modeling terms.  Draw entity-relationship (E-R) and class diagrams to represent.
UML Class Diagram Trisha Cummings. What we will be covering What is a Class Diagram? Essential Elements of a UML Class Diagram UML Packages Logical Distribution.
Lecture 8 Object-Oriented Analysis and Design 20.1 COSC4406: Software Engineering.
Lecture 1: UML Class Diagram September 12, UML Class Diagrams2 What is a Class Diagram? A class diagram describes the types of objects in the system.
Object-Oriented Data Modeling
Object-Oriented Modeling: Static Models. Object-Oriented Modeling Model the system as interacting objects Model the system as interacting objects Match.
 Week08.  Review Schedule Weeks 8-14  This week o Review last class o Introduce Class Diagrams o ICE-03 Sheridan SYST Engineering Quality Systems.
CIS 210 Systems Analysis and Development Week 6 Part I Structuring Systems Data Requirements,
Chapter 4 Extended Entity-Relationship (EER)Model Incorporates Set-subset Relationships Incorporates Generalization Hierarchies Constraints: Coverage Constraints:
Modeling the Static Structure: Relationships ©SoftMoore ConsultingSlide 1.
CS212: Object Oriented Analysis and Design Lecture 33: Class and Sequence Diagram.
Extended ER Modelling. Extended E-R Features: Specialization Top-down design process; we designate subgroupings within an entity set that are distinctive.
CHAPTER 13: OBJECT-ORIENTED DATA MODELING (OVERVIEW) Modern Database Management 11 th Edition Jeffrey A. Hoffer, V. Ramesh, Heikki Topi © 2013 Pearson.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Appendix A Object-Oriented Analysis and Design A.1.
1 Inheritance One of the goals of object oriented programming is code reuse. Inheritance is one mechanism for accomplishing code reuse. It allows us to.
Appendix 3 Object-Oriented Analysis and Design
Enhanced Entity-Relationship and Object Modeling Objectives
Business System Development
The Movement To Objects
Inheritance B.Ramamurthy 11/7/2018 B.Ramamurthy.
UML UML Data Modeling.
UML Class Diagrams: Basic Concepts
Object Oriented Analysis and Design
Domain Class Diagram Chapter 4 Part 2 pp
Engineering Quality Software
Lec 3: Object-Oriented Data Modeling
Software Engineering Lecture #11.
Chapter 4 Advanced Class Modeling
UML Class Diagram.
Chapter 20 Object-Oriented Analysis and Design
Appendix A Object-Oriented Analysis and Design
Understand and Use Object Oriented Methods
Systems Analysis – ITEC 3155 Modeling System Requirements – Part 2
Appendix A Object-Oriented Analysis and Design
Appendix A Object-Oriented Analysis and Design
The Object Paradigm Classes – Templates for creating objects
Presentation transcript:

Object-Oriented Modeling

Phases of object-oriented systems development cycle

Object Object: An entity that has state, behavior, and identity. Tangible: Person, place or thing. Concept or Event: Department, performance, marriage, registration. Artifact of the Design Process: User interface, controller, scheduler.

State, Behavior, Identity State: Attribute types and values. Behavior: How an object acts and reacts. Behavior is expressed through operations that can be performed on it. Identity: Every object has a unique identity, even if all of its attribute values are the same.

Objects and Operations Object Class: Set of objects that share a common structure and a common behavior. Class Diagram: Fig. 5-2a. Object or Instance Diagram: Fig. 5-2b. Operation: A function or service that is provided by all the instances of a class. Encapsulation: Hiding an object’s implementation details.

UML class and object diagrams (a) Class diagram showing two classes

(b) Object diagram with two instances

Operations Types of Operations: Constructor: Creates a new instance of a class. Query: Accesses the state of an object but does not alter its state. Update: Alters the state of an object.

Associations Association: Relationship among object classes (Fig. 5-3). Association Role: Role of an object in an association (e.g. Manager in the Manages association of Fig. 5-3a.) Multiplicity: How many objects participate in an association. Lower-bound..Upper bound. Examples: Figs 5-4,5.

Examples of binary association relationships (a) University example

(b) Customer service example

Association Class Association Class: An association which has attributes or operations of its own or which participates in relationships with other classes. (Fig. 5-6,7)

Object diagram for customer order example

Association class and link object (a) Class diagram showing association classes

(b) Object diagram showing link objects

Ternary relationship with association class

Derived attribute, association, and role

Generalization Common attributes, relationships, AND operations. Subclass, superclass. (Fig. 5-9a) Abstract Class: No direct instances Concrete Class: Direct instances (Fig. 5-9b)

Examples of generalization, inheritance, and constraints (a) Employee superclass with three subclasses

Constraints Overlapping (Fig. 5-10) Disjoint Complete (“total specialization”) - all subclasses specified. Incomplete (“partial specialization”) - some subclasses specified.

Example of overlapping constraint

Class-Level Attribute Class-Level Attribute: Specifies a value common to an entire class, rather than a specific value for an instance. (Fig. 5-11) “=“ is initial, default value.

Polymorphism Abstract Operation: Defines the form or protocol of the operation, but not its implementation. (calc-tuition in Fig 5-11) Method: The implementation of an operation. Polymorphism: Modifications in an operation to apply to different classes.

Overriding Inheritance Overriding: The process of replacing a method inherited from a superclass by a more specific implementation of that method in a subclass. For Extension: add code. For Restriction: limit the method. (Fig. 5-12) For Optimization: improve code by exploiting restrictions imposed by the subclass.

Overriding inheritance

Multiple Inheritance Multiple Classification: An object is an instance of more than one class. Multiple Inheritance: A class inherits features from more than one superclass. (Fig. 5-13)

Aggregation Aggregation: A part-of relationship between a component object and an aggregate object. (Fig. 5-14) Composition: A stronger form of aggregation in which a part object belongs to only one whole object and exists only as part of the whole object. (solid diamond in Fig. 5-15) Recursive Aggregation: Fig. 5-16.

Additional Concepts Abstract Data Type (ADT): Define a new data type and a set of operations that can act upon it. Example: matrix.

Class diagram for Pine Valley Furniture Company