PowerDesigner 與對象建模_第1頁
PowerDesigner 與對象建模_第2頁
PowerDesigner 與對象建模_第3頁
PowerDesigner 與對象建模_第4頁
PowerDesigner 與對象建模_第5頁
已閱讀5頁,還剩14頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

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)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論