Creating Parent Elements for Classes and Use Cases
VP’s products allow you to create the parent elements for classes and use cases easily. The following steps show you how to create the parenet elements for classes and use cases respectively.
Creating Parent Element for Class
The parent element for classes is package. You can create the parent element for classes easily by the Create Parent feature.
Let us assume the following class diagram is created.
From the above class diagram, we can group the classes into two packages; one package is ordersystem.entity which consists of Customer, PurchaseOrder, PurchaseOrder_Product, Product and Payment classes while the other package, ordersystem.control consists of CustomerController and PurchaseOrderController classes. To create the two packages on the above class diagram:
Select the Customer, PurchaseOrder, PurchaseOrder_Product, Product and Payment classes, right-click and select Create Parent > Package from the pop-up menu.
A package is created which bounds all the selected classes, enter
ordersystem.entity to the name of the package.
Select the
CustomerController and
PurchaseOrderController classes, right-click and select
Create Parent > Package from the pop-up menu.
Enter
ordersystem.control to the name of the package. The
CustomerController and
PurchaseOrderController classes are shown in the newly created package.
Creating Parent Element for Use Case
The parent element for use cases is either package or system. You can easily create the parent element for use cases by the Create Parent feature. Let’s try to create the system boundary for the use cases in the following use case diagram.
Select the use cases, right-click and select
Create Parent > System from the pop-up menu.
A system is created which bounds all the selected use cases, enter
Order System as the name for the system.

Related Articles
Resources