ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
UML Overview
Sections
1. Basic Object-Orientation Concepts
2. UML Fundamentals
3. Structural Modeling
4. Behavioral Modeling
5. Model Management
UML Overview

Lecture Objectives
? ????? ?? ?? ??
? UML? ?? ?? ??
? UML ?????? ?? ??? ?? ??
UML Overview

Section 1.
Basic Object-Orientation Concepts
UML Overview
fdsfd

Contents
?
?
?
?
?
?
?

What Is Object-Orientation?
Why Object-Orientation?
Class and Object
Encapsulation
Inheritance
Polymorphism
High Cohesion and Low Coupling
UML Overview

What Is Object-Orientation?
? ¡°?? ??? ??? ???? ?????? ????? ?
?¡±
? Everything Is Object.
UML Overview

Why Object-Orientation?
? ?? ???(Higher-level Abstraction)
? ???(Extensibility)
? ????(Reusability)
UML Overview

Object
? ??? ??? ???? ?? ?
? ???? ???? ???
UML Overview

Class
? ?? ??? ????? ??? ?
? ?? ??? ?? ???
UML Overview

Encapsulation
? ??(Object) = ???(Data) + ???(Service)
? ????(Information Hiding)
? ?? ??? ???? ??? ??
? ???? ?????(Interface)?? ?? ??????? ??
UML Overview

Inheritance
? ?? ???(Subclass)? ?????(Superclass)? ??
? ?? ???? ?? ??? ????
? Single Inheritance vs. Multiple Inheritance
UML Overview

Polymorphism
? ??? ??? ???? ??? ?? ?? ??? ??? ? ?
?? ?? ????
? ¡°Draw¡± service
? Rectangle object¡¯s draw
? Circle object¡¯s draw
? Line object¡¯s draw
UML Overview

High Cohesion and Low Coupling
? High Cohesion
? ??? ???? ???? ????? ??
? ?? ???? ???? ??

? Low Coupling
? ????? ???? ?? ????? ??
? ?????? ?? ???? ??
UML Overview

Section 2.
UML Fundamentals
UML Overview

Contents
?
?
?
?
?
?

What Is UML?
History of UML
UML Diagrams
Model, View and Diagram
UML Trichotomy
UML Extensibility Mechanisms
UML Overview

What Is UML?
? UML? ????? ???? ?????
?
?
?
?

?

???(Visualize),
???(Specify),
??(Construct),
???(Documenting)

?? ?? ?? ????.
UML Overview

History of UML
UML Overview

UML Diagrams
UML Overview

Model, View and Diagram
? Model element
? ????? ??? ?? ??? ??? ??

? View element
? ?? ??? ????? ???? ??

? Diagram
? ? ???? ????? ????? ??? ? ??(projection)? ?? ?
UML Overview

UML Trichotomy
UML Overview

UML Extensibility Mechanisms
? Stereotypes
? UML ???? ???? ?? ??? ??
? ¡°<<stereotype>>¡± ?? ??

? Tagged Values
? UML ??? ???? ?? ?? ??
? ¡°{ name = value }¡± ?? ??

? Constraints
? UML ??? ???? ????? ??
? ¡°{ constraints }¡± ?? ??
UML Overview

UML Extensibility Mechanisms (cont.)
? UML Profile
? UML ?? ???(Stereotype, Constraint, TagDefinition, ¡­)? ??? ?
? ???? ???.

? Examples of UML Profile
?
?
?
?

UML Profile for CORBA
UML Profile for Data Modeling
UML Profile for EAI (Enterprise Application Integration)
UML Profile for ¡­
UML Overview

Section 3.
Structural Modeling
UML Overview

Contents
? Class Diagram
? Component Diagram
? Deployment Diagram
UML Overview

Structural Modeling
UML Overview

Class Diagram
? What Is Class Diagram?
? ???, ????? ?? ???? ???? ??? ????.

? Applications
? ???? ??? ???(design view)? ??
? ??? ?????? ???? ??
? ?? ??? ??? ?? ??
UML Overview

Key Elements: Class Diagram
UML Overview

Example: Class Diagram
UML Overview

Component Diagram
? What Is Component Diagram?
? ???? ??? ??? ???? ????? ? ??
? ???? ???? ?????? ??? ????? ????.

? Applications
? ???? ??? ???(implementation view)? ??.
? ???? ???? ???? ????? ??.
UML Overview

Key Elements: Component Diagram
UML Overview

Example: Component Diagram
UML Overview

Deployment Diagram
? What Is Deployment Diagram?
? ???? ??? ??? ???? ????? ? ??
? ??? ??? ?? ??? ? ??? ???? ???? ?? ????.

? Applications
? ???? ??? ???(deployment view)? ??
UML Overview

Key Elements: Deployment Diagram
UML Overview

Example: Deployment Diagram
UML Overview

Section 4.
Behavioral Modeling
UML Overview

Contents
? Use Case Diagram
? Interaction Diagrams
? Sequence Diagram
? Collaboration Diagram

? Statechart Diagram
? Activity Diagram
UML Overview

Behavioral Modeling
UML Overview

Use Case Diagram
? What Is Use Case Diagram?
? ??? ?? ?????? ??? ???? ?? ??

? Applications
? ???? ?? ??????(use case view)? ??
UML Overview

Key Elements: Use Case Diagram
UML Overview

Example: Use Case Diagram
UML Overview

Interaction Diagrams
? What Is Interaction Diagram?
? ???? ?? ??? ????? ?? ??
? ??? ???? ?? ??? ????? ???

? Interaction Diagrams
? Sequence Diagram
? ????? ?? ?? ???? ??? ??? ??
? Collaboration Diagram
? ???? ?? ?? ????? ??? ??
UML Overview

Key Elements: Interaction Diagrams
UML Overview

Example: Sequence Diagram
UML Overview

Example: Collaboration Diagram
UML Overview

Statechart Diagram
? What Is Statechart Diagram?
? ?? ??? ?? ?? ??? ????? ??
? ????? ??? ????(state machine)? ??
? ???? ?? ??? ??? ??

? Applications
? ???, ????, ????? ?? ????? ?? ?? ??? ???
? ?? ??
UML Overview

Key Elements: Statechart Diagram
UML Overview

Example: Statechart Diagram
UML Overview

Activity Diagram
? What Is Activity Diagram?
? ????? ????? ??? ??? ??
? ???? ?? ??? ??? ??

? Applications
? ????? ????(workflow)? ??
? ?????? ???? ??? ??? ??
UML Overview

Key Elements: Activity Diagram
UML Overview

Example: Activity Diagram
UML Overview

Section 5.
Model Management
UML Overview

Contents
? Package
? Model
? Subsystem
UML Overview

Package
? ???? ????? ?? ??
UML Overview

Package (cont.)
? Package Relationships
? Dependency
? <<access>>
? <<import>>
UML Overview

Model
? ???? ?? ?? ?? ?? ??(perspective)? ???
??? ??(projection)
? ???(Package)? ???? ??
? ??? ?
?
?
?
?

?? ??(Analysis Model)
?? ??(Design Model)
?? ??(Implementation Model)
¡­
UML Overview

Model (cont.)
UML Overview

Model (cont.)
? Trace
? ?? ?? ?? ??? ??? ??? ???? ???? ??? ??
UML Overview

Subsystem
? ??? ??? ?? ??? ?? ?? ???? ????
??
? ???(Package)? ???? ??
UML Overview

Subsystem (cont.)
? ????? ??? ?? ??? ?? ??
? ??? ? ?? ??????? ??
? ????? ? ???? ??
UML Overview

Lecture Summary
? ???? ??? ????? ???? ?? ????? ?
??? ??? UML? ???? ?? ????? ??.
? UML? ???? ??? ??, ??? ??? ?????
?? ??? ??? ??????? ???? ??.

More Related Content

StarUML NS Guide - Uml overview