ibm Rational Rhapsody 7.5 — Package design guidelines

Model elements Packages A Rational Rhapsody project contains at least one package. Packages divide the system into functional domains, or subsystems , which can consist of objects, object types, functions, variables, and other logical artifacts. Packages do not have direct responsibilities or behavior; they are simply containers for other objects. They can be organized into hierarchies, providing the system under development with a high level of partitioning. When you create a new model, it will always include a default package, called “Default,” where model elements are saved unless you specify a different package. These elements are described in detail in subsequent sections.

Classes (C++/J) Collaboration diagrams Comments Sequence diagrams Constraints Structure diagrams Dependencies Object model diagrams Flow charts Statecharts FlowItems Tags Flows Stereotypes Functions (C/C++) Events Hyperlinks Component diagrams Object _types (C) Activity diagrams Objects Actors Packages Deployment diagrams Receptions Files Requirements Use case diagrams Types (C/C++) Nodes Variables Use cases Package design guidelines Packages provide a way to group large systems into smaller, more manageable subsystems. Packages are primarily a means to group classes together into high-level units, but they can also contain diagrams and other packages.

When creating packages, follow these basic guidelines: Љ Do not allow packages to become unmanageably large. Break them into subpackages. Љ Limit dependencies across packages. One way to do this is to use interfaces in their own packages. 316 User Guide