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:
- This script was built using Rational Rose/C++ v4.0.5. It may not work with earlier or later releases
- 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.
- You must have all the units loaded (if using a model with units)
- The script will not list all the dependent packages if the dependency crosses nested packages
- The lists are not sorted in any way
- 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 |