Databases : Data Modeling 2007, Fall Pusan National University Ki-Joune Li.

Slides:



Advertisements
Similar presentations
Object-oriented modeling Class/Object Diagrams
Advertisements

Stereotypes Stereotypes provide the capability to create a new kind of modeling element. –They can be used to classify or mark modeling elements. –A type.
CRC Modeling. Recap Class Modeling – How to Identify classes, its attributes and functions? – Class selection criteria – Relationships Associations Generalization.
UML Class Diagram. UML Class Diagrams2 Agenda What is a Class Diagram? Essential Elements of a UML Class Diagram Tips.
UML Class Diagram and Packages Written by Zvika Gutterman Adam Carmi.
UML Class Diagram. UML Class Diagrams2 Agenda What is a Class Diagram? Essential Elements of a UML Class Diagram Tips.
UML Class Diagram and Packages Written by Zvika Gutterman Adam Carmi.
UML Class Diagram and Packages Written by Zvika Gutterman Adam Carmi.
Slide 1 Chapter 7 Structural Modeling. Slide 2 Key Ideas A structural or conceptual model describes the structure of the data that supports the business.
Chapter 14 (Web): Object-Oriented Data Modeling
UML Class Diagram and Packages
Practical Object-Oriented Design with UML 2e Slide 1/1 ©The McGraw-Hill Companies, 2004 Class and Object Diagrams PRACTICAL OBJECT-ORIENTED DESIGN WITH.
7M822 UML Class Diagrams advanced concepts 15 September 2008.
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.
UML Unified Modeling Language. What is UML? Unified Modeling Language (UML) is a standardized, general-purpose modeling language in the field of software.
OBJECT ORIENTED PROGRAMMING LECTURE 12 Instructor: Rashi Garg Coordinator: Gaurav Saxena.
Chapter 5 Entity–Relationship Modeling
Object-Oriented Software Development F Software Development Process F Analyze Relationships Among Objects F Class Development F Class Design Guidelines.
Lab 04.
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,
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 15: Object-Oriented Data Modeling Modern Database Management 9 h Edition Jeffrey A.
Unit 1 INTRODUCTION TO MODELING AND CLASS MODEL Ref : L7-UML.PDF.
© 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.
® IBM Software Group © 2006 IBM Corporation Rational Software France Object-Oriented Analysis and Design with UML2 and Rational Software Modeler 03. Classes,
Class-based Modeling.
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 24. Review ANALYSIS Level Class Diagram – Identifying Entities – Identifying Attributes – Identifying Operations.
Class diagram Used for describing structure and behaviour in the use cases Provide a conceptual model of the system in terms of entities and their relationships.
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.
What is a Structural Model?
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.
Class Diagram Classes are the most important building block of any object-oriented system. A class is a description of a set of objects that share the.
Chapter 5 System Modeling Sommerville, "software engineering ", 9 th Ed., 2011.
Design Model Lecture p6 T120B pavasario sem.
Object Oriented Analysis: Associations. 2 Object Oriented Modeling BUAD/American University Class Relationships u Classes have relationships between each.
Class Modeling Design Class diagram. Classes The term “class ” refers to a group of objects that share a common attributes and common behaviour (operations).
 Week08.  Review Schedule Weeks 8-14  This week o Review last class o Introduce Class Diagrams o ICE-03 Sheridan SYST Engineering Quality Systems.
CSCI-383 Object-Oriented Programming & Design Lecture 10.
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.
Class diagrams Terézia Mézešová.
© Shamkant B. Navathe CC Enhanced Entity-Relationship Copyright © 2004 Ramez Elmasri and Shamkant Navathe.
ITEC0724 Modern Related Technology on Mobile Devices Lecture Notes #2 1.
CHAPTER 13: OBJECT-ORIENTED DATA MODELING (OVERVIEW) Modern Database Management 11 th Edition Jeffrey A. Hoffer, V. Ramesh, Heikki Topi © 2013 Pearson.
Class Diagram Lecture # 1. Class diagram A Class Diagram is a diagram describing the structure of a system shows the system's classes Attributes operations.
Data Modelling 2014, Fall Pusan National University Ki-Joune Li.
Unified Modeling Language (UML)
Object-Oriented Modeling
COMP 2710 Software Construction Class Diagrams
Class diagram Description
UML Unified Modelling Language
UML Class Diagrams: Basic Concepts
Object Oriented Analysis and Design
Lec 3: Object-Oriented Data Modeling
2018, Fall Pusan National University Ki-Joune Li
UML Class Diagram.
Unified Modelling Language
Software Engineering System Modeling Extra examples Dr.Doaa Sami
Understand and Use Object Oriented Methods
Class Diagrams Class diagram is basically a graphical representation of the static view of the system and represents different aspects of the application.
Information System Design
2019, Fall Pusan National University Ki-Joune Li
Presentation transcript:

