31-Oct-15 Simple UML IB Computer Science. 2 What is UML? UML stands for Unified Modeling Language UML is a diagramming language designed for Object- Oriented.

Slides:



Advertisements
Similar presentations
Georgia Institute of Technology Object-Oriented Analysis Barb Ericson June 2006.
Advertisements

Unified Modeling Language
UML Class and Sequence Diagrams Violet Slides adapted from Marty Stepp, CSE 403, Winter 2012 CSE 403 Spring 2012 Anton Osobov.
Design Patterns in Java Appendix D UML at a Glance Summary prepared by Kirk Scott 1.
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.
Component and Deployment Diagrams
26-Jun-15 Methods. About methods A method is a named group of declarations and statements If a method is in the same class, you execute those declarations.
Data Analysis (and User Interaction) GEOG 463 5/7/04.
CS 2511 Fall UML Diagram Types  2 Main Types Structure Diagrams ○ Class Diagrams ○ Component Diagrams ○ Object Diagrams Behavior Diagrams ○ Sequence.
UML a crash course Alex Lo Brian Kiefer. Overview Classes Class Relationships Interfaces Objects States Worksheet.
13-Jul-15 Refactoring II. Books Design Patterns is the classic book by Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides Basically a catalog.
SE-565 Software System Requirements More UML Diagrams.
1 Chapter 8 Objects and Classes. 2 Motivations After learning the preceding chapters, you are capable of solving many programming problems using selections,
1 CSE 403 Design and UML Class Diagrams Reading: UML Distilled Ch. 3, by M. Fowler These lecture slides are copyright (C) Marty Stepp, They may not.
1 TCSS 360, Spring 2005 Lecture Notes Design Phase and UML Class Diagrams Relevant Reading: UML Distilled, Third Edition M. Fowler.
UML January 24, 2011 CSE 403, Winter 2011, Brun Design and UML Class Diagrams.
Unified Modeling Language
Introduction to UML Lian Yu Department of Computer Science and Engineering Arizona State University Tempe, AZ
Introduction to Object Oriented Design. Topics Designing Your Own Classes Attributes and Behaviors Class Diagrams.
Practical Object-Oriented Design with UML 2e Slide 1/1 ©The McGraw-Hill Companies, 2004 PRACTICAL OBJECT-ORIENTED DESIGN WITH UML 2e Chapter 2: Modelling.
1 Forward and Reverse Engineering. 2 The UML is not just an OO modeling language. It also permits forward engineering (FE) and reverse engineering (RE).
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 Diagrams 1 These lecture slides are copyright (C) Marty Stepp, They may not be rehosted, sold, or modified without expressed permission.
UML (U NIFIED M ODELING LANGUAGE ) Prepared by Miss Simab Shahid Lecturer computer Science and Software Engineering department, University.
An Introduction to the Unified Modeling Language
Object Oriented Software Development
Appendix D UML at a Glance Summary prepared by Kirk Scott 1.
CSE 403, Spring 2008, Alverson Using UML to express Software Architecture.
CSE 403, Spring 2007, Alverson Using UML to express Software Architecture.
Introduction to UML CS A470. What is UML? Unified Modeling Language –OMG Standard, Object Management Group –Based on work from Booch, Rumbaugh, Jacobson.
CSE 219 Computer Science III UML. UML Diagrams UML - Unified Modeling Language UML diagrams are used to design object-oriented software systems –represent.
ArgoUML—Free and Easy Rui Wu. What is ArgoUML UML diagramming application First implemented by Jason E. Robbins for his Ph. D. degree Now, free and open.
Chapter 16 UML Class Diagrams.
Software Engineering Laboratory, Department of Computer Science, Graduate School of Information Science and Technology, Osaka University 1 Extracting Sequence.
Copyright © 2012 Pearson Education, Inc. Chapter 13: Introduction to Classes.
Identifying classes, Packages and drawing class Diagrams, Object Diagrams and composite structure diagrams Week 07 1.
UML Course Instructor: Rizwana Noor. Overview  Modeling  What is UML?  Why UML?  UML Diagrams  Use Case  Components  Relationships  Notations.
Object Oriented Programming and Data Abstraction Earl Huff Rowan University.
Unified Modeling Language (UML)
A means of graphically displaying a complicated programs 18-Mar-16 UML Thanks to Dave Matuczek, UPenn.
Object Oriented Analysis & Design By Rashid Mahmood.
SWE 214 (071) Introduction to UML Slide 1 Introduction to UML.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley The Unified Modeling Language
Modified from Sommerville’s originalsSoftware Engineering, 7th edition. Chapter 14 Slide 1 Object-Oriented Design.
COP 3330 Notes 4/13. Today’s Topics UML Class Diagrams.
Design and UML Class Diagrams
TCSS 305 (Stepp) OO Design with UML Class Diagrams
Unified Modeling Language
Evolution of UML.
Objects as a programming concept
Object-Oriented Analysis and Design
Chapter 16 UML Class Diagrams.
Unified Modeling Language—UML A Very Brief Introduction
Interface, Subclass, and Abstract Class Review
Objects as a programming concept
Lecture on Design Phase and UML Class Diagrams
Introduction to UML Tutorial 1.
Design Class Diagrams
Object-Oriented Analysis
CompSci 230 Software Construction
Refactoring II 21-Sep-18.
Simple UML 11-Nov-18.
The Basics of Class Diagrams for a single class
Intro to UML Edited from presentation found at:
Simple UML 7-Dec-18.
Refactoring II 5-Feb-19.
Simple UML 13 Nov 2018.
Introduction to UML Sources:
CIS 375 Bruce R. Maxim UM-Dearborn
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:

