
Object-Oriented Modeling PowerDesigner® 15.2 Windows DOCUMENT ID: DC38086-01-1520-01 LAST REVISED: February 2010 Copyright © 2010 by Sybase, Inc. All rights reserved. This publication pertains to Sybase software and to any subsequent release until otherwise indicated in new editions or technical notes. Information in this document is subject to change without notice. The software described herein is furnished under a license agreement, and it may be used or copied only in accordance with the terms of that agreement. To order additional documents, U.S. and Canadian customers should call Customer Fulfillment at (800) 685-8225, fax (617) 229-9845. Customers in other countries with a U.S. license agreement may contact Customer Fulfillment via the above fax number. All other international customers should contact their Sybase subsidiary or local distributor. Upgrades are provided only at regularly scheduled software release dates. No part of this publication may be reproduced, transmitted, or translated in any form or by any means, electronic, mechanical, manual, optical, or otherwise, without the prior written permission of Sybase, Inc. Sybase trademarks can be viewed at the Sybase trademarks page at http://www.sybase.com/detail?id=1011207. Sybase and the marks listed are trademarks of Sybase, Inc. A ® indicates registration in the United States of America. Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. All other company and product names used herein may be trademarks or registered trademarks of the respective companies with which they are associated. Use, duplication, or disclosure by the government is subject to the restrictions set forth in subparagraph (c)(1)(ii) of DFARS 52.227-7013 for the DOD and as set forth in FAR 52.227-19(a)-(d) for civilian agencies. Sybase, Inc., One Sybase Drive, Dublin, CA 94568 Contents PART I: Building OOMs ........................................1 CHAPTER 1: Getting Started with Object-Oriented Modeling ......................................................3 Creating an OOM ....................................................5 OOM Properties ................................................7 CHAPTER 2: Building Use Case Diagrams ..................9 Use Case Diagram Objects ........................................9 Creating a Use Case Diagram ...................................10 Use Cases (OOM) ..................................................10 Creating a Use Case .........................................11 Use Case Properties .........................................11 Use Case Property Sheet Specification Tab .......12 Use Case Property Sheet Implementation Classes Tab .........................................12 Use Case Property Sheet Related Diagrams Tab .......................................................13 Actors (OOM) .......................................................13 Creating an Actor ............................................15 Actor Properties .............................................15 Actor Property Sheet Implementation Classes Tab ...................................................16 Actor Property Sheet Related Diagrams Tab ......18 Reusing Actors ...............................................18 Use Case Associations (OOM) ...................................18 Creating a Use Case Association ..........................19 Use Case Association Properties ..........................19 Object-Oriented Modeling iii Contents CHAPTER 3: Building Structural Diagrams ...............21 Class Diagram Basics ..............................................21 Class Diagram Objects ......................................22 Creating a Class Diagram ...................................23 Composite Structure Diagram Basics ..........................24 Composite Structure Diagram Objects ...................24 Creating a Composite Structure Diagram ................26 Object Diagram Basics ...........................................26 Object Diagram Objects ....................................27 Creating an Object Diagram ...............................28 Package Diagram Basics ..........................................28 Package Diagram Objects ..................................28 Creating a Package Diagram ...............................29 Classes (OOM) ......................................................29 Creating a Class ..............................................30 Class Properties ..............................................30 Class Property Sheet Detail Tab ....................33 Class Property Sheet Generic Tab ..................33 Class Property Sheet Script Tab ....................34 Class Property Sheet Preview Tab ..................35 Creating Java BeanInfo Classes ...........................37 Creating a Java BeanInfo Class from the Language Menu ....................................39 Creating a Java BeanInfo Class from the Class Contextual Menu ..................................39 Generic Types and Methods ................................40 Creating Generic Types ..............................40 Creating Generic Methods ...........................40 Creating a Specialized Classifier ...................41 Creating a Bound Classifier .........................42 Generic Type Example ...............................42 Composite and Inner Classifiers ...........................43 Creating Inner Classifiers ............................44 iv PowerDesigner Contents Creating a Composite Classifier Diagram .........44 Attaching a Classifier to a Data Type or a Return Type ..............................................................45 Attaching a Classifier ................................46 Viewing the Migrated Attributes of a Class ..............46 Packages (OOM) ................................................... 48 OOM Package Properties ...................................50 Previewing the Code of a Package in an OOM ...........51 Defining the Diagram Type of a New Package ...........51 Interfaces (OOM) ..................................................52 Creating an Interface .......................................52 Interface Properties .........................................53 Interface Property Sheet Generic Tab .............54 Objects (OOM) .....................................................55 Creating an Object ..........................................56 Object Properties ...........................................57 Object Property Sheet Attribute Values Tab .....57 Linking a Classifier to an Object ..........................59 Parts (OOM) ........................................................ 60 Creating a Part ...............................................61 Part Properties ...............................................61 Ports (OOM) ........................................................62 Creating a Port ...............................................63 Port Properties ...............................................63 Redefining Parent Ports ....................................65 Attributes (OOM) ..................................................65 Creating an Attribute .......................................66 Attribute Properties .........................................66 Attribute Property Sheet Detail Tab ...............68 Adding Getter and Setter Operations to a Classifier ...69 Copying an Attribute to a Class, Interface, or Identifier ..................................................70 Overriding an Attribute in PowerBuilder .................72 Adding an Inherited Attribute to a Class ..........72 Identifiers (OOM) ..................................................73 Object-Oriented Modeling v Contents Creating an Identifier .......................................73 Creating a primary identifier when you create the class attributes ...............................74 Defining the Primary Identifier from the List of Identifiers ..........................................74 Identifier Properties ........................................75 Adding Attributes to an Identifier ........................75 Operations (OOM) .................................................76 Creating an Operation ......................................76 Creating a User-Defined Operation ................77 Creating a Standard Operation .....................77 Inheriting and Overriding Operations from Parent Classifiers ..................................79 Creating an Implementation Operation ...........79 Copying an Operation to Another Class ...........80 Operation Properties ........................................81 Operation Property Sheet Implementation Tab .......................................................83 Operation Property Sheet Parameters Tab........84 Operation Property Sheet Generic Tab ............86 Associations (OOM) ...............................................86 Creating an Association ....................................88 Associations Properties .....................................88 Associations Property Sheet Detail Tab ...........89 Association Implementation ...............................91 Understanding the Generated Code ...............93 Creating an Association Class ..............................94 Migrating Association Roles in a Class Diagram .........95 Migrating Navigable Roles ...........................95 Rebuilding Data Type Links ................................96 Linking an Association to an Instance Link ..............96 Generalizations (OOM) ...........................................97
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages758 Page
-
File Size-