1 / 25

物件導向系統分析與設計(OOA,OOD)

首席數位. 物件導向系統分析與設計(OOA,OOD). 首席講座 : 曾龍博士. UML. 統一塑模語言 ( Unified Modeling Language ) UML 是一種開放 (Open) 的方法,用於 說明 、可視化、構建和編寫一個 物件導向軟體系統 的方法。 UML 是一種規格化 (Specifying) 、視覺化 (Visualizing) 及文件化 (Documenting) 的軟體塑模語言

verena
Télécharger la présentation

物件導向系統分析與設計(OOA,OOD)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 首席數位 物件導向系統分析與設計(OOA,OOD) 首席講座: 曾龍博士

  2. UML • 統一塑模語言(Unified Modeling Language) • UML是一種開放(Open)的方法,用於說明、可視化、構建和編寫一個物件導向軟體系統的方法。UML是一種規格化(Specifying) 、視覺化(Visualizing)及文件化(Documenting)的軟體塑模語言 • UML展現了一系列最佳工程實踐(best engineering practices ),這些 最佳實踐在對大規模,複雜系統進行塑模(Model)方面,特別是在軟體架構層次已經被驗證有效。 • UML已成為物件導向分析與設計的主要塑模語言

  3. UML is a language that unifies the industry’s best engineering practices for modeling systems. • UML Is a language. It is not simply a notation for drawing diagrams, but a complete language for capturing knowledge (semantics) about a subject and expressing knowledge (syntax) regarding the subject for the purpose of communication. • Applies to modeling and systems. Modeling involves a focus on understanding (knowing) a subject (system) and capturing and being able to communicate this knowledge. • UML Is the result of unifying the information systems and technology industry’s best engineering practices (principles, techniques, methods, and tools). • UML包含九種圖

  4. [46]物件導向系統分析與設計: UML UML不是 • [1]A visual programming language, but a visual modeling language. • – A programming language communicates an implementation or solution. • – A modeling language communicates a model (or conceptualization or specification). • [2]A tool or repository specification, but a modeling language specification. • – A tool or repository specification specifies a tool’s or repository’s interface, storage, run-time behavior, and so forth. • – A modeling language specification specifies modeling elements, notation, and usage guidelines. • [3]A process, but enables processes. • – A process provides guidance regarding the order of activities, specification of artifacts to be developed, direction of individual developer and team tasks (or activities), and monitoring and measuring criteria of project artifacts and activities. • – Processes are organization, culture, and domain specific and dependent. • – The UML enables and promotes (but does not require nor mandate) a use-case-driven, architecture-centric, iterative, and incremental process that is object oriented and component based.

  5. UML Diagrams • 1.使用個案圖Use case • 2.類別圖class • 3.物件圖(Object Diagram) • 4.循序圖(Sequence Diagram) • 5.合作圖(Collaboration Diagram) • 6.狀態圖(State Diagram) • 7.活動圖(Activity Diagram) • 8.元件圖(Component Diagram) • 9.佈署圖(Deployment Diagram)

  6. 1.使用個案圖Use case

  7. 1.使用個案圖Use case • UML引用Jacobson 的使用個案模式 • 使用個案圖表示系統使用個案和行為者之間互動的關係。 • 從外部觀點來看,使用者介面及使用個案的範圍與限制,決定什麼是使用個案(What)? • 從內部觀點來看,它可描述使用個案是如何運作的(How)?

  8. NextGen POS專案

  9. 2.類別圖class Diagram

  10. 2.類別圖class Diagram • UML引用Booch 與Rumbaugh方法論的類別圖 • 類別圖表示系統存在之類別以及類別間的邏輯關係 • 類別圖是UML模式圖的核心

  11. (3)物件圖(Object Diagram)

  12. 3.物件圖(Object Diagram) • 物件圖是用來描述一系統於某一時間點的靜態結構 • 物件圖由一群相關之物件及其連結所組成,以表示系統在某一時間點之一案例(Instance)。物件圖有時也稱為案例圖(Instance Diagram),也可以把物件圖想成沒有訊息傳遞的合作圖 • 物件常用矩形表示,在矩形內表達名稱;並在名稱下加底線 • 真實世界裡,物件的數量相當的龐大,為降低問題的複雜度,在系統分析時大多採用類別,而較少用物件。

  13. (4)循序圖(Sequence Diagram)

  14. 4.循序圖(Sequence Diagram) • UML之循序圖(Sequence Diagram)是結合Booch的互動圖與Rumbaugh的訊息追蹤圖而成 • 循序圖用以描述系統運作時,物件間的互動行為且著重以時間為主軸的處理程序。

  15. (5)合作圖

  16. 5.合作圖(Collaboration Diagram) • UML之合作圖(Collaboration Diagram)是從Booch的物件互動圖與Rumbaugh的物件導向資料流程圖改進而來 • 合作圖能同時展現物件間的資料流程、控制流程與訊息傳遞的活動。 • 合作圖是一個宏觀的總流程,能同步表達資料的產生與資料轉變的過程,以改進傳統資料流程圖(DFD)中只著重資料流(Data Flow)的缺點。

  17. (6)狀態圖(State Diagram)

  18. 6.狀態圖(State Diagram) • UML之狀態圖(State Diagram)是結合Booch 的狀態轉移圖與Rumbaugh的動態模式而成 • 狀態圖是用來表達物件在其生命週期中的狀態變化。 • 狀態圖是以微觀物件為主,細分物件所發生的各項事件,並表達物件生命週期之狀態轉變及活動結果。

  19. (7)活動圖(Activity Diagram)

  20. 7.活動圖(Activity Diagram) • UML之活動圖(Activity Diagram)是狀態圖的一種變異 • 活動圖表達涉及於執行某一作業行為中之活動。一個活動圖描述一群循序與同步的活動,一個活動狀態表示一個工作流程步驟或一個運算的執行活動。

  21. 8.元件圖(Component Diagram)

  22. 8.元件圖(Component Diagram) • UML之元件圖(Component Diagram) 起源於Booch的模組圖 • 元件圖是用來說明系統設計過程各類別與物件的配置及敘述軟體元件間的組織架構和相依關係。 • 元件是開發和執行過程之實際物件類別,將可拆散的實際基本單位模組化,這些基本單位包括模型(Module)元素並擁有特性和明確定義的介面

  23. (9)部署圖

  24. 9.部署圖(Deployment Diagram) • UML之佈署圖(Deployment Diagram) 起源於Booch的處理圖 • 佈署圖是用來說明系統各處理器、處理元件的配置、關聯,以及同一處理器內執行處理的時程安排等。

More Related