Eclipse軟件開發工具:第11章 UML建模_第1頁
Eclipse軟件開發工具:第11章 UML建模_第2頁
Eclipse軟件開發工具:第11章 UML建模_第3頁
Eclipse軟件開發工具:第11章 UML建模_第4頁
Eclipse軟件開發工具:第11章 UML建模_第5頁
已閱讀5頁,還剩24頁未讀 繼續免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、第11章 UML建模本章學習目標本章要達到的主要目標:了解UML建模基本概念;熟悉Eclipse UML建模工具的安裝和配置;了解Eclipse 對UML建模的支持。UML建模簡介The Unified Modeling Language (UML,統一建模語言) is a graphical language formodeling the static and dynamical aspects of a system. 給系統的靜態與動態特征建模unifies the best engineering practices for modeling systems. 集合了最好的工程實踐方

2、法defines different graphical diagrams that provide multiple perspectives of a system under development. 多個視圖UML is a unification of the methodologies developed by Grady Booch, James Rumbaugh, and Ivar Jacobsen. The Object Management Group (OMG), a not-for-profit organization that Promotes the use of

3、 object-oriented technology, has responsibility for the further development of the UML standard.UML是什么UML(Unified Modeling Language)是下面這些最好的建模方法中最好部分的集成: 業務流程模型(Work Flow); 對象建模方法; 軟構件建模思想。UML是一種用可視化方法對軟件系統進行描述、實施和說明的標準語言。支持用不同實現技術進行的軟件開發全過程。UML DiagramsUse case diagram (用例圖)Class diagram (類圖)Object

4、 diagrams (對象圖)Behavior diagrams: Statechart diagram (狀態圖)Activity diagram (活動圖)Interaction diagrams: Sequence diagram (順序圖)Collaboration diagram (協作圖)Implementation diagrams: Component diagram (組件圖)Deployment diagram (部署圖)UML的發展UML建模Use CaseDiagramsUse CaseDiagrams用例圖ScenarioDiagramsScenarioDiagram

5、s協作圖StateDiagramsStateDiagrams構件圖ComponentDiagramsComponentDiagrams部署圖StateDiagramsStateDiagrams對象圖ScenarioDiagramsScenarioDiagrams狀態圖Use CaseDiagramsUse CaseDiagrams序列圖StateDiagramsStateDiagrams類圖活動圖UML用于顯示若干角色以及這些角色與系統提供的功能之間的連接關系。用例是系統提供的功能的描述。 用例圖類圖表示系統中的類和類與類之間的關系。它是對系統靜態結構的描述。 序列圖用來反映若干個對象之間的動

6、態協作關系,也就是隨著時間的推移,對象之間是如何交互的。 協作圖描述對象間的協作關系,協作圖跟序列圖相似,顯示對象間的動態合作關系。如果強調時間和順序,則使用序列圖;如果強調上下級關系,則選擇協作圖。這兩種圖合稱為交互圖。 狀態圖描述類的對象所有可能的狀態以及事件發生時狀態的轉移條件。通常,狀態圖是對類圖的補充。 活動圖描述滿足用例要求所要進行的活動以及活動間的約束關系,有利于識別并行活動。 構件圖描述代碼構件的物理結構及各構件之間的依賴關系。 部署圖部署圖定義系統中軟硬件的物理體系結構。 UML with Eclipse UML Tools in EclipseIntroduction of

7、 UML Designer安裝UML Designer使用UML Designer幫助文檔使用UML Designer提供的例子 UML Tools in EclipseUML Designer 是 Eclipse 的 UML 插件,支持 UML 2.1,可將 UML 轉成特定的領域模型。UML2 Tools 是一組基于GMF 的編輯器,用來瀏覽和編輯UML 模型文件示。Papyrus UML是一個開放源代碼基于Eclipse環境的UML2建模工具。Taylor MDA 是一個UML建模工具的Eclipse插件。它專注于EJB3企業應用程序的生成。UMLet是一個開放源代碼輕量級UML建模工具

8、。可在Windows,OS X,Linux上單獨運行,或者使用Eclispe插件的方式運行。UML DesignerUML Designer is a graphical tool to edit and vizualize UML 2.4 models.This designer is free (open-source with EPL license).It uses the standard UML2 metamodel provided by Eclipse Foundation and it implements the following generic UML diagrams

9、:Package HierarchyClass DiagamComponent DiagramObject DiagramComposite Structure DiagramDeployment DiagramUse Case DiagramActivity DiagramState MachineSequence DiagramProfile Diagram支持UML2最新規范類圖用例圖狀態圖活動圖通信圖序列圖部署圖組件圖組合結構圖Introduction of UML DesignerIntroduction of UML DesignerInstall UML Designer Too

10、ls安裝UML Designer 插件和安裝其他插件的步驟一樣。使用UML Designer的參考文檔通過網址可以訪問在線幫助文檔。使用UML Designer提供的例子/tutorials/tuto-getting-started.htmlImport the TravelAgency project using the menu File/New/Example使用UML Designer提供的例子Pick the Travel Agency UML wizard and click on Next and then Finish.使用UML Designer提供的例子Click Fini

11、sh on the wizard and a TravelAgency project appears in your workspace.創建UML項目Go to the Modeling perspectiveCreate the UML projectIn the title bar, select File New UML Project.On the next page, select Model as type for the UML model root element, and then Finish.Fill the UML ModelProject Dependencies

12、, where you can add external dependencies you rely on.xxx.uml which is the empty semantic UML model.representations.aird which is the top-level representation file for the project.新建UML圖In the Model Explorer view, select an UML project. Right-click on the project and select Create Representation.In the wizard, expand UML Structural Modeling, select Class Diagram and then Next.On the next page, select Model as semantic element to which the diagram will be attached. In our example

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論