Visual Paradigm Skills: Creating a Class Model

In the previous tutorial , we have completed the creation of the domain class model, now we will copy it into the implementation model (implementation model).

1. Right-click on the background of the diagram and select Utilities  >  Transit to New Diagram... from the popup menu .

2. In the Select Parent Model of New Diagram window, select the root node of the project.

3. Click New Model in the upper right corner of the window .

4. In the Model Specification window, enter Implementation Model as the model name, and then click OK to confirm.

5. Keep Implementation Model selected and click OK to confirm. This creates a new diagram called the Implementation Model , which looks the same as the Domain Model . Now all we have to do is improve the design to make it an implementation model.

6. Select and delete the class Customer.

7. Rename the class Orderline to OrderLine .

8. Create the class OrderController .

9. Add the operation object createOrder () : Order in the OrderController .

10. Right-click on the action object createOrder() : Order and select Show Dependencies from the popup menu .

So far, the implementation of the model looks like this: 

Download the latest Visual Paradigm trial version >>

 

This article is translated from visual-paradigm.com

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326754749&siteId=291194637