Class diagram Lection №2. Plan  Class: name, attributes, operations.  Relationships between classes.  Interfaces.  Objects.  Templates.  Recommendations.

Slides:



Advertisements
Similar presentations
Systems Analysis and Design with UML Version 2.0, Second Edition
Advertisements

Modelling Class T05 Conceptual Modelling – Domain References: –Conceptual Modeling of Information Systems (Chapters 1.2.1, 2, 3) –A practical Guide to.
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.
UML Class Diagram. UML Class Diagrams2 Agenda What is a Class Diagram? Essential Elements of a UML Class Diagram Tips.
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.
Slide 1 Systems Analysis & Design CS183 Spring Semester 2008 Dr. Jonathan Y. Clark Course Website:
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 1 Software Development. Copyright © 2005 Pearson Addison-Wesley. All rights reserved. 1-2 Chapter Objectives Discuss the goals of software development.
L3-5d-S1 Class Diagrams © M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room.
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.
7M701 1 Class Diagram advanced concepts. 7M701 2 Characteristics of Object Oriented Design (OOD) objectData and operations (functions) are combined 
PowerPoint Presentation for Dennis, Wixom & Tegarden Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved. Slide 1.
© M.E. Fayad SJSU -- CmpE Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San José.
L5-S1 Class Diagrams 2003 SJSU -- CmpE Software Patterns Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San.
UML Sequence Diagrams Eileen Kraemer CSE 335 Michigan State University.
PowerPoint Presentation for Dennis, Wixom & Tegarden Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved. Slide 1.
UML Sequence Diagrams Michael L. Collard, Ph.D. Department of Computer Science Kent State University.
1 Introduction to UML DIAGRAMS & CLASS DIAGRAM Chapter 7,8 主講人 : 許勝杰
Object Oriented Analysis & Design & UML (Unified Modeling Language)1 Part V: Design The Design Workflow Design Classes Refining Analysis Relationships.
1 UML Basic Training. UML Basic training2 Agenda  Definitions: requirements, design  Basics of Unified Modeling Language 1.4  SysML.
Structural Modeling Chapter 7
Slide 1 Structural Modeling Chapter 7. Slide 2 Key Ideas A structural or conceptual model describes the structure of the data that supports the business.
CS /31 Illinois Institute of Technology CS487 Software Engineering OOA with UML David Lash.
Chapter Two The UML – Unified Modeling Language Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information.
Databases : Data Modeling 2007, Fall Pusan National University Ki-Joune Li.
1 Software Development Software Engineering is the study of the techniques and theory that support the development of high-quality software The focus is.
1 Class Diagrams: Advanced Concepts. 2 Overview Class diagrams are the most commonly used diagrams in UML. Class diagrams are the most commonly used diagrams.
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.
Slide 1 Systems Analysis and Design with UML Version 2.0, Second Edition Alan Dennis, Barbara Haley Wixom, and David Tegarden Chapter 7: Structural Modeling.
Lecture 6: Structural Modeling
TAL7011 – Lecture 4 UML for Architecture Modeling.
UML The Unified Modeling Language A Practical Introduction Al-Ayham Saleh Aleppo University
Structural Modeling Chapter 7. Key Ideas A structural or conceptual model describes the structure of the data that supports the business processes in.
1 Structural Modeling Chapter 7. 2 Key Ideas A structural or conceptual model describes the structure of the data that supports the business processes.
CS 325: Software Engineering January 27, 2015 Domain Modeling Application Domains UML Class Diagrams.
Design Model Lecture p6 T120B pavasario sem.
1 Class Diagrams. 2 Overview Class diagrams are the most commonly used diagrams in UML. Class diagrams are for visualizing, specifying and documenting.
UML Class Diagram. A class diagram shows 1.Classes 2.The relationships between them.
PowerPoint Presentation for Dennis, Wixom & Tegardem Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved. Slide 1.
Poster Design. Context Where is the poster going to be? Who is going to see it? What will they be doing while they look at it? What do they want?
Slide 1 Systems Analysis and Design with UML Version 2.0, Second Edition Alan Dennis, Barbara Haley Wixom, and David Tegarden Chapter 7: Structural Modeling.
CS212: Object Oriented Analysis and Design Lecture 33: Class and Sequence Diagram.
Class diagrams Terézia Mézešová.
Chapter 16 UML Class Diagrams 1CS6359 Fall 2012 John Cole.
 Class diagrams show the classes of the system, their interrelationships (including inheritance, aggregation, and association), and the operations and.
