PowerDesigner与对象建模_第1页
PowerDesigner与对象建模_第2页
PowerDesigner与对象建模_第3页
PowerDesigner与对象建模_第4页
PowerDesigner与对象建模_第5页
已阅读5页,还剩14页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

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. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论