UML DIAGRAMS Unified Modeling Language for Object Oriented Programming Unified Modeling Language for Object Oriented Programming.

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

UML Class Diagrams. Represent the (static) structure of the system GeneralIn JavaIn C++ NameNameName StateVariablesMembers BehaviorMethodsFunctions.
Intro to UML OOP Tirgul UML UML is a graphical representation scheme for modeling OO systems UML today is a unification of various popular notational.
Lecturer: Sebastian Coope Ashton Building, Room G.18 COMP 201 web-page: Lecture.
Using Diagrams to Represent Program Structure OMT and UML Some pictures and material are from “Design Patterns” by Gamma et al.
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 
 2008 Pearson Education, Inc. All rights reserved Introduction to Classes and Objects.
CMSC 132: Object-Oriented Programming II
IMSE 11 - UML Class Diagrams
UML-diagrams Unified Modelling Language Used for Classes Objects.
6. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Explain how events can be used to identify use cases that define requirements.
UML Examples Fawzi Emad Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Unified Modeling Language
The Unified Modeling Language (UML) Class Diagrams.
CS 2511 Fall UML Diagram Types  2 Main Types Structure Diagrams ○ Class Diagrams ○ Component Diagrams ○ Object Diagrams Behavior Diagrams ○
 2008 Pearson Education, Inc. All rights reserved (Optional) Software Engineering Case Study: Identifying the Classes in the ATM Requirements.
Introduction to UML Lian Yu Department of Computer Science and Engineering Arizona State University Tempe, AZ
UML Unified Modeling Language. What is UML? Unified Modeling Language (UML) is a standardized, general-purpose modeling language in the field of software.
Systems Analysis and Design in a Changing World, Tuesday, Feb 27
©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter Chapter 1 Introduction to Object-Oriented Programming and.
©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 4 th Ed Chapter Chapter 1: Introduction to Object-Oriented Programming.
12-CRS-0106 REVISED 8 FEB 2013 CSG2H3 Object Oriented Programming.
2/9/98 Thomas O’Reilly 1 A Quick UML Introduction.
Programming in Java Unit 3. Learning outcome:  LO2:Be able to design Java solutions  LO3:Be able to implement Java solutions Assessment criteria: 
Systems Analysis and Design in a Changing World, 6th Edition 1 Chapter 4 - Domain Classes.
1 UML Basic Training. UML Basic training2 Agenda  Definitions: requirements, design  Basics of Unified Modeling Language 1.4  SysML.
1 Object Oriented Design and UML Class Relationships –Dependency –Aggregation –Inheritance Reading for this Lecture: L&L 6.4 – 6.5.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 15: Object-Oriented Data Modeling Modern Database Management 9 h Edition Jeffrey A.
Domain Modeling Part2: Domain Class Diagram Chapter 4 pp part 2 1.
CHAPTER 13: OBJECT-ORIENTED DATA MODELING (OVERVIEW) © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition.
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.
Modeling system requirements. Purpose of Models Models help an analyst clarify and refine a design. Models help simplify the complexity of information.
BCS 2143 Object Oriented Design Using UML. Objectives Objects Interactions Finding Classes Relationship Between Classes Attribute and Operation Class.
Using COMET with Visio Visio UML Modeling. Creating a Drawing After opening Visio, you will see a list of templates available.
Design Jon Walker. More UML ● What is UML again?
Object-Oriented Data Modeling
Lab 5 CPIT 250 System Analysis and Design.
Chapter 12 Object-oriented design for more than one class.
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á.
The UML Notations Networking LAB OOSD 담당조교 석사과정 이정환 Kyung Hee University.
CLASS DIAGRAMS A classy approach to objects. The Basic Class Diagram  Class Name  Attributes (- indicates private each would have properties or accessor/mutator.
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.
Software Modelling Class Diagram. Class Diagrams The main building block in object oriented modeling They are used both for general conceptual modeling.
© 2010 Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Appendix A: UML Java Software Structures: Designing and Using Data.
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.
1. 2 Standards group: ODMG = Object Data Management Group. ODL = Object Description Language, like CREATE TABLE part of SQL. OQL = Object Query Language,
Object-Orientated Analysis, Design and Programming
DATA REQIREMENT ANALYSIS
Unified Modeling Language
Review for Midterm, Fall 2009
Interface, Subclass, and Abstract Class Review
UML - Unified Modeling Language
The Complete Guide to UML Diagram Types with Examples in Simple Words
Object Oriented Programming
Domain Class Diagram Chapter 4 Part 2 pp
אפיון ועיצוב מערכות מוכוון עצמים
Lec 3: Object-Oriented Data Modeling
Software Engineering Lecture #11.
CSCI 1260 – Lecture 2: Instantiation, Aggregation, and Composition
Software Engineering Lecture 10.
OBJECT-ORIENTED PROGRAMMING
Software Engineering System Modeling Extra examples Dr.Doaa Sami
Systems Analysis – ITEC 3155 Modeling System Requirements – Part 2
Basics of OOP A class is the blueprint of an object.
Class Diagram.
UML  UML stands for Unified Modeling Language. It is a standard which is mainly used for creating object- oriented, meaningful documentation models for.
Chapter 11: Class Diagram
Presentation transcript:

UML DIAGRAMS Unified Modeling Language for Object Oriented Programming Unified Modeling Language for Object Oriented Programming

UML Diagrams UML stands for Unified Modeling Language The goal is for UML to become a common language for creating models of object oriented computer software. Our diagrams aim to represent the objects in our programs and how they relate to each other! UML stands for Unified Modeling Language The goal is for UML to become a common language for creating models of object oriented computer software. Our diagrams aim to represent the objects in our programs and how they relate to each other!

UML Diagrams Modeling a Class Class Icon Modeling a Class Class Icon Enemy health : float pos : PVector void update() boolean escaped() CLASS ATTRIBUTES FUNCTIONS/METHODS

UML Diagrams Modeling a Class Class Icon Modeling a Class Class Icon Wave enemyList : ArrayList waveNum : int void createWave() void update() CLASS ATTRIBUTES FUNCTIONS/METHODS

Composition Relationships Each instance of type Wave contains an list of type Enemy. This is a relationship known as composition WaveEnemy - Wave contains Enemies - The ‘life’ of an Enemy depends on the ‘life’ of the Wave - Wave is the “owner” of Enemy - Enemies are created only when a Wave is created and destroyed when Waves are destroyed *

Aggregation Relationship Aggregation is shown with an open diamond. The aggregate class (the class with the unfilled diamond touching it) is in some way part of the “whole” The other class in the relationship is “part” of that whole but doesn’t require the “whole” to exist. (‘*’ shows the Pond can have many Ducks) The Duck survives if the Pond is removed Aggregation is shown with an open diamond. The aggregate class (the class with the unfilled diamond touching it) is in some way part of the “whole” The other class in the relationship is “part” of that whole but doesn’t require the “whole” to exist. (‘*’ shows the Pond can have many Ducks) The Duck survives if the Pond is removed PondDuck *

Association Relationship Objects are associated when neither is a “part” of the other AND each object can “exist” separately StudentCourse 0..*0..* 0..* - shows ‘multiplicity’, the possible number instances of that object

Inheritance RocketLauncher Laser Tower

What type of relationship? Car - Engine Car - Floor Mats Car - Gas Tank Car - Driver Car - Engine Car - Floor Mats Car - Gas Tank Car - Driver Composition Composition Aggregation Association