Information System Design

Slides:



Advertisements
Similar presentations
UML (cont.) “The Unified Modeling Language User Guide” by G. Booch, J. Rumbaugh and I. Jacobson ● Classes ● Relationships ● Class diagrams ● Examples.
Advertisements

Object-oriented modeling Class/Object Diagrams
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.
Unified Modeling Language Philip Liew
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.
Lecturer: Sebastian Coope Ashton Building, Room G.18 COMP 201 web-page: Lecture.
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
What is UML? A modeling language standardized by the OMG (Object Management Group), and widely used in OO analysis and design A modeling language is a.
IMSE 11 - UML Class Diagrams
7M822 UML Class Diagrams advanced concepts 15 September 2008.
2-1 © Prentice Hall, 2004 Chapter 2: Introduction to Object Orientation (Adapted) Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra,
Object-Oriented Analysis and Design
OBJECT ORIENTED PROGRAMMING LECTURE 12 Instructor: Rashi Garg Coordinator: Gaurav Saxena.
Sadegh Aliakbary Sharif University of Technology Fall 2010.
Training: INSPIRE Basics EC JRC 1/15 UML class diagram: example INSPIRE UML class diagram for administrative units.
UML Diagrams: Class Diagrams The Static Analysis Model Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
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.
CS3773 Software Engineering Lecture 04 UML Class Diagram.
Databases : Data Modeling 2007, Fall Pusan National University Ki-Joune Li.
بسم الله الرحمن الرحيم ” اللهم أنت ربي لا إله إلا أنت خلقتني و أنا عبدك وأنا على عهدك ووعدك ما استطعت ، أعوذ بك من شر ما صنعت ، أبوء لك بنعمتك على و أبوء.
The Static Analysis Model Class Diagrams Prof. Hany H. Ammar, CSEE, WVU, and Dept. of Computer Science, Faculty of Computers and Information, Cairo University.
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.
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 Software Design (UML) Class Name attributes operations A class is a description of a set of objects that share the same attributes,
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.
Object Oriented Analysis and Design Class and Object Diagrams.
UML Class Diagram. A class diagram shows 1.Classes 2.The relationships between them.
Class Diagram Chapter 21 Applying UML and Patterns Craig Larman.
CS212: Object Oriented Analysis and Design Lecture 33: Class and Sequence Diagram.
UML Part 1: Class Diagrams. Introduction UML stands for Unified Modeling Language. It represents a unification of the concepts and notations presented.
Class diagrams Terézia Mézešová.
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.
2-1 © Prentice Hall, 2004 Chapter 2: Introduction to Object Orientation Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph.
 Class and Diagram  Representation of Class Name Attributes Operations  Visibility of Attributes and Operations.
Entity Relationship (E-R) Model
Unified Modeling Language (UML)
Object-Orientated Analysis, Design and Programming
UML Diagrams: Class Diagrams The Static Analysis Model
COMP 2710 Software Construction Class Diagrams
Structural Modeling.
EER Model – Chapter
Visit for more Learning Resources
Chapter 5: Structural Modeling
Chapter 16 UML Class Diagrams.
Class Diagrams.
EKT472: Object Oriented Programming
Class diagram Description
UML Class & Object Diagram II
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
Software Engineering System Modeling Chapter 5 (Part 2) Dr.Doaa Sami
Software Engineering System Modeling Chapter 5 (Part 2) Dr.Doaa Sami
Object Oriented Analysis and Design
Software Engineering Lecture #11.
UML Class Diagram.
Software Engineering Lecture 10.
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.
Class Diagram.
CIS 375 Bruce R. Maxim UM-Dearborn
Object Oriented System Design Class Diagrams
UML  UML stands for Unified Modeling Language. It is a standard which is mainly used for creating object- oriented, meaningful documentation models for.
Presentation transcript:

Information System Design Lab 3

Lab Objectives Class diagram element of class diagram. class relationships. How to create class diagram.

Class Diagram Class diagrams are widely used to describe the types of objects in a system and their relationships. Classes have attributes (member variables), operations (member methods) and relationships with other classes. You usually apply class modeling during analysis and design activities

List of attributes (variables) List of operations (methods) Elements of a Class Diagram Class A class represents an entity of a given system . A class is represented by a rectangle. Classes are composed of three things: name. attributes(variables). operations (methods). Class name List of attributes (variables) List of operations (methods)

Elements of a Class Diagram (cont..) Class name The class name typically has the first alphabet capitalized . If the class has more than one words then capitalize the first alphabet of both words and join the two (e.g. CourseAdmin).