Databases : Data Modeling 2007, Fall Pusan National University Ki-Joune Li

STEMPNU 2 What is a Class Diagram? A class diagram describes  the types of objects in the system and  the various kinds of static relationships that exist among them.  A graphical representation of a static view on declarative static elements. A central modeling technique that runs through nearly all object-oriented methods. The richest notation in UML

STEMPNU 3 Essential Elements of a UML Class Diagram Class Attributes Operations Relationships  Associations  Generalization  Dependency  Realization Constraint Rules and Notes

STEMPNU 4 Classes A class: Description of a set of objects having similar  attributes,  operations,  relationships and behavior An entity type to be stored in DB Window size: Size visibility: boolean display() hide() Class Name Attributes Operation s

STEMPNU 5 Associations A semantic relationship between classes  To specify connections among their instances. A structural relationship  To specify that objects of one class are connected to objects of a second (possibly the same) class. Example  An Employee works for a Company

STEMPNU 6 Example Staff MemberStudent 1..* *instructs instructor Association name Role name Multiplicity Navigable (uni-directional) association Courses pre -requisites 0..3 Reflexive association Role *

STEMPNU 7 Associations: Name and Role Association has a name  To clarify its meaning  The name is represented as a label placed midway along the association line.  Usually a verb or a verb phrase. A role is an end of an association where it connects to a class.  May be named to indicate the role played by the class attached to the end of the association path. Usually a noun or noun phrase Mandatory for reflexive associations

STEMPNU 8 Associations: Multiplicity or Cardinality Multiplicity  The number of instances of the class associated with an instance of the class with the association  Indicates whether or not an association is mandatory.  Provides a lower and upper bound on the number of instances

STEMPNU 9 Associations: Notations for Multiplicity Multiplicity Indicators Exactly one1 Zero or more (unlimited)* (0..*) One or more1..* Zero or one (optional association)0..1 Specified range2..4 Multiple, disjoint ranges2, 4..6, 8

STEMPNU 10 Aggregation A special form of association that models a whole-part relationship between an aggregate (the whole) and its parts.  Models a “is a part-part of” relationship. Whole Part Car Door House 1..*2..*

STEMPNU 11 Aggregation Tests to distinguish from Association Is the phrase “part of” used to describe the relationship?  A door is “part of” a car Are some operations on the whole automatically applied to its parts?  Move the car, move the door. Are some attribute values propagated from the whole to all or some of its parts?  The car is blue, therefore the door is blue.

STEMPNU 12 Composition A strong form of aggregation  The whole is the sole owner of its part. The part object may belong to only one whole  Multiplicity on the whole side must be zero or one.  The life time of the part is dependent upon the whole. The composite must manage the creation and destruction of its parts. CirclePoint 3..* 1 Polygon Point Circle

STEMPNU 13 Generalization Any object of the specialized class (subclass) is a concrete objects of the generalized class (super-class).  “is kind of” relationship. Shape {abstract} Circle Super Class Sub Class An abstract class Generalization relationship {abstract} is a tagged value that indicates that the class is abstract. The name of an abstract class should be italicized

STEMPNU 14 Generalization: Inheritance A sub-class inherits from its super-class  Attributes  Operations  Relationships A sub-class may  Add attributes and operations  Add relationships  Refine (override) inherited operations

STEMPNU 15 An Example: Hospital Story Download StarUML and Install it Draw a class diagram for Hospital Story