Top Banner
June 2001 - G. F alquet, L. Nerim a Use Cases 1 UML - Unified Modeling Language UML Course at HCHR Summer 2001 Gilles Falquet and Luka Nerima University of Geneva
24

June 2001 - G. Falquet, L. NerimaUse Cases1 UML - Unified Modeling Language UML Course at HCHR Summer 2001 Gilles Falquet and Luka Nerima University of.

Dec 20, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: June 2001 - G. Falquet, L. NerimaUse Cases1 UML - Unified Modeling Language UML Course at HCHR Summer 2001 Gilles Falquet and Luka Nerima University of.

June 2001 - G. Falquet, L. Nerima

Use Cases 1

UML - Unified Modeling Language

UML Course at HCHR

Summer 2001

Gilles Falquet and Luka NerimaUniversity of Geneva

Page 2: June 2001 - G. Falquet, L. NerimaUse Cases1 UML - Unified Modeling Language UML Course at HCHR Summer 2001 Gilles Falquet and Luka Nerima University of.

June 2001 - G. Falquet, L. Nerima

Use Cases 2

ISI

Outline

Session 1 : A high level view of UML, Tue 19.6.2001

UML : history and context The importance of modeling Introduction to UML Use cases <-- main topic of this session A brief introduction to object-oriented design

Session 2 : Static modelling, Thu 21.6.2001 Objects and classes Class hierarchies and inheritance Class modelling exercises Classes and methods

Page 3: June 2001 - G. Falquet, L. NerimaUse Cases1 UML - Unified Modeling Language UML Course at HCHR Summer 2001 Gilles Falquet and Luka Nerima University of.

June 2001 - G. Falquet, L. Nerima

Use Cases 3

ISI

Outline (cont)

Session 3 : Dynamic modelling, Tue 26.6.2001 Activities in UML States and state charts Collaboration diagrams Use cases and objet evolution Exercices

Session 4 : Integration, Thu 28.6.2001 Interfaces between the UML design spaces Architecture definition with UML UML and databases UML and XML Public domain tools and ressources

Page 4: June 2001 - G. Falquet, L. NerimaUse Cases1 UML - Unified Modeling Language UML Course at HCHR Summer 2001 Gilles Falquet and Luka Nerima University of.

June 2001 - G. Falquet, L. Nerima

Use Cases 4

ISI

UML: A Brief History and Context

late 1960s: Object Oriented Programming Language

mid 1970s - late 1980s: Object Oriented modeling languages

mid 1990s: ~ 50 Object Oriented methods

1996: market leaders Booch, Jacobson & Rumbaugh get together -> Unified Modeling Language (UML)

Page 5: June 2001 - G. Falquet, L. NerimaUse Cases1 UML - Unified Modeling Language UML Course at HCHR Summer 2001 Gilles Falquet and Luka Nerima University of.

June 2001 - G. Falquet, L. Nerima

Use Cases 5

ISI

UML actors

95 juin96 janv97 sept 97 mars 2001 2002 ? Booch93 OMT2 Autres Méthodes

UM 0.8

OOSE UML 0.9

partenaire Dec, HP, IBM, TI, Oracle, Microsoft, Rational, ...

UML 1.0 OMG std ...

Original partners + Andersen ,Ericsson, ObjecTime, Platinum, Softeam…

UML 1.1 UML 1.4 UML 2.0

Page 6: June 2001 - G. Falquet, L. NerimaUse Cases1 UML - Unified Modeling Language UML Course at HCHR Summer 2001 Gilles Falquet and Luka Nerima University of.

June 2001 - G. Falquet, L. Nerima

Use Cases 6

ISI

The importance of Modeling

The dog house – family house – office building métaphore (Booch, Jacobson, Rumbaugh)

For building a dog house:pile of lumber, some nails, a hammer, basic tools

… a family house:+ some detailed plans and blueprints (rooms, electricity, plumbing, heating)

… office building:+ extensive planning, many blueprints