Elements of a Class Diagram (cont..) List of attributes : visibility attributeName : type[=default value ] it indicates whether the attribute is accessible from outside the class. It may be one of the following: + public visibility(everyone) # protected visibility (friends and derived) - Private visibility (no one) Visibility Is the name of the attribute you are describing. attributeName It indicates the type of data an attribute may hold. Type It indicates the initial value of an attribute. Default Value

name : type [= default value] Elements of a Class Diagram (cont..) List of operations: visibility operationName(parameter _list ):return type Parameter_list Each parameter is shown as a text string having the following syntax: name : type [= default value]

Class Relationships Associations When two classes are connected to each other in any way, an association relation is established. Represent relationship between instances of classes for example Courses have students Courses have exams You can add several kinds of details, to an association. These details include the following: Association name. Multiplicity .

Class Relationships Association name. Multiplicity an Association name is used To clarify its meaning. The association name is represented as a label placed midway along the association line. Usually a verb or a verb phrase. Multiplicity The multiplicity of an association specifies how many instances of one class may relate to instance of another class.

Class Relationships Multiplicity Notation Meaning Symbol One and only one(exactly one) 1 Zero or one 0..1 From M to N M..N From zero to any positive integer * 0..* From one to any positive integer 1..*

Multiplicity 1 teach 1..* Teacher Student One-to-one or many 1 holds 6,12 EggBox Egg One-to-6 or 12 1 has 3 Tricycle Wheel One-to-3 1 Married to 1 Husband Wife One-to-one

Examples Work on 1 1..* 1 1..* manage enroll 1 1..4

Class Relationships Aggregation An aggregation is a special kind of association—a “whole/part” relationship within which one or more classes are parts of a larger whole. It is also called a "has a" relationship. An aggregation appears as a line with an open diamond at one end. The class next to the diamond is the whole class; the class at the other end of the line is the part class. whole part

Example company Employee

Class Relationships Composition Composition is a “strong” form of aggregation. It is a whole-part relationship between a composite (the whole) and its parts, in which the parts must belong only to one whole and the whole is responsible for creating and destroying its parts when it created or destroyed. Composition is shown using a filled diamond attached to the class that represents the whole. whole part

Example House Room Book Page

Class Relationships Generalization Generalization refers to a relationship between a general class (the superclass or parent) and a more specific version of that class (the subclass or child). Also called an "is a" relationship, because the child class is a type of the parent class. The inheritance relationship in UML is depicted by a peculiar triangular arrowhead. This arrowhead points to the base class.

Example C# C++ java Programming language

How To Create Class Diagram? Identify classes Identify the “Active” Entity in system . Identify the “passive” Entity in system . Identify attributes and operation for each class. Identify relationship between classes Identify relationship between “Active” Entities. Identify relationship between “passive” business Entities. Identify relationship between “passive” and “active” Entities.

Example : Student Grades Management system the system allow the teacher to record the students grades and view them. Our students can view their grades and the printing administrator can create report cards so , he must view the grades also . Finally teacher can distribute the report cards by the system.

Identify classes :. Identify the “Active” Entity in system . 1) Teacher. 2) Student. 3)Printing Administrator. Identify the “passive” Entity in system . 4) Grade . 5) Report Card. Identify attributes and operation for each class.

Identify the “Active” Entity in system . Operations Attributes Class Name RecordGrade() ViewGrade() DistributeReportCard() ModifyGrade() DeleteGrade() ViewAllGrade() ViewStudentInfo () ViewAllStudentInfo() name passward course grade* student* reportCard* Teacher ID Student CreateReportCard() ModifyReportCard() DeleteReportCard() ViewReportCard() FormatReportCard() PrintingAdmin

Operations Attributes Class Name Identify the “passive” Entity in system . Operations Attributes Class Name RecordGrade() ViewGrade() ModifyGrade() DeleteGrade() ViewAllGrade() Course grade student* Grade CreateReportCard() ModifyReportCard() DeleteReportCard() ( ViewReportCard( DistributeReportCard() FormatReportCard() grade* dimension border font color row column picture backGround ReportCard

Identify relationship between classes:. Identify relationship between “Active” Entities. 6) User Operations Attributes Class Name Authentication() name password User

Identify relationship between “passive” business Entities.

Teacher PrintingAdmin Student ReportCard Grade User Identify relationship between “passive” and “active” Entities. Teacher PrintingAdmin Student ReportCard Grade User 1..* View Manage Distribute 1 *