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

Preview:

Citation preview

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

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

Components

Class Component

表現方式 Logical abstraction

Physical thing

存在方式 A way of think Physical package

存取方式 method interface

Components

Image.java

Component.java

ImageObserver

interface

dependency realization

Iconic form:

P.348

Kinds of Components

Components

•Deployment components

•Work product components

•Execution components

Standard Elements in UML•Executable

•Library

•Table

•File

•Document

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

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

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

Components

DEF: Shows a set of components and their

relationship

Component Diagrams

Find.exeFind.html

Index.html

Dbacs.dll

Nateng.dll

executable

page

librarycomponent

Common uses

Component Diagrams

•Model source code

•Model an Executable Release

•Model a Physical Database

•Model Adaptable System

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

Systems and Models

<<system>>

Retail Enterprise

System

<<subsystem>>

In store Management subsystem

<<subsystem>>

Warehouse Management subsystem

<<subsystem>>

Customer Service

subsystem

subsystem

system

TRACE

Systems and Models

Sales Management {version=7.2}

Sales Management {version=7.1}

Sales Management version statement

<<trace>><<trace>>

Trace relationship

Modeling the Architecture of a system

Design View

Process View Deployment View

Use Case View

Implementation View

Logical physical

Systems and Models