Borland Together 2008 Borland Together UML 2.1 Guide Borland Software Corporation 4 Hutton Centre Dr., Suite 900 Santa Ana, CA 92707
Total Page:16
File Type:pdf, Size:1020Kb
Borland Together 2008 Borland Together UML 2.1 Guide Borland Software Corporation 4 Hutton Centre Dr., Suite 900 Santa Ana, CA 92707 Copyright 2009-2010 Micro Focus (IP) Limited. All Rights Reserved.Together contains derivative works of Borland Software Corporation, Copyright 2008-2010 Borland Software Corporation (a Micro Focus company). MICRO FOCUS and the Micro Focus logo, among others, are trademarks or registered trademarks of Micro Focus (IP) Limited or its subsidiaries or affiliated companies in the United States, United Kingdom and other countries. BORLAND, the Borland logo and Together are trademarks or registered trademarks of Borland Software Corporation or its subsidiaries or affiliated companies in the United States, United Kingdom and other countries. All other marks are the property of their respective owners. ii Contents Concepts...................................................................................................................5 UML 2.1 Overview......................................................................................................................5 UML 2.1 Implementation in Together .........................................................................................6 Provided and Required Interface Links of a Port........................................................................6 Required Interface...........................................................................................................7 Provided Interface...........................................................................................................8 UML 2.1 Diagrams.....................................................................................................................8 UML 2.1 Common Diagram Elements and Preferences..................................................9 UML 2.1 Activity Diagram..............................................................................................10 UML 2.1 Class Diagram................................................................................................18 UML 2.1 Component Diagram Definition.......................................................................26 UML 2.1 Composite Structure Diagram.........................................................................30 UML 2.1 Deployment Diagram......................................................................................36 UML 2.1 Profile Diagram...............................................................................................40 UML 2.1 State Machine Diagram..................................................................................43 UML 2.1 Use Case Diagram..........................................................................................47 Procedures..............................................................................................................53 Exporting a Model to UML 2.1..................................................................................................53 Converting a UML 2.0 Model to a UML 2.1 Model...................................................................54 Creating a Required Interface..................................................................................................54 Managing the Visibility of Provided and Required Interface Links............................................55 Working with Associations........................................................................................................56 Creating an Association.................................................................................................56 Creating an Association from Existing Properties.........................................................56 Change the Aggregation Type of an Association...........................................................57 Editing the Properties of AssociationEnds....................................................................57 Running a UML2Tools Report on a UML 2.1 Diagram File......................................................57 Working with UML 2.1 Profiles.................................................................................................58 A Typical Scenario of Creating a Profile........................................................................58 Creating a Project..........................................................................................................59 Creating a Profile...........................................................................................................60 Populating Profile Diagrams..........................................................................................61 Defining Profiles ...........................................................................................................62 Contents | 3 Registering Profiles ......................................................................................................63 Applying Profiles ...........................................................................................................63 Applying Stereotypes ....................................................................................................64 Reference................................................................................................................65 UML 2 Tools Wizard.................................................................................................................65 UML 2.1 Export Audits.............................................................................................................66 4 | Contents Concepts This section contains information about UML 2.1 concepts, capabilities, and best practices. Related Topics UML 2.1 Overview on page 5 UML 2.1 Implementation in Together on page 6 Provided and Required Interface Links of a Port on page 6 UML 2.1 Diagrams on page 8 UML 2.1 Overview The Unified Modeling Language (UML) is a tool maintained by the Object Management Group (OMG) that lets you visually specify the design of software systems using standardized diagrams. With its most recent version, UML 2.1, the UML standard for defining software systems has been functionally extended to address toolsmith issues, including the implementation of redefinition and bidirectional associations in the metamodel. UML 2.1 provides a set of Graphical Modeling Framework (GMF) editors based on the MDT UML2 metamodel. Currently, UML 2.1 supports eight of the thirteen basic diagram types. With the following diagram editors, divided into two functional sets, you can view and edit models: • Behavior – These diagrams depict the interaction of model elements and the different states of the model as its design is applied. • Activity – Similar to a flowchart, these show the flow of activities used to accomplish a single task. • State Machine – Depict the possible states of a model element and the transitions that cause a change in the state. • Use Case – Describe scenarios that a system does, from the point of view of an external observer, in order to accomplish a single task or goal. These diagrams emphasize what a system does rather than how. • Structures – These diagrams depict the static architecture of models, which include the elements that comprise the model and their relationships. • Class – Depict an overview of a system by showing the relationships among its classes rather than what happens when they do interact. • Component – Show the high-level physical analogs of a system and their structural relationships and interfaces. These diagrams are typically used to model the logical components of a system rather than its physical attributes, which are best handled by deployment diagrams. • Composite Structure – Show the configuration of interconnected parts that collaborate to perform the behavior and achieve the purpose of the containing classifier. • Deployment – Depict the hardware functionality of a software system and how it gets executed. • Profile Definition – Let you define all the domain model's non-UML properties and provide a way for metaclasses from existing metamodels to be extended so they can be adapted for different purposes. Concepts | 5 The following resources offer information and assistance: • Eclipse Model Development Tools (MDT) – UML2Tools • Eclipsepedia MDT-UML2Tools FAQ • OMG Unified Modeling Language (OMG UML), Superstructure, V2.1.2 • Mailing list: mdt-uml2tools.dev Note: Since Together 2008 Release 3, the feature set Together UML 2.1 Diagrams is not required to be installed.When not present, the corresponding parts of the user interface and functionality are not available. Refer to the installation instructions in the Release Notes document for additional info about the product installation process. Related Topics Concepts on page 5 UML 2.1 Implementation in Together Even in its latest version of UML, the OMG faces usability issues because of its patchwork contributions from varying groups of vendors and distinct legacy notations. These issues include language complexity, notational inconsistency, semantical ambiguity, and a handicapped interchange format that limits model portability between modeling tools. The Together architecture streamlines some of these challenges. Because of Together's compatibility with XML Metadata Interchange (XMI), you can import projects or sections of projects that were created in other modeling tools. Diagrams of such projects can benefit from Together's sophisticated layout capabilities, which other modeling tools lack. In addition to its support of UML 2.x and XMI format