




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、PowerDesigner PowerDesigner 與對象建模與對象建模2Why UsingWhy Using UML?UML? Visually define and communicate the structure and behavior of an application Represent systems using Object-Oriented concepts Link OO concepts to executable code3Brief Overview of UMLBrief Overview of UMLUML is defined by OMG.UML con
2、sists of 9 diagrams: Static Class diagram Object diagram Dynamic Use Case diagram Sequence diagram Statechart diagram Collaboration diagram Activity diagram Implementation Component diagram Deployment diagram4UML Support in UML Support in PowerDesignerPowerDesigner PowerDesigner supports all nine UM
3、L diagrams PowerDesigner supports UML 1.4 Future version of PowerDesigner will support UML 2.05Use Case Use Case DiagramDiagram A Use Case Diagram describes the Actors, the Use Cases and the interaction between the Actors and the Use Cases.LogonLogoffCustomerShip To AddressPurchaseDisplay CatalogLis
4、t OrdersList CartNewsShipping6Collaboration Collaboration DiagramDiagram A Collaboration Diagram describes the interaction between objects (instance of classes) by exchanging messages. Collaboration Diagram can be used to identify classes and operations2.2: OK1: LoginCustomerMain pageValidate LoginD
5、isplay Catalog4: Purchase2.2: OK3: Product List2.1: Error1: LoginCustomerMain pageValidate LoginDisplay ErrorDisplay CatalogAdd in Shopping Cart7Sequence DiagramSequence Diagram A Sequence Diagram describes the interaction between objects and how the messages are exchanged over time. Sequence Diagra
6、m is used to identify classes and operationsopen4: Purchase2.2: OK3: Product List2.1: Error1: LoginMain pageValidate LoginDisplay ErrorDisplay CatalogAdd in Shopping CartCustomer8Activity DiagramActivity Diagram An Activity Diagram describes the logic and the control flow of a Use Case, an Operation
7、 or another Activity.NoYesMain PageLoginDisplay CatalogPurchaseSelect ProductOK?Login ErrorPurchase Products Action StepsCheck Out9Statechart DiagramStatechart Diagram A Statechart Diagram is used to model the States and Transitions of a ClassIntialPlayPause10Object DiagramObject Diagram An Object D
8、iagram shows the relationships between Object Instances:Customeridname = 101 = XiaoYun Wang:Orderiddate = 1 = 3/25/200411Class DiagramClass Diagram A Class Diagram defines the Classes, Interfaces, Attributes, Operations, Relationships, Inheritances, A Class Diagram can be used to define persistent o
9、bjects, control objects and user-interface objects. A Class Diagram can be used to generate the Physical Data Model and the application implementation code. 0.*peripheral0.1personalcomputersparallelPeripheral+periphIdperiphCodeNamevendorName: String: String: String+registerPeriph ()testPort ()testPw
10、Supply ()testMotherBd (): void: void: void: voidprinter+laserprintSpeed: boolean: int+ printPage () : voidscanner+flatBedresolution: boolean: int+preview ()registerPeriph ()testPort ()testPwSupply ()testMotherBd (): void: void: void: void: voidPeripheral+registerPeriph ()testPort ()testPwSupply ()te
11、stMotherBd (): void: void: void: voidperipheral tester+test #testNametestDate: int: String: java.util.Date+ printReport () : voidComputer+serial #ownerName: String: String12Component DiagramComponent Diagram A Component Diagram can be used to define the components you need to create for an applicati
12、on A Component can use Classes, Interfaces PowerDesigner uses Components to represent EJBs, Servlets, JSPs, ASPs and Web ServicesProductEntityBean_CMPGetProductListServletGetProductPageJSP13Deployment DiagramDeployment Diagram A Deployment Diagram is used to define the deployment architecture Deploy
13、ment Diagram shows the Nodes (machines, servers), the Component Instances deployed in a Node and the Links between NodesJCustomerBeanOrderBeanProductBeanWeb ServiceCRM14Object/Relational (O/R) MappingObject/Relational (O/R) Mapping Generate a Class Diagram from a Physical Data Model with
14、 O/R mapping Generate a Physical Data Model from a Class Diagram with O/R mapping Manually define complex O/R mapping Generate select, insert, update, delete SQL statements Use O/R mapping to generate EJB CMP (WebLogic, WebSphere, EAServer), JDO, Cocobase, .NET (future)15O/R MappingO/R Mapping Examp
15、leExampleGenerate O/R mapping when generating a PDM from an OOMUse O/R mapping to generate SQL16Java SupportJava Support Provide wizards to automatically create EJBs, Servlets, JSPs, Web Services Generate and reverse engineer Java code Generate collection management accessor functions Generate deplo
16、yment descriptors Generate O/R mapping descriptor for WebLogic, WebSphere, EAServer, JDO, JBoss (future) Generate project files for JBuilder and Eclipse Generate Ant script to compile, package and deploy J2EE application17CustomerBeanabstract -idnameemailphoneejbContext: java.lang.Integer: java.lang
17、.String: java.lang.String: java.lang.String: EntityContext+CustomerBean ()ejbActivate ()ejbLoad ()ejbPassivate ()ejbRemove ()ejbStore ()setEntityContext (.)unsetEntityContext (): void: void: void: void: void: void: voidCustomerPK- id : java.lang.Integer+CustomerPK ()equals (.)hashCode (): boolean: i
18、ntCustomerCustomerLocalCustomerHome+findByPrimaryKey (.) : CustomerCustomerLocalHome+findByPrimaryKey (.) : CustomerLocalExample Example of EJBof EJBEJB wizardEJB Classes and InterfacesCustomerEntityBean_CMPEJB Component18.NET Support Reverse engineer C# and Visual Basic .NET code Reverse engineer .NET binary code in C# or VB .NET Generate C# and VB .NET code Generate collection management accessor func
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 跨領域合作對提升購物中心會員忠誠度的影響
- 跨境電商平臺的數(shù)據(jù)分析與智能決策
- 名著導讀 九年級下冊《簡愛》導讀和每章內容概括
- 在新的年中培養(yǎng)創(chuàng)新思維計劃
- 足浴場所消費者權益保護法實務探討
- 透析安全責任重大-血透室風險管理策略分享
- 金融知識教育防止老年人在理財中上當受騙
- 零售業(yè)財務分析報告銷售數(shù)據(jù)背后的秘密
- 跨境電商平臺的支付安全與風險管理
- 2025年02月貴州省總工會直屬事業(yè)單位公開招聘41人筆試歷年典型考題(歷年真題考點)解題思路附帶答案詳解
- 2025年武漢長江委水文局招考(57人)高頻重點模擬試卷提升(共500題附帶答案詳解)
- 四川省成都市2024年七年級《英語》上冊月考試題與參考答案
- 2025(人教版)數(shù)學一年級下冊全冊教學案
- 蘇科版 八年級物理下冊 第六章 綜合測試卷(2025年春)
- 2025年中學生心理健康教育心得體會例文(5篇)
- 人教版 七年級英語下冊 UNIT 1 單元綜合測試卷(2025年春)
- 小學生學會公平與公正的行為主題班會
- 《大學物理矢量》課件
- 中醫(yī)藥文化知識培訓課件
- 信號與系統(tǒng)考試試題及答案
- 閩教版2023版3-6年級全8冊英語單詞表
評論
0/150
提交評論