|
|
|
|
|
- Overview
- How to?
- Creating a class diagram
- Creating a class
- Adding an attribute
- Add an operation
- Create a relationship
- Creating a package
- Using packages
Operations performed on class diagrams
The following paragraphs explain: Creating a class diagram To create a class diagram: - Click in the quick access buttons.
- The new element window appears: click "Architecture", and then "UML".
- The UML model creation wizard starts.
- Select "Class diagram".
- Specify the UML model into which the diagram is to be inserted.
- Choose to edit the diagram directly.
- Validate the new class diagram. The new model appears in the editor.
Remark: If you chose to create a class, the corresponding wizard starts automatically. Creating a class To create a class: - On the "Class diagram" tab, in the "Creation" group, click "Class". The class creation wizard starts.
- Specify:
- the name of the class. This name will be the name of the corresponding WINDEV class (".WDC" file) when generating the UML model.
- the caption describing the purpose of the class.
- Define:
- the attributes of the class. These attributes will correspond to the members of the WINDEV class when generating the UML model.
- the operations of the class. These operations will correspond to the methods of the WINDEV class when generating the UML model.
- Validate the description of the class.
Remark: If you chose to create another class, the corresponding wizard starts automatically. Adding an attribute To add an attribute: - Select the class in which the attribute is to be added.
- On the "Class diagram" tab, in the "Creation" group, click "Attribute". The attribute creation wizard starts.
- When generating the UML model, the attribute will be converted to a member of the WINDEV or WEBDEV class. Its characteristics will become the characteristics of the member according to the following table:
| | UML class | WINDEV class |
---|
Attribute name | Member name | Caption of the attribute | Comment in the member declaration | Type of the attribute | Type of information in the member | Initial value of the attribute | Initial value of the member | Visibility of the attribute | Visibility of the member |
4. Validate the description of the attribute. The attribute is automatically added to the current class. Remark: The characteristics of an attribute can be modified in the class description window (select "Description" in the context menu of the class). Add an operation To add an operation: - Select the class in which the operation is be added.
- On the "Class diagram" tab, in the "Creation" group, click "Operation". The operation creation wizard starts.
- When generating the UML model, the operation will become a method of the WINDEV class. Its characteristics will become the characteristics of the method according to the following table:
| | UML class | WINDEV class |
---|
Name of the operation | Method name | Caption of the operation | Comment in the declaration of methods | Type of result returned (if the operation returns a result) | Type of result returned (if the method returns a result) | Parameters of the operation | Parameters of the method | Visibility of the operation | Visibility of the method |
4. Specify the type of the operation: abstract or shared between all the classes. 5. Validate the description of the operation. The operation is automatically added to the current class. Remark: The characteristics of an operation can be modified in the class description window (select "Description" in the context menu of the class). Create a relationship To create a relationship: - Depending on the type of relationship to create, on the "Class diagram" tab, in the "Creation" group:
- click "Generalization" to create a generalization.
- click "Association" to create an association.
- click "Dependency" to create a dependency.
- Specify the requested information.
- Validate the description of the relationship.
Creating a package To create a package: - On the "Class diagram" tab, in the "Creation" group, click "Package". A new package appears in the UML model.
- Right-click the new package and select "Description" in the context menu. The package description window opens.
- Specify:
- the name of the package. This name is displayed in the package in the UML editor.
- the caption describing the purpose of the package.
- Validate the description of the package.
Using packages You can add classes to a package from the "UML analysis" pane. To do so, drag the class and drop it onto the desired package. Remark: The classes that have been added to the packages are not displayed in the UML editor.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|