ImplementationDiagrams东吴大学资讯科学系江清水

上传人:汽*** 文档编号:568708996 上传时间:2024-07-26 格式:PPT 页数:8 大小:142.50KB
返回 下载 相关 举报
ImplementationDiagrams东吴大学资讯科学系江清水_第1页
第1页 / 共8页
ImplementationDiagrams东吴大学资讯科学系江清水_第2页
第2页 / 共8页
ImplementationDiagrams东吴大学资讯科学系江清水_第3页
第3页 / 共8页
ImplementationDiagrams东吴大学资讯科学系江清水_第4页
第4页 / 共8页
ImplementationDiagrams东吴大学资讯科学系江清水_第5页
第5页 / 共8页
点击查看更多>>
资源描述

《ImplementationDiagrams东吴大学资讯科学系江清水》由会员分享,可在线阅读,更多相关《ImplementationDiagrams东吴大学资讯科学系江清水(8页珍藏版)》请在金锄头文库上搜索。

1、Implementation Diagrams 東吳大學資訊科學系 江清水Key Termscomponentdeployment componentwork product componentexecution componentcomponent diagramcommunication associationdependencydeployment diagraminterfaceexport interfaceimport interfacenoderealization1Implementation Diagrams 東吳大學資訊科學系 江清水Component Diagram:No

2、tation and SemanticsComponent nameNotationKernel32.dllExampleComponent(元件) - 系統中屬於物理及可取代性質的部分,也就是各式各樣的檔案或資料庫等軟體元件。component 可分為以下三種:deployment component(配置元件) - 廣泛定義包含構成一個可執行系統的必要元件。如:DLLs,EXEs,以及可直接或間接執行的檔案元件。work product component(工作產物元件)- 為發 展一個 可執行系統時所產生的一些產物。如:source code或deployment元件執行所產生的資料檔案

3、。execution component(執行產物元件) - 包含系統執行所必然產生的一些元件。如:從DLL定義中實體化的COM+物件。註.UML定義了五個原型(stereotype)來區分component種類:executable - 在node上的可執行元件 library - 靜態或動態的函式庫 table - 資料庫 file - 程式的原始碼或資料document - 文件2Implementation Diagrams 東吳大學資訊科學系 江清水Component diagram(元件圖) - 用來對O-O(物件導向)系統做實際物理層次的描述,描述軟體元件的組織以及彼此間的相依性

4、,屬於系統內部軟體層次的描述。在component diagram中可以出現的元素有:component、generalization、association(含aggregation) - 在class diagram部分有詳細描述,其定義也差不多以及:ABComponent Diagram:Notation and SemanticsRealization(實行者) - 用來表示一元件實行另一元件所保証的功能。Dependency(依賴性) - 表示A元件需要B元件才能運作,B元件 的改變會影響A元件。3Implementation Diagrams 東吳大學資訊科學系 江清水Compon

5、ent Diagram : Notation and SemanticsNote.基本上可把component diagram視為class diagram的一種,只是焦點是放在系統中元件之間的關係Interface(介面) - 表示元件外部可見的操作的集合。export interface (出口介面)- component用realization與此種介面相連,表示component用來實行此種介面的功能服務。import interface(進口介面) - component用dependency與此種介面相連,表示component是為了配合此介面所保証的功能服務而建立的。Compon

6、ent.javaimage.javaImageObserverAbort:intfinal staticerror:intfinal staticimageUpdate():BooleanExample4Implementation Diagrams 東吳大學資訊科學系 江清水Component Diagram :ExamplesWindowHandler(whnd.cpp)MainClass(main.cpp)CommHandler(comhnd.cpp)WindowHandler(whnd.obj)CommHandler(comhnd.obj)MainClass(main.obj)Clie

7、ntProgram(client.exe)GraphicLib(Graphic.dll)Component diagram5Implementation Diagrams 東吳大學資訊科學系 江清水Component.javaimageObserverimage.javaComponent、Interface、DependencyComponent Diagram :ExamplesFraudagent.dllFraudAgentFraudPolicyPatternSearchcomponents and classes6Implementation Diagrams 東吳大學資訊科學系 江清

8、水Deployment Diagram(配置圖配置圖) - 描述系統執行時軟體及硬體的架構,屬於系統層次的描述。在Deployment Diagram中可以出現的元素有dependency以及:Node(節點節點) - Node是一種實際的物件,可以用來代表Computer Device、Human Resource、Processing resource;單純加上Node Name表示為Node Type,其意義與Class相同,如果Node Name加上底線,表示為Node Type的Instance(實例),其意義與Object相同。 Communication Association(

9、通訊關連通訊關連) - 用於Nodes間相連的關係,常用於表示Node的物件及訊息的交換與傳遞,可以是一般的Association,也可以用stereotype表示Node間所使用的訊息傳輸方式。Component:在Deployment Diagram中,只可以出現可執行元件(Executable Component),可以獨立存在或放在Node內部。Node NameDeployment Diagram:Notation and SemanticsNote.基本上可把deployment diagram視為class diagram的一種,只是焦點是放在系統中節點之間的關係7Implementation Diagrams 東吳大學資訊科學系 江清水Client A:Compaq Pro PCClient B:Compaq Pro PCApplication Server:Silicon GraphicsO2DataBaseServer:VAXNode 、 Communication AssociationPos.exeContacts.exeSalesComponent、DependencyPos.exeContacts.exeSalesDeployment Diagram:Examples8

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 医学/心理学 > 基础医学

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号