PowerDesigner software creates a new model.

li>

  • Open PowerDesigner software, select menu file->create new model, or click Keyboard ctrl+N

    How to use PowerDesigner to design class diagrams

  • The Create New Model window pops up, and the model type is Object- Oriented Model, select Class Diagram in the diagram, enter the model name, such as ObjectOrientedModel_1, select the object language as Java, and click OK

    How to use PowerDesigner to design class diagrams

    < /li>

  • PowerDesigner A model project named ObjectOrientedModel_1 will be created, and the operable component symbols will be listed in the Palette panel. For class diagrams, Class (class), Interface (interface) and some relational components are mainly used.

    < /div>

    How to use PowerDesigner to design class diagrams

  • Click the Class icon in the Palette toolbar, and click in the work area to create a class. Click the arrow (pointer) in the Palette toolbar and double-click the graphic symbol of the class diagram to open the Class Properties window.

    How to use PowerDesigner to design class diagrams

  • You can set the class in the General and Detail tabs in the class properties window The basic attributes, class attributes, class methods, such as motor vehicle class

    How to use PowerDesigner to design class diagrams
    How to use PowerDesigner to design class diagrams
    How to use PowerDesigner to design class diagrams

  • Then click the Class icon in the Palette toolbar, click in the work area to create another class, and set the class name, Class attributes, class methods, such as car class

    How to use PowerDesigner to design class diagrams
    How to use PowerDesigner to design class diagrams
    How to use PowerDesigner to design class diagrams

  • < /div>

    Click the Genaralization icon in the Palette toolbar, click the car class, and drag the mouse to the motor vehicle class to realize that the car class inherits the motor vehicle class

    How to use PowerDesigner to design class diagrams

  • Double-click the car icon, the class attribute window will pop up, and select preview (preview ) Tab, you can see the java code generated by the class

    How to use PowerDesigner to design class diagrams

    Open the PowerDesigner software, select the menu file->create a new model, or hit the keyboard ctrl+N

    How to use PowerDesigner to design class diagrams

    How to use PowerDesigner to design class diagrams

    The Create New Model window pops up, and the model type selects Object-Oriented Model, as shown in the figure Select Class Diagram, enter the model name, such as ObjectOrientedModel_1, select Java as the object language, and click OK

    How to use PowerDesigner design class diagram

    How to use PowerDesigner to design class diagrams

    < /p>

    PowerDesigner will create a model project named ObjectOrientedModel_1, and the operable component symbols will be listed in the Palette panel. For class diagrams, Class (class) and Interface (interface) are mainly used And some relational components, etc.

    How to use PowerDesigner to design class diagrams

    How to use PowerDesigner to design class diagrams

    Click the Class icon in the Palette toolbar, and click in the work area to create a class. Click the arrow (pointer) in the Palette toolbar and double-click the graphic symbol of the class diagram to open the Class Properties window.

    How to use PowerDesigner to design class diagrams

    How to use PowerDesigner to design class diagrams

    General and Detail pages in the class properties window The basic attributes, class attributes, and methods of the class can be set in the signature, such as motor vehicle class

    how to use PowerDesigner design class diagram
    How to use PowerDesigner to design class diagrams

    How to use PowerDesigner to design class diagrams

    How to use Power Designer design class diagram

    how Use PowerDesigner to design class diagrams

     How to use PowerDesigner to design class diagrams

    Click the Class icon in the Palette toolbar again, click in the work area to create another class, and set the class name, class attributes, and class methods, such as the car class

    How to use PowerDesigner to design class diagrams
    How to use PowerDesigner to design class diagrams
    How to use PowerDesigner to design class diagrams

    How to use PowerDesigner to design class diagrams

    How to use PowerDesigner to design class diagrams

    How to use PowerDesigner to design class diagrams

    Click the Genaralization icon in the Palette toolbar, click the car Class, and drag the mouse to the motor vehicle class to realize that the car class inherits the motor vehicle class

    How to use PowerDesigner design class diagram

    How to use PowerDesigner to design class diagrams

    < /p>

    Double-click the car class icon to pop up the class properties window, select the preview tab, you can see the java code generated by the class

    How to use PowerDesigner to design class diagrams

    How to use PowerDesigner to design class diagrams

    WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
    SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 846 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

    Leave a Comment

    Your email address will not be published.