版權(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)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 全新網(wǎng)絡(luò)游戲開發(fā)合同2篇
- 2024-2025學(xué)年新教材高中歷史第八單元20世紀(jì)下半葉世界的新變化第19課資本主義國家的新變化課時(shí)作業(yè)含解析新人教版必修中外歷史綱要下
- 2025不動(dòng)產(chǎn)登記信息化改造項(xiàng)目合同3篇
- 2025年微信小程序企業(yè)客戶關(guān)系管理系統(tǒng)開發(fā)與應(yīng)用合同3篇
- 2024銷售人員職業(yè)發(fā)展保障勞動(dòng)合同3篇
- 二零二五年度醫(yī)療設(shè)施臨時(shí)借款合同參考樣本4篇
- 2025高溫粘合劑產(chǎn)業(yè)鏈金融服務(wù)平臺(tái)合作合同3篇
- 2025年度電信設(shè)備知識(shí)產(chǎn)權(quán)保護(hù)合同3篇
- 2025年度食品行業(yè)退換貨質(zhì)量保證協(xié)議書
- 二零二五年度高層建筑樓頂廣告位使用權(quán)租賃合同3篇
- 臺(tái)資企業(yè)A股上市相關(guān)資料
- 電 梯 工 程 預(yù) 算 書
- 羅盤超高清圖
- 參會(huì)嘉賓簽到表
- 機(jī)械車間員工績效考核表
- 形式發(fā)票格式2 INVOICE
- 2.48低危胸痛患者后繼治療評估流程圖
- 人力資源管理之績效考核 一、什么是績效 所謂績效簡單的講就是對
- 山東省醫(yī)院目錄
- 云南地方本科高校部分基礎(chǔ)研究
- 廢品管理流程圖
評論
0/150
提交評論