Skip to main content

View of Participating Classes script for UML models

For IBM Rational Software Modeler, Rational Software Architect, or Rational Systems Developer

Darrell R. Schrag, Central Region Practice Lead - Architecture Management and SOA, IBM, Software Group
Darell was with Rational for seven years before the IBM acquisition. He has extensive knowledge of Rational configuration and change management, modeling, requirements management, and process solutions and is interested in model-driven development and the application of domain models as a strategic advantage in software development organizations. He has worked in the retail, services, insurance, distribution, and telecommunications sectors.
Steve Arnold, Senior IT Specialist, IBM, Software Group
Steve is a Senior Technical Consultant working for IBM Rational in the U.K., where he has worked for six years. His main areas of expertise are UML design and model-driven architecture (MDA), plus he has a strong interest in Eclipse and product extensibility.
Todd Dunnavant, Lead, Rational Architecture Management Community of Practice, IBM, Software Group
Todd leads the IBM Rational Architecture Management Community of Practice. His areas of expertise include service-oriented architecture (SOA) design, object-oriented design, requirements management, reusable asset management, and model-driven development.

Summary:  This script enables you to quickly generate a Participating Classes (or participants) diagram from a use case realization or package.

Date:  26 Aug 2008
Level:  Intermediate PDF:  A4 and Letter (73KB | 8 pages)Get Adobe® Reader®
Activity:  695 views

Script overview

The View of Participating Classes script quickly creates a class diagram that shows either the classes within a package or the collaborating classes within a use case realization. In the latter case, the script then adds unidirectional associations between collaborating classes if they do not already exist and marks them as "generated."

Script use

To generate a View of Participating Classes (VOPC) from a use case realization:

  1. Select the use case realization from the Project Explorer.
  2. Right-click on the use case realization name, and choose Create VOPC.

Note: This option is also available from the IBM Addins menu.

The script will then create a class diagram called <collaboration-name>-VOPC, which will show all of the classes in the collaboration (top pane in Figure 1) and create the appropriate relationships among them (bottom pane in Figure 1).


Figure 1. Use case realization as it appears in the VOPC views
Screen capture, top and bottom panes

To generate a VOPC from a package:

  1. Select the package from the Project Explorer.
  2. Right-click on the package name, and select Create VOPC.

Note: This option is also available from the IBM Addins menu.

The script will then create a class diagram called <package-name>-Owned Elements, which will show all of the classes in the package plus any existing relationships between them (see Figure 2).


Figure 2. Package as it shows in the VOPC views
Screen capture, top and bottom panes

Script installation

The installation of the VOPC plug-in is straight-forward:

  1. Download the RAS file included with this article (see Downloads) to a location on your hard drive.
  2. Start IBM® Rational® Software Modeler (or IBM® Rational® Software Architect or IBM® Rational® Systems Developer) and select File > Import.
  3. Select RAS > RAS Asset and click Next.
  4. Browse to the downloaded RAS file, accept the warning about deployable plug-ins, and click Next.
  5. Select the feature, accept the license agreement, and then click Finish.
  6. When prompted, restart to enable the plug-in.
  7. Now switch to the Modeling perspective.
  8. Select either a use case realization or package, right click, and you should see the option to select Create a vopc.


Downloads

DescriptionNameSizeDownload method
Deployable RAS filevopc_rasv2.0.4.zip18KBHTTP
Source code as an archived Eclipse projectvopc_2_0_4.zip14KBHTTP

Information about download methods


Resources

Learn

Get products and technologies

Discuss

About the authors

Darell was with Rational for seven years before the IBM acquisition. He has extensive knowledge of Rational configuration and change management, modeling, requirements management, and process solutions and is interested in model-driven development and the application of domain models as a strategic advantage in software development organizations. He has worked in the retail, services, insurance, distribution, and telecommunications sectors.

Steve is a Senior Technical Consultant working for IBM Rational in the U.K., where he has worked for six years. His main areas of expertise are UML design and model-driven architecture (MDA), plus he has a strong interest in Eclipse and product extensibility.

Todd leads the IBM Rational Architecture Management Community of Practice. His areas of expertise include service-oriented architecture (SOA) design, object-oriented design, requirements management, reusable asset management, and model-driven development.

Comments (Undergoing maintenance)



Trademarks  |  My developerWorks terms and conditions

Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Rational
ArticleID=332355
ArticleTitle=View of Participating Classes script for UML models
publish-date=08262008
author1-email=drschrag1@us.ibm.com
author1-email-cc=
author2-email=steve.arnold@uk.ibm.com
author2-email-cc=
author3-email=
author3-email-cc=

My developerWorks community

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Rate a product. Write a review.

Special offers