List Packages

Home Up

 

 

List Packages by Anthony Kesterton

This Rosescript lists out the packages every class in the model depends on. This list is placed in the Rosescript  "Viewport". A progress bar is displayed to indicate the number of classes left to check.

A class is considered to depend on the package if the class has a relationship with another class in that package. The relationships checked are:

  • Associations
  • Aggregations
  • Dependencies
  • Inheritance

Restrictions:

  1. This script was built using Rational Rose/C++ v4.0.5. It may not work with earlier or later releases
  2. The script may generate a run-time error if CheckModel fails as it assumes that each class refered to is loaded and exists in the model.
  3. You must have all the units loaded (if using a model with units)
  4. The script will not list all the dependent packages if the dependency crosses nested packages
  5. The lists are not sorted in any way
  6. We assume the maximum number of packages related to any one class is controlled by the constant MaxNumberOfRelatedPackages If this limit is exceeded, a runtime error will occur.

Download (12KB) (1997)

www.rationalrose.com/scripts/listpackages.ebs


All products mentioned are registered trademarks or trademarks of their respective companies.
Send mail to webmaster@rationalrose.com with questions or comments about this web site. 
Copyright © 1999-2000 Michael Moors
Last modified: March 09, 2000