Improved software quality through semantic descriptions (Skutt) Karlstad University Dept. of Computer Science 2000-05-09 UML introduction A short introduction.

Slides:



Advertisements
Similar presentations
Modeling Main issues: What do we want to build How do we write this down.
Advertisements

UML (cont.) “The Unified Modeling Language User Guide” by G. Booch, J. Rumbaugh and I. Jacobson ● Classes ● Relationships ● Class diagrams ● Examples.
Object-Oriented Application Development Using VB.NET 1 Chapter 5 Object-Oriented Analysis and Design.
Modeling Main issues: What do we want to build How do we write this down ©2008 John Wiley & Sons Ltd. vliet.
2-1 © Prentice Hall, 2007 Chapter 2: Introduction to Object Orientation Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph.
UML – Class Diagrams.
Irwin/McGraw-Hill Copyright © 2004 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS6th Edition.
IMSE 11 - UML Class Diagrams
Kari R. Schougaard, PhD Stud. Værktøjer og Teknikker, 2006 UNIVERSITY OF AARHUS Department of Computer Science Unified Modeling Language Visual language.
© Copyright Eliyahu Brutman Programming Techniques Course.
1 Object-Oriented Modeling Using UML CS 3331 Fall 2009.
Unified Modeling Language
The Unified Modeling Language (UML) Class Diagrams.
UML Unified Modeling Language. What is UML? Unified Modeling Language (UML) is a standardized, general-purpose modeling language in the field of software.
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.
Page 1 What is the UML? UML stands for Unified Modeling Language The UML combines the best of the best from – Data Modeling concepts (Entity Relationship.
CSCI-383 Object-Oriented Programming & Design Lecture 9.
CIT UPES | Sept 2013 | Unified Modeling Language - UML.
The Software Development Life Cycle: An Overview Presented by Maxwell Drew and Dan Kaiser Southwest State University Computer Science Program.
Introduction to the Unified Modeling Language “The act of drawing a diagram does not constitute analysis or design. … Still, having a well-defined and.
Introduction to UML By: Prof. Aiman Hanna Department of Computer Science, Concordia University, Montreal, Canada.
Slide 1 UML Review Chapter 2: Introduction to Object-Oriented Systems Analysis and Design with the Unified Modeling Language, Version 2.0 Alan Dennis,
Unified Modeling Language, Version 2.0
Presented by: CHAN LAI SAN ( ) REBAH DAW SARREB ( ) FIDA AL-OBAISI ( ) 08 April 2008 (Tuesday 6pm – 7:30pm)
Programming in Java Unit 3. Learning outcome:  LO2:Be able to design Java solutions  LO3:Be able to implement Java solutions Assessment criteria: 
1 UML Basic Training. UML Basic training2 Agenda  Definitions: requirements, design  Basics of Unified Modeling Language 1.4  SysML.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 5: Modelling with Classes.
CS3773 Software Engineering Lecture 04 UML Class Diagram.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 15: Object-Oriented Data Modeling Modern Database Management 9 h Edition Jeffrey A.
CHAPTER 13: OBJECT-ORIENTED DATA MODELING (OVERVIEW) © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition.
UML diagrams What is UML UML diagrams –Static modeoing –Dynamic modeling 1.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 1 Object-oriented Design.
Unified Modeling Language © 2002 by Dietrich and Urban1 ADVANCED DATABASE CONCEPTS Unified Modeling Language Susan D. Urban and Suzanne W. Dietrich Department.
1 UML Distilled 3e by Martin Fowler Chapter 1 Introduction to UML.
UML for OOADStefan Kluth 1 2UML for OOAD 2.1What is UML? 2.2Classes in UML 2.3Relations in UML 2.4Static and Dynamic Design with UML.
UML Diagrams A tool for presentation of Architecture.
Fall 2010 CS4310 Requirements Engineering A Brief Review of UML & OO Dr. Guoqiang Hu Department of Computer Science UTEP 1.
Introduction to Unified Modeling Language (UML) By Rick Mercer with help from The Unified Modeling Language User Guide, Grady Booch, James Rumbaugh, Ivar.
An Introduction to the Unified Modeling Language
UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School.
CS 151: Object-Oriented Design September 5 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron Mak
Design? !… When it needs? To understand, to communicate with customers Complex problem What is good design? Separate What to do?(Policy) and How to do(mechanism)
Object-Oriented Modeling: Static Models. Object-Oriented Modeling Model the system as interacting objects Model the system as interacting objects Match.
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.
The Unified Modeling Language (UML)
ITEC324 Principle of CS III Chapter 2 (Horstmann’s Book) – Part 1 The Object-Oriented Design Process Hwajung Lee.
Lecture 9-1 : Intro. to UML (Unified Modeling Language)
1 Unified Modeling Language, Version 2.0 Chapter 2.
UML Part 1: Class Diagrams. Introduction UML stands for Unified Modeling Language. It represents a unification of the concepts and notations presented.
Chapter 5 System Modeling. What is System modeling? System modeling is the process of developing abstract models of a system, with each model presenting.
Chapter 2: Introduction to Object Orientation Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey A.
Object-Oriented Software Engineering Practical Software Development using UML and Java Modelling with Classes.
Introduction to UML Hazleen Aris Software Eng. Dept., College of IT, UNITEN. …Unified Modeling Language.
Object Oriented Programming and Data Abstraction Earl Huff Rowan University.
1 Kyung Hee University Interaction Diagrams Spring 2001.
CS 501: Software Engineering Fall 1999 Lecture 15 Object-Oriented Design I.
Chapter 2 (Horstmann’s Book) – Part 1 The Object-Oriented Design Process Hwajung Lee.
Unified Modeling Language. What is UML? Standard language for specifying, visualizing, constructing, and documenting the artifacts of software systems,
Introduction to Unified Modeling Language (UML) By Rick Mercer with help from The Unified Modeling Language User Guide, Grady Booch, James Rumbaugh, Ivar.
1 An Overview of UML. 2 The Unified Modeling Language UML is a graphical language used by software engineers to model software systems during development.
Slide 1 Unified Modeling Language, Version 2.0 Object-Oriented SAD.
Modeling with UML – Class Diagrams
Evolution of UML.
Main issues: • What do we want to build • How do we write this down
Introduction to Unified Modeling Language (UML)
University of Central Florida COP 3330 Object Oriented Programming
A short introduction to UML Eivind J. Nordby Karlstad University
Software Engineering Lecture #11.
Presentation transcript:

Improved software quality through semantic descriptions (Skutt) Karlstad University Dept. of Computer Science UML introduction A short introduction to UML Eivind J. Nordby Karlstad University

Dept. of Computer Science Semla 2 page 2 Design Problem Complex systems cannot be understood without modelling Modelling makes design reproductable Modelling is documentation => Generic Language for this Problem Unified Modeling Language (UML) Standard of the OMG Current Version 1.4 (since Sep. 2001) Inventors: Jacobson, Rumbaugh, Booch et all. Goal: Giving developer a general language for communication

Karlstad University Dept. of Computer Science Semla 2 page 3 UML UML is a graphical language –Unified Modeling Language UML provides a notation to describe software-intensive systems in an object-oriented way –Is general enough to describe nonsoftware systems Static Modelling –Class Modelling –Component Modelling –Deployment Modelling Dynamic Modelling –Activity/Sequence Modelling –Use Case Modelling –State Modelling

Karlstad University Dept. of Computer Science Semla 2 page 4 An example A booking system for room reservation The initiator tell who shall take part in the meeting The system calls the participants by The participants reply confirm by When all have confirmed, the system sends an to the initiator –Support personnel are also notified Cleaning, catering, secretaries, caretaker

Improved software quality through semantic descriptions (Skutt) Karlstad University Dept. of Computer Science Part 1 Classes and objects Static description

Karlstad University Dept. of Computer Science Semla 2 page 6 Basic class description A class is drawn as a box with compartments for –class name –attributes –operations Any but the first can be empty or suppressed

Karlstad University Dept. of Computer Science Semla 2 page 7 Inheritance –A connection with an open triangle in the direction to the base class Abstract classes and operations –Italic class name –Italic operation name

Karlstad University Dept. of Computer Science Semla 2 page 8 Associations Analysis diagram Multiplicities –0..1, 1, *, 1..*

Karlstad University Dept. of Computer Science Semla 2 page 9 Associations Association label –a verb describing the interaction Interpretation of multiplicity Referencial integrity

Karlstad University Dept. of Computer Science Semla 2 page 10 Object diagram and links Class diagrams show the general structure with Object diagrams show snapshots –objects are underlined An association is a potential for a link links are instances of associations Links do never have multilplicities

Karlstad University Dept. of Computer Science Semla 2 page 11 Role names Role label –a noun describing the role in the interaction

Karlstad University Dept. of Computer Science Semla 2 page 12 Aggregations Aggregation –a crew is composed of crew members –expresses whole - parts Composition –a person owns a PID number –expresses exclusive ownership and dependency

Karlstad University Dept. of Computer Science Semla 2 page 13 Navigability Analysis expresses relationships Design diagram also expresses navigability –Part of the implementation design of “who keeps track of who”

Improved software quality through semantic descriptions (Skutt) Karlstad University Dept. of Computer Science Part 2 Interactions Dynamic description

Karlstad University Dept. of Computer Science Semla 2 page 15 Interactions

Karlstad University Dept. of Computer Science Semla 2 page 16 Interactions

Karlstad University Dept. of Computer Science Semla 2 page 17 Interactions Sequence diagram –Time based Life line Call, operation, return Activation record Recursive calls New and delete

Karlstad University Dept. of Computer Science Semla 2 page 18 Interactions, new and delete