Chapter 3: Introducing the UML
Object Modeling THETOPPERSWAY.COM. Object Modelling Technique(OMT)  Building a model of an application domain and then adding implementation.
CLASS DIAGRAMS A classy approach to objects. The Basic Class Diagram  Class Name  Attributes (- indicates private each would have properties or accessor/mutator.
ITEC0724 Modern Related Technology on Mobile Devices Lecture Notes #2 1.
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.
Slide 1 Systems Analysis and Design with UML Version 2.0, Second Edition Alan Dennis, Barbara Haley Wixom, and David Tegarden Chapter 7: Structural Modeling.
Object Oriented Programming and Data Abstraction Earl Huff Rowan University.
Class Diagrams Revisited. Parameterized Classes Parameterized Classes - are used to represent relationships between templates.
CS 350 – Software Design UML – The Unified Modeling Language – Chapter 2 The Unified Modeling Language is a visual language used to create models of programs.
Modeling with UML – Class Diagrams
UML Class Diagrams (more notation)
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
Component-Based & Software Reuse
Object Oriented Analysis and Design
Software Engineering Lecture #11.
UML Class Diagram.
Use Cases CS/SWE 421 Introduction to Software Engineering Dan Fleck
Use Cases CS/SWE 421 Introduction to Software Engineering Dan Fleck
Class Diagram.
Chapter 16 Class Diagrams.
Use Cases CS/SWE 421 Introduction to Software Engineering Dan Fleck
The generalization of class
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:

Class diagram Lection №2

Plan  Class: name, attributes, operations.  Relationships between classes.  Interfaces.  Objects.  Templates.  Recommendations for the development of class diagram

Class

Class: visibility quantum  “+” public type.  “#“ protected type.  "-“ private type.

Class: multiplicity  [0..1]  [0..*]  [1..*]  [1..5]  [1..3, 5, 7]  [1..3, ]  [1..3,7..*]

Class  color: Соlоr  employee_name [1..2] : String  visibility:Boolean  form:Polygon

Class attributes  color:Соlоr = (255, 0, 0)  employee_name[1..2]:String = Ivan Ivanovich.  visibility:Вооlеаn = true.  form:Polygon = rectangle.  visibility:Вооlеаn = truth.

Operations  +create()  +draw (form: Polygon = rectangle, fill_color Color: = (0, 0, 255))  ask_client’s_account (number_of_account:Integer):Сиггепсу  show_message():{"division by zero Error"}

Dependency relationship

 «access»  «bind»  «derive»  «import»  «refine»

Association

Aggregation

Composition

Generalization

Limits  {complete}  {disjoint}  {incomplete}  {overlapping}

Generalization

Interfaces

Objects

Template

Recommendations A well-structured class diagram  Is focused on communicating one aspect of a system's static design view.  Contains only elements that are essential to understanding that aspect.  Provides detail consistent with its level of abstraction, with only those adornments that are essential to understanding.  Is not so minimalist that it misinforms the reader about important semantics.

Recommendations When you draw a class diagram,  Give it a name that communicates its purpose.  Lay out its elements to minimize lines that cross.  Organize its elements spatially so that things that are semantically close are laid out physically close.  Use notes and color as visual cues to draw attention to important features of your diagram.  Try not to show too many kinds of relationships. In general, one kind of relationship will tend to dominate each class diagram.