Page 7: June 2001 - G. Falquet, L. NerimaUse Cases1 UML - Unified Modeling Language UML Course at HCHR Summer 2001 Gilles Falquet and Luka Nerima University of.

June 2001 - G. Falquet, L. Nerima

Use Cases 7

ISI

The importance of Modeling

Modeling is a proven engineering technique Many domains of application:

Building industry Aircraft industry Automobile industry Picture industry Computer engineering Software engineerging …

Page 8: June 2001 - G. Falquet, L. NerimaUse Cases1 UML - Unified Modeling Language UML Course at HCHR Summer 2001 Gilles Falquet and Luka Nerima University of.

June 2001 - G. Falquet, L. Nerima

Use Cases 8

ISI

The importance of modeling

Non industrial domains Sociology Economics Business management …

Page 9: June 2001 - G. Falquet, L. NerimaUse Cases1 UML - Unified Modeling Language UML Course at HCHR Summer 2001 Gilles Falquet and Luka Nerima University of.

June 2001 - G. Falquet, L. Nerima

Use Cases 9

ISI

What is a model ?

Key point:

« A model is a simplification of reality »

Page 10: June 2001 - G. Falquet, L. NerimaUse Cases1 UML - Unified Modeling Language UML Course at HCHR Summer 2001 Gilles Falquet and Luka Nerima University of.

June 2001 - G. Falquet, L. Nerima

Use Cases 10

ISI

Why do we model ?

We model in order to understand better the systeme we are developping

Modeling <-> four aims: Models help us to visualize a system as it is or as we

want it to be Models permit us to specify the structure and behavior

of a system Models give us a template that guides us in

constructing a system Models document the decision we have made

We build models of complex systems because we cannot comprehend such a system in its entirety

Page 11: June 2001 - G. Falquet, L. NerimaUse Cases1 UML - Unified Modeling Language UML Course at HCHR Summer 2001 Gilles Falquet and Luka Nerima University of.

June 2001 - G. Falquet, L. Nerima

Use Cases 11

ISI

Principles of Modeling

1. The choice of what models to create has a profound influence on how the problem is attacked and how a solution is shaped

2. Every model may be expressed at different levels of precision

3. The best models are connected to the reality4. No single model is sufficient. Every nontrivial

system is best approached through a small set of nearly independent models.

Page 12: June 2001 - G. Falquet, L. NerimaUse Cases1 UML - Unified Modeling Language UML Course at HCHR Summer 2001 Gilles Falquet and Luka Nerima University of.

June 2001 - G. Falquet, L. Nerima

Use Cases 12

ISI

Object-Oriented Modeling

Objet or class centered approach Simply put: An object is a thing (from the vocabulary of the

problem to be solved) A class is a set of common objects Objets can be concrete or abstract

Page 13: June 2001 - G. Falquet, L. NerimaUse Cases1 UML - Unified Modeling Language UML Course at HCHR Summer 2001 Gilles Falquet and Luka Nerima University of.

June 2001 - G. Falquet, L. Nerima

Use Cases 13

ISI

Object-Oriented Modeling: an example

Consider a billing system involving:

A user interface (buttons, menus, dialog boxes) A database (tables representing customers,

products and orders) A middle-layer (transactions, business rules)

Concrete objects: buttons, menus, dialog boxes, tables…

Abstract objects: transactions, business rules.

Page 14: June 2001 - G. Falquet, L. NerimaUse Cases1 UML - Unified Modeling Language UML Course at HCHR Summer 2001 Gilles Falquet and Luka Nerima University of.

June 2001 - G. Falquet, L. Nerima

Use Cases 14

An Overview of the UML

Page 15: June 2001 - G. Falquet, L. NerimaUse Cases1 UML - Unified Modeling Language UML Course at HCHR Summer 2001 Gilles Falquet and Luka Nerima University of.

June 2001 - G. Falquet, L. Nerima

Use Cases 15

ISI

An Overview of the UML

UML Object oriented modeling Covers all the phases of a project (requirement analysis

trough system deployment)

