![]() Package diagrams can be useful in many ways, such as: The UML does not treat package diagrams as a separate technique, It is often useful to combine them by grouping other model elements together into different packages on the same diagram. > - one package requires help from functions of other package > - one package imports the functionality of other package Though there are two stereotypes users can use their own stereotype to represent the type of dependency between two packages. There are two sub-types involved in dependency. ![]() Two equivalent ways to show containment:.The figure below shows an example use of such a package. Packages can include whole diagrams, name of components alone or no components at all.Ī package can also has a fully qualified name.So, programmers should construct package with name Date. For Example, Java provides Date as a package. Users should avoid using package name delivered by the programming language.For Example, Package::Product & Shipping::Product are allowed. However, it is allowed for classes inside different packages to have same name. ![]() The name of packages should be unique within a system.There are few constraints while using package diagrams, they are as follows. The figure below gives an example of package diagram that consists of several nested packages. Atomic module for nested package are usually class diagrams. A package can be represented as a hierarchical structure with nested packages.
0 Comments
Leave a Reply. |