Class diagram Description

Slides:



Advertisements
Similar presentations
Database Design: ER Modelling (Continued)
Advertisements

Object-oriented modeling Class/Object Diagrams
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.
UML Class Diagram and Packages
7M822 UML Class Diagrams advanced concepts 15 September 2008.
CMIS 470 Structured Systems Design
1 A Student Guide to Object- Orientated Systems Chapter 4 Objects and Classes: the basic concepts.
CSE 441: Systems Analysis & Design
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Session 11 The Class Diagram: Aggregation and Generalization Written by Thomas A. Pender Published by Wiley Publishing, Inc. October 12, 2011 Presented.
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 4th Edition Copyright © 2012 John Wiley & Sons, Inc. All rights.
Association Class Generalization/Specialization Whole-Part Page More Associations 1.
Systems Analysis and Design in a Changing World, 6th Edition 1 Chapter 4 - Domain Classes.
Object-Oriented Software Development F Software Development Process F Analyze Relationships Among Objects F Class Development F Class Design Guidelines.
Systems Analysis and Design in a Changing World, 6th Edition 1 Chapter 4 Domain Classes.
CS3773 Software Engineering Lecture 04 UML Class Diagram.
Databases : Data Modeling 2007, Fall Pusan National University Ki-Joune Li.
Unit 1 INTRODUCTION TO MODELING AND CLASS MODEL Ref : L7-UML.PDF.
بسم الله الرحمن الرحيم ” اللهم أنت ربي لا إله إلا أنت خلقتني و أنا عبدك وأنا على عهدك ووعدك ما استطعت ، أعوذ بك من شر ما صنعت ، أبوء لك بنعمتك على و أبوء.
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.
ITEC 3220A Using and Designing Database Systems Instructor: Prof Z. Yang Course Website: 3220a.htm
Design Model Lecture p6 T120B pavasario sem.
 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.
Database Design – Lecture 12 Object Oriented Database Design cont’d.
CS212: Object Oriented Analysis and Design Lecture 33: Class and Sequence Diagram.
Chapter 4 Basic Object-Oriented Concepts. Chapter 4 Objectives Class vs. Object Attributes of a class Object relationships Class Methods (Operations)
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.
Chapter 5: Structural Modeling
Unified Modeling Language (UML)
UML Diagrams: Class Diagrams The Static Analysis Model
Object-Oriented Modeling
COMP 2710 Software Construction Class Diagrams
Structural Modeling.
Enhanced Entity-Relationship and Object Modeling Objectives
DATA REQIREMENT ANALYSIS
OBJECT ORIENTED CONCEPT
Chapter 5: Structural Modeling
OO Domain Modeling With UML Class Diagrams and CRC Cards
Software Engineering System Modeling Chapter 5 (Part 2) Dr.Doaa Sami
Software Engineering System Modeling Chapter 5 (Part 2) Dr.Doaa Sami
Advanced Java Programming
OO Domain Modeling With UML Class Diagrams and CRC Cards
Object Oriented Analysis and Design
Domain Class Diagram Chapter 4 Part 2 pp
Seminar 3 UML Class Diagram.
Lec 3: Object-Oriented Data Modeling
Software Engineering Lecture #11.
Object Oriented Analysis and Design Using the UML
Systems Analysis and Design With UML 2
2018, Fall Pusan National University Ki-Joune Li
UML Class Diagram.
INFS 6225 Object Oriented Systems Analysis & Design
Unified Modelling Language
Software Engineering System Modeling Extra examples Dr.Doaa Sami
Systems Analysis – ITEC 3155 Modeling System Requirements – Part 2
ITEC 3220A Using and Designing Database Systems
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:

Class diagram Description IS351-System Analysis Class diagram Description

Class Diagram Components Classes Attribute Operations Associations Aggregation Composition Generalization Multiplicity A class diagram is a type of static structure diagram that describes the structure of a system by showing the system's classes, their attributes, operations (or methods), and the relationships among objects.

The Domain Model Class Diagram A class diagram that only includes classes from the problem domain. Design class diagram vs domain model class diagram !!

Classes Window Class Name size: Size visibility: boolean Attributes display() hide() Class Name Attributes Operations A class is the description of a set of objects having similar attributes, operations, relationships and behavior.

Associations Example: “An Employee works for a Company” To clarify its meaning, an association may be named. Usually a verb or a verb phrase. Company Department Employee Associations denote relationships between classes

Multiplicity indicates that (at least) one of the two related classes makes reference to the other 0..1 No instances, or one instance (optional, may) 1 Exactly one instance 0..* or * Zero or more instances 1..* One or more instances (at least one) Student Course Doctor 0..* 0..6 1..* 1..2 Registered in Teaches

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

Composition A strong form of aggregation Pages Person Eye 0..* 2 Book 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.

Generalization (inheritance)  indicates that one of the two related classes (the subclass) is considered to be a specialized form of the other (the super type) and superclass is considered as 'Generalization' of subclass “is kind of” relationship. {abstract} is a tagged value that indicates that the class is abstract. The name of an abstract class should be italicized Shape {abstract} Circle Super Class Sub Class An abstract class Generalization relationship

How to model class diagram Find new classes. Review name, attribute and methods for each class. Find associations between classes. Label the generic associations. Determine the multiplicity of the associations. Review associations.

Example of identifying Class Relations, Multiplicities, Attributes

The Noun Technique A technique to identify problem domain objects by finding and classifying the nouns in a dialog or description. a noun is a person, place, or thing. The analyst lists all nouns without thinking too much about them and without talking much to users.

The Noun Technique list all the nouns that users mention when talking about the system add to the list any additional nouns about the problem domain of the system. Refine the noun list. Ask these questions about each noun: Is it a unique thing the system needs to know about? Is it inside the scope of the system I am working on? Does the system need to remember more than one of these items?

Multi-Clinic System Case Study In a multi-clinic system a patient makes a call for an appointment reservation. Once the call is done, the system has to record all patient information such as patient name, address, and telephone number. In a multi-clinic system a patient makes a call for an appointment reservation. Once the call is done, the system has to record all patient information such as patient name, address, and telephone number. During the notification with a patient, he/she should know all possible appointments in order to choose his/her desired appointment. During the notification with a patient, he/she should know all possible appointments in order to choose his/her desired appointment. The patient may cancel or change his/her appointment before 24 hours from his actual appointment. The patient may cancel or change his/her appointment before 24 hours from his actual appointment. Two daily reports have to be prepared to each doctor, one of them is about patient report and the other is an appointment report. Two daily reports have to be prepared to each doctor, one of them is about patient report and the other is an appointment report.

Multi-Clinic System Case Study When a patient comes for examination, the doctor writes a prescription which includes all drugs the patient have to take, number of times and dose he has to take for each medicine. In the end, the doctor Prints the prescription to the patient before he leaves. When a patient comes for examination, the doctor writes a prescription which includes all drugs the patient have to take, number of times and dose he has to take for each medicine. In the end, the doctor Prints the prescription to the patient before he leaves.

MCS Class Diagram