Modeling along three axes: Structural Modeling Behavioral Modeling Architectural Modeling

Page 16: June 2001 - G. Falquet, L. NerimaUse Cases1 UML - Unified Modeling Language UML Course at HCHR Summer 2001 Gilles Falquet and Luka Nerima University of.

June 2001 - G. Falquet, L. Nerima

Use Cases 16

ISI

Aims of the UML

Models the complete system (not only the software system)

Connect the conceptual objects to the executable artefacts

Control of complexity (scale) Model suitable for both humans and computers Open language: extensibility mechanism Specificiation language: clear semantics

(#ambiguous)

Page 17: June 2001 - G. Falquet, L. NerimaUse Cases1 UML - Unified Modeling Language UML Course at HCHR Summer 2001 Gilles Falquet and Luka Nerima University of.

June 2001 - G. Falquet, L. Nerima

Use Cases 17

ISI

UML is a visual language

Intensive use of graphical modeling But textual modeling remains usefull in some

cases Graphical representation -> facilitates

communication UML defines 9 diagrams

Page 18: June 2001 - G. Falquet, L. NerimaUse Cases1 UML - Unified Modeling Language UML Course at HCHR Summer 2001 Gilles Falquet and Luka Nerima University of.

June 2001 - G. Falquet, L. Nerima

Use Cases 18

ISI

1) use cases diagram

Requirements analysis

A

B

C

cas1

cas2

système

système

cas3

Page 19: June 2001 - G. Falquet, L. NerimaUse Cases1 UML - Unified Modeling Language UML Course at HCHR Summer 2001 Gilles Falquet and Luka Nerima University of.

June 2001 - G. Falquet, L. Nerima

Use Cases 19

ISI

2) Sequence diagram

time

Object1 Object2 Object3

message2message1

message3

Page 20: June 2001 - G. Falquet, L. NerimaUse Cases1 UML - Unified Modeling Language UML Course at HCHR Summer 2001 Gilles Falquet and Luka Nerima University of.

June 2001 - G. Falquet, L. Nerima

Use Cases 20

ISI

3) Collaboration diagrams

Collaboration between objects

Object1 Object2

Object3

2:messageY

1:messageX

role

Page 21: June 2001 - G. Falquet, L. NerimaUse Cases1 UML - Unified Modeling Language UML Course at HCHR Summer 2001 Gilles Falquet and Luka Nerima University of.

June 2001 - G. Falquet, L. Nerima

Use Cases 21

ISI

4) Class diagram

Structural modeling The « heart » of the UML

Personne Ville

depuisjusqua

travailler à 

Page 22: June 2001 - G. Falquet, L. NerimaUse Cases1 UML - Unified Modeling Language UML Course at HCHR Summer 2001 Gilles Falquet and Luka Nerima University of.

June 2001 - G. Falquet, L. Nerima

Use Cases 22

ISI

5) To 9) diagrams

5) Package diagram Modularity of the model (structure of the model itself)

6) Statechart diagram Envent – response to the event (real time systems)

7) Activity diagram Flowcharts (business processes)

8) Componant diagram Organization and dependencies among the component

9) Deployment diagram To set the location of the components on run-time

processing nodes (distributed applications)

Page 23: June 2001 - G. Falquet, L. NerimaUse Cases1 UML - Unified Modeling Language UML Course at HCHR Summer 2001 Gilles Falquet and Luka Nerima University of.

June 2001 - G. Falquet, L. Nerima

Use Cases 23

ISI

Where Can the UML be used ?

Entreprise information systems Banking and financial services Telecommunications Medical electronics Distributed Web-based services …

Not limited to modeling software Administration Workflows Behavior of a patient healthcare system

Page 24: June 2001 - G. Falquet, L. NerimaUse Cases1 UML - Unified Modeling Language UML Course at HCHR Summer 2001 Gilles Falquet and Luka Nerima University of.

June 2001 - G. Falquet, L. Nerima

Use Cases 24

ISI

For what task can the UML be used ?

Forward engineering Reverse engineering Documentation of a system