Tips and Tricks
Diagramming Topics

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.
creating_parent_elements_for_classes_and_use_cases-1.jpg

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:

  1. Select the Customer, PurchaseOrder, PurchaseOrder_Product, Product and Payment classes, right-click and select Create Parent > Package from the pop-up menu.


creating_parent_elements_for_classes_and_use_cases-2.jpg

  1. A package is created which bounds all the selected classes, enter ordersystem.entity to the name of the package.
    creating_parent_elements_for_classes_and_use_cases-3.jpg

  2. Select the CustomerController and PurchaseOrderController classes, right-click and select Create Parent > Package from the pop-up menu.
    creating_parent_elements_for_classes_and_use_cases-4.jpg

  3. Enter ordersystem.control to the name of the package. The CustomerController and PurchaseOrderController classes are shown in the newly created package.
    creating_parent_elements_for_classes_and_use_cases-5.jpg

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.
creating_parent_elements_for_classes_and_use_cases-6.jpg

  1. Select the use cases, right-click and select Create Parent > System from the pop-up menu.
    creating_parent_elements_for_classes_and_use_cases-7.jpg

  2. A system is created which bounds all the selected use cases, enter Order System as the name for the system.
    creating_parent_elements_for_classes_and_use_cases-8.jpg

Related Articles

Resources

 
 
Last modified: 2007/03/14 03:01
 
 
Home | Recent Topics | Highlights | UML Diagrams | Tips and Tricks | Object-Relational Mapping
visual-paradigm.com Home | Training Center | UML Center | VP Gallery | Discussion Forum | UML Open Directory