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."
To generate a View of Participating Classes (VOPC) from a use case realization:
- Select the use case realization from the Project Explorer.
- 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
To generate a VOPC from a package:
- Select the package from the Project Explorer.
- 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
The installation of the VOPC plug-in is straight-forward:
- Download the RAS file included with this article (see Downloads) to a location on your hard drive.
- Start IBM® Rational® Software Modeler (or IBM® Rational® Software Architect or IBM® Rational® Systems Developer) and select File > Import.
- Select RAS > RAS Asset and click Next.
- Browse to the downloaded RAS file, accept the warning about deployable plug-ins, and click Next.
- Select the feature, accept the license agreement, and then click Finish.
- When prompted, restart to enable the plug-in.
- Now switch to the Modeling perspective.
- Select either a use case realization or package, right click, and you should see the option to select Create a vopc.
| Description | Name | Size | Download method |
|---|---|---|---|
| Deployable RAS file | vopc_rasv2.0.4.zip | 18KB | HTTP |
| Source code as an archived Eclipse project | vopc_2_0_4.zip | 14KB | HTTP |
Information about download methods
Learn
- Visit the
Rational software area on developerWorks
for technical resources and best practices for Rational Software Delivery Platform
products.
- Explore
Rational computer-based, Web-based, and instructor-led online courses.
Hone your skills and learn more about Rational tools with these courses, which
range from introductory to advanced. The courses on this catalog are available for
purchase through computer-based training or Web-based training. Additionally, some
"Getting Started" courses are available free of charge.
- Subscribe to the
Rational Edge newsletter
for articles on the concepts behind effective software development.
- Subscribe to the
IBM developerWorks newsletter,
a weekly update on the best of developerWorks tutorials, articles, downloads,
community activities, webcasts and events.
- Browse the
technology bookstore
for books on these and other technical topics.
Get products and technologies
- Download
trial versions of IBM Rational software.
- Download these
IBM product evaluation versions
and get your hands on application development tools and middleware products from
DB2®, Lotus®, Tivoli®, and WebSphere®.
Discuss
- Check out
developerWorks blogs and
get involved in the
developerWorks community.
-
Rational Software Architect, Data Architect, Software Modeler, Application Developer and Web Developer forum: Ask questions about Rational Software Architect.
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.
Comments (Undergoing maintenance)





