Organize Design and Implementation Model

This tutorial is aimed to introduce the concept of organizing project with the use of model. By reading this tutorial, you will learn how to create domain model, how to transcribe it into implementation model, and eventually compare their differences.

September 23, 2009
User Rating: / 25
Views: 36,751
PDF Link Add comments

To create voice documentation:
  1. Create a new project named Order Processing.
  2. Open the Model Explorer.
    open model explorer
  3. Right click on the project node and select Model > New Model... from the popup menu.
    new domain model
  4. In the Model Specification dialog box, specify Domain Model as model name. Click OK to confirm.
    enter domain model name
  5. Right click on the Domain Model node and select Diagram > UML Diagrams > Class Diagram from the popup menu.
    new domain class diagram
  6. Develop a domain model class diagram like this:
    class diagram
  7. Having completed the domain model, we are going to transcribe it into implementation model. Right click on the diagram background and select Utilities > Transit to New Diagram... from the popup menu.
    transit to diagram
  8. In the Select Parent Model of New Diagram dialog box, select the project root node.
    select project root
  9. Click New Model at the top right of dialog box.
  10. In the Model Specification dialog box, enter Implementation Model as model name. Click OK to confirm.
    enter impl model name
  11. Keep Implementation Model selected, click OK to confirm. This forms a new diagram with name Implementation Model, and looks the same as Domain Model. What we are going to do is to refine the design to reflect the implementation model.
  12. Delete the class Customer by selecting it, and hit the delete key.
  13. Rename class Order line to OrderLine.
  14. Create a class OrderController.
  15. Add an operation createOrder() : Order into OrderController.
  16. Right click on the operation createOrder() : Order, select Show Dependencies from the popup menu.
    show dependencies
    After all, the implementation model should look like this:
    implementation model
  17. Let's refresh our memory on what we have changed for the class OrderLine. Select it, and click on the resource icon for Model Transitor.
    launch transitor popup menu
  18. Select Transit From > Domain Model.Order line from the popup menu.
    transit from
    This populates the domain model, and selected the former version of task OrderLine, which as named Order line.
    domain populated
  19. In order to identify all the refinements made in implementation model, we need to make use of the visual diff tool. Open visual diff by selecting Tools > Visual Diff from the main menu.
    open visual diff
  20. In the Visual Diff dialog box, select Transitor as Strategy.
    select tansitor as visual diff strategy
  21. We wanted to know the changes of model element details rather than view details such as shape coordinate. Therefore, next to Strategy we select Model Element to Compare.
  22. For the diagram pane on the right, keep Use Working Project selected, and pick up Implementation Model for the diagram to compare.
    selected impl diagram to compare
  23. Now, we have obtained the differences between domain (left hand side) and implementation (right hand side) model, at the bottom pane.
    Click on the node OrderController (New). From the tag (New), and from the diagram, we know that it is newly added in the implementation model.
    new class
  24. Select and expand the node Order line (Modified). We know that it is renamed.
    modified class
  25. Select the node Customer (Deleted). We can see that it does not exist anymore in the implementation model.
    delete class

Rate this Article

Click on one of the stars below to rate this article from 1 (lowest) to 5 (highest).

You may be interested in

  1. Data Flow Diagram (DFD) Tutorial
  2. Writing Effective Use Case
  3. Draw Entity Relationship Diagram (ERD)
  4. Data Flow Diagram with Examples - Food Ordering System
  5. Perform UML Modeling in NetBeans
Tags of this article:

Comments (4)

written by breako on September 12, 2010

Is Transit to new Diagram available on community edition?

written by Angus Chan on September 14, 2010

The transit feature is available in standard edition or above. Please see the header in top of the page.

written by Thomas Widmer on March 1, 2012

How do I get the SD and AD (Frame) organized in the Model Explorer? They are messing up Hierarchy as I can't move them under the Model they belong to.

written by Jick Yeung on March 5, 2012

Dear Thomas,

If you want to move a frame of a sequence diagram to another model, please add the sub-sequence diagram to the model - Right click on the target model and select "Diagram > Add Existing Diagram..." from the popup menu.

Best regards,
Jick Yeung

Write comment



Enter the calculation result

security code