31-Oct-15 Simple UML IB Computer Science

2 What is UML? UML stands for Unified Modeling Language UML is a diagramming language designed for Object- Oriented programming UML can be used to describe: the organization of a program how a program executes how a program is used how a program is deployed over a network …and more

3 Design Patterns Design Patterns describe the higher-level organization of solutions to common problems Design Patterns are a current hot topic in O-O design UML is always used for Design Patterns Design Patterns are used to describe refactorings We will discuss some Design Patterns later on in this course

4 UML is complex UML is a big, complicated diagramming language UML comprises at least seven or eight different kinds of diagrams This talk will cover just a tiny bit of one kind of diagram, the class diagram A class diagram is often all that is needed to describe a particular Design Pattern

5 Class diagrams A class diagram shows classes, interfaces, and their relationships We ’ ll cover most of classes and interfaces, and a few of the most important relationships

6 Classes A class is drawn as a rectangle with two or three compartments: Name of the class Variables [optional] Methods

7 Variables I A variable is written as: visibility name : type where: + means public visibility # means protected visibility - means private visibility means default (package) visibility Example: +length:int

8 Variables II Static variables are underlined An initial value can be shown with =value Example: -numberOfEmployees:int=10 means numberOfEmployees is: private static integer and has 10 as its initial value

9 Methods Methods are written as: visibility name (parameters) : returnType where visibility uses the same syntax variables (+, -, #, blank) parameters are given as name:type if the returnType is void, it is omitted constructors are preceded by «constructor» interfaces are preceded by «interface» an ellipsis (…) indicates omitted methods

10 Example of a class Card cardId:int -copy:boolean=false «constructor» Card(int id) +isKind(desiredKind:int) +isSharable():boolean +toString():String

11 Types of relationships A B Class B extends class A C D 1..4 Class C contains 1 to 4 objects of class D Factory Product creates Other kinds of relations

12 Example: Secret Code program

13 UML tools Rational Rose is the “ real world ” standard; full round- trip code generation Recently acquired by IBM (right under Microsoft ’ s nose!) Together (from Borland) is a lot like Rational Rose I haven ’ t used it in about three years (since before Borland bought it from TogetherSoft) ArgoUML looks interesting (and is open source) BlueJ, of course, displays simple UML diagrams Drawing programs with UML support Visio is a Microsoft tool Dia is a freeware clone of Visio

14 Tool links Rational Rose Together ArgoUML Visio Hard to find info on Microsoft ’ s site! Dia

15 The End