14
UML 範範 :CH25 CH27 CH31 範範範 範範 :Sep.5

UML 範圍 :CH25 CH27 CH31 莫家仁 日期 :Sep.5. Outline Components Component Diagrams System And Models

Embed Size (px)

Citation preview

Page 1: UML 範圍 :CH25 CH27 CH31 莫家仁 日期 :Sep.5. Outline Components Component Diagrams System And Models

UML

範圍 :CH25 CH27 CH31

莫家仁日期 :Sep.5

Page 2: UML 範圍 :CH25 CH27 CH31 莫家仁 日期 :Sep.5. Outline Components Component Diagrams System And Models

Outline

Components Component Diagrams System And Models

Page 3: UML 範圍 :CH25 CH27 CH31 莫家仁 日期 :Sep.5. Outline Components Component Diagrams System And Models

ComponentsDEF: A physical & replaceable part of a system that

conforms to and provides the realization of a set

of interfaces

Physical : A. live in a world of bits

B. reside on physical node can be executed

directly or ‘indirectly’ participate in an

executing system

Replaceable : Components can be replaced in system by

adding new ones without rebuilding system

Page 4: UML 範圍 :CH25 CH27 CH31 莫家仁 日期 :Sep.5. Outline Components Component Diagrams System And Models

Components

realization of a set of interface:

Component provide as a service to other components

Interface: A set of operation that are used to specify a

service of a class or component

比較 Component Class Interface

Operation through interface to

access

through method to

access

only method name,no impleme

nt operation

Attribute Not include include Not include

Page 5: UML 範圍 :CH25 CH27 CH31 莫家仁 日期 :Sep.5. Outline Components Component Diagrams System And Models

Components

Class Component

表現方式 Logical abstraction

Physical thing

存在方式 A way of think Physical package

存取方式 method interface

Page 6: UML 範圍 :CH25 CH27 CH31 莫家仁 日期 :Sep.5. Outline Components Component Diagrams System And Models

Components

Image.java

Component.java

ImageObserver

interface

dependency realization

Iconic form:

P.348

Page 7: UML 範圍 :CH25 CH27 CH31 莫家仁 日期 :Sep.5. Outline Components Component Diagrams System And Models

Kinds of Components

Components

•Deployment components

•Work product components

•Execution components

Standard Elements in UML•Executable

•Library

•Table

•File

•Document

Page 8: UML 範圍 :CH25 CH27 CH31 莫家仁 日期 :Sep.5. Outline Components Component Diagrams System And Models

Common Modeling techniques 1. 從技術方面 , 修正與管理方面 , Reuse 方面 ,

確定系統中實體的每一個部分 2. 利用適當的 UML 元素 , 把 executable 和 libraries model 成 component

3.Model 重要的 interface : 系統的接合點 4. 找出 component 相依的關係 使其可 visualize

Components

Page 9: UML 範圍 :CH25 CH27 CH31 莫家仁 日期 :Sep.5. Outline Components Component Diagrams System And Models

DEF: Shows a set of components and their

relationship

Component Diagrams

Find.exeFind.html

Index.html

Dbacs.dll

Nateng.dll

executable

page

librarycomponent

Page 10: UML 範圍 :CH25 CH27 CH31 莫家仁 日期 :Sep.5. Outline Components Component Diagrams System And Models

Common uses

Component Diagrams

•Model source code

•Model an Executable Release

•Model a Physical Database

•Model Adaptable System

Page 11: UML 範圍 :CH25 CH27 CH31 莫家仁 日期 :Sep.5. Outline Components Component Diagrams System And Models

Systems and Models

System A collection of subsystem, a set of element Organized to accomplish a purpose

and describe by a set of models

Model: A simplification of reality—a abstraction of a system –created in order to

understand the system

View A projection of model, which is seen from one perspective or vantage

point and omit entities that are not relevant to this perspective

Page 12: UML 範圍 :CH25 CH27 CH31 莫家仁 日期 :Sep.5. Outline Components Component Diagrams System And Models

Systems and Models

<<system>>

Retail Enterprise

System

<<subsystem>>

In store Management subsystem

<<subsystem>>

Warehouse Management subsystem

<<subsystem>>

Customer Service

subsystem

subsystem

system

Page 13: UML 範圍 :CH25 CH27 CH31 莫家仁 日期 :Sep.5. Outline Components Component Diagrams System And Models

TRACE

Systems and Models

Sales Management {version=7.2}

Sales Management {version=7.1}

Sales Management version statement

<<trace>><<trace>>

Trace relationship

Page 14: UML 範圍 :CH25 CH27 CH31 莫家仁 日期 :Sep.5. Outline Components Component Diagrams System And Models

Modeling the Architecture of a system

Design View

Process View Deployment View

Use Case View

Implementation View

Logical physical

Systems and Models