Unified Modeling Language (UML)

Slides:



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

Unified Modeling Language
UML – Class Diagrams.
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.
Object-Oriented Application Development Using VB.NET 1 Creating a String Array Code to create a String array: ' declare a String array with 4 elements.
- 1 - © Houman Younessi 2010 MGMT Advanced Systems Analysis and Design A dvanced S ystems A nalysis and D esign Fall 2010 Convener: Houman Younessi.
IMSE 11 - UML Class Diagrams
ACM/JETT Workshop - August 4-5, 2005 UML Modeling using MagicDraw UML for Java Programmers.
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.
OBJECT ORIENTED PROGRAMMING CONCEPTS ISC 560. Object-oriented Concepts  Objects – things names with nouns  Classes – classifications (groups) of similar.
CIT241 Prerequisite Knowledge ◦ Variables ◦ Operators ◦ C++ Syntax ◦ Program Structure ◦ Classes  Basic Structure of a class  Concept of Data Hiding.
Intro to UML - OO Class Diagrams Week 5 CMIS570. Plan for Tonight Object terms Unified Modeling Language history Class Diagrams Intro to Oracle Oracle.
Object-Oriented Analysis and Design An Introduction.
Copyright © 2014 by John Wiley & Sons. All rights reserved.1 Chapter 12 – Object-Oriented Design.
Distributed Java Programming Distributed Java Programming Class #2 August 22, 2002.
Class Diagram. A class diagram describes the classes and the association (static relationship) between these classes ( 描述系統中物件 的 type(class) ,以及這些 class.
© 2005 Prentice Hall9-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
UML Class Diagrams 1 These lecture slides are copyright (C) Marty Stepp, They may not be rehosted, sold, or modified without expressed permission.
UML The Unified Modeling Language A Practical Introduction Al-Ayham Saleh Aleppo University
Object Oriented Software Development
CS 151: Object-Oriented Design September 5 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron Mak
CSE 403, Spring 2007, Alverson Using UML to express Software Architecture.
Technical Module C Object Modeling Objects Object – a valuable resource: Money (Account Receivable) Material (Product) Machines (Delivery Truck) Personnel.
Object Oriented Programming and Data Abstraction Earl Huff Rowan University.
Unified Modeling Language (UML)
UML Fundamental Elements. Structural Elements Represent abstractions in our system. Elements that encapsulate the system's set of behaviors. Structural.
SUBCLASSES - JAVA. The Purpose of Subclasses Class Farm String getOwner() void setOwner(String s) int getSize() void setSize(int s) Class DairyFarm String.
Modeling with UML – Class Diagrams
UNIT-IV Designing Classes – Access Layer ‐ Object Storage ‐ Object Interoperability.
Chapter 12 – Object-Oriented Design
Data Modeling and the Entity-Relationship Model
UML(Unified Modeling Language)
UML-Class Diagrams. UML-Class Diagrams Order placement problem A Company has two types of customers, corporate customers and personal customers. All.
The Movement To Objects
Unified Modeling Language
A Review or Brief Introduction
UML Class Diagrams (more notation)
Chapter 16 UML Class Diagrams.
Interface, Subclass, and Abstract Class Review
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
Ch 12-13: OOD and Recursion Yonglei Tao.
Design Class Diagrams
Object-Orientated Programming
Microsoft Dynamics NAV 2017
Object-Orientated Analysis, Design and Programming
UML Unified Modelling Language
A short introduction to UML Eivind J. Nordby Karlstad University
Advanced Java Programming
Introduction to UML Introduction to UML Shiyuan Jin September,23,2002
Modeling Classes with UML
The Basics of Class Diagrams for a single class
ניתוח מערכות מידע א' הרצאה 3
Object Oriented Analysis and Design
Software Engineering Lecture #11.
تحليل انظمة و تصميمها الوحدة الخامسة أ.محمد زكي شبير.
UML & Programming Martin Fowler.
CIS 375 Bruce R. Maxim UM-Dearborn
Unified Modelling Language
Software Design Lecture : 15.
Software Design Lecture : 14.
Review CSE116 2/21/2019 B.Ramamurthy.
Copyright 2007 Oxford Consulting, Ltd
Chapter 12 – Object-Oriented Design
Class Diagrams Class diagram is basically a graphical representation of the static view of the system and represents different aspects of the application.
CIS 375 Bruce R. Maxim UM-Dearborn
Object Oriented System Design Class Diagrams
2.1 Introduction to Object-Oriented Programming
ITEC324 Principle of CS III
UML  UML stands for Unified Modeling Language. It is a standard which is mainly used for creating object- oriented, meaningful documentation models for.
ITEC324 Principle of CS III
Presentation transcript:

Unified Modeling Language (UML)

UML UML provides many different types of diagrams that can be used to document object-oriented designs We will focus on just two diagram types Class Diagrams Sequence Diagrams Class Diagrams show all of the classes in the system and the relationships between them (static) Sequence Diagrams show how objects collaborate in order to implement the functionality of the system (dynamic, runtime)

Class Diagrams - Classes Class Name - attrName1 : type1 + attrName2 : type2 # attrName3 : type3 Attributes - opName1(in param1 : type1, out param2 : type2) : returntype + opName2(inout param3 : type3) # opName3() : returntype Operations - private + public # protected Parameter types: in, out, inout

Class Diagrams - Classes Order - number : string - dateReceived : Date - customer : Customer - lineItems : OrderLine[] + Order(in num : string, in received : Date, in cust : Customer) + ~Order() + GetNumber() : string + GetDateReceived() : Date + GetCustomer() : Customer + AddLineItem(in item : OrderLine) + GetLineItems() : OrderLine[] + GetPrice() : Money + Dispatch() + Close()

Class Diagrams - Associations A line between two classes represents an association or relationship between the classes You can navigate from one class to another only if there is an arrowhead in that direction. The triangle represents inheritance An order belongs to one customer A customer may have any number of orders An order may have any number of order lines An order line belongs to one order An order line has one product A product may be associated with any number of order lines A corporate customer has zero or one employees assigned to them An employee may be assigned to any number of corporate customers

Class Descriptions Class: Order Purpose: Represents an order placed by a customer Attributes - number : string The order's unique number - dateReceived : Date The date on which the order was received Operations + Order(in num : string, in received : Date, in cust : Customer) Constructor for the Order class num: the order's unique number received: the date the order was received cust: the customer that made the order returns: nothing

Sequence Diagrams

Sequence Diagrams

Web Crawler Designs Your web crawler design should include the following UML Class Diagram Class Description for each class UML Sequence Diagram Acceptable Formats RTF HTML PDF Dia Format (Linux drawing program)

Dia Demo