Elements of class diagrams, relationships between classes, class structure
- The elements used to build class diagrams, described on page class Diagram (Class diagram).
- Working with the editor of class diagrams is given in relevant article.
Features create classes
The General structure of the class is shown in the figure above.
- Renaming classes is presented in Features of the editor class diagram (why this should be done exactly the way explained in this article).
- Used stereotypes with the description given in the article Key concepts of object-oriented structure for applications developed on the Platform Flexberry](fd_key-concepts.html).
- Features of the job methods classes presented in the article class Methods and method parameters .
- Description of class attributes is presented in Attributes data classes .
The need to pay special attention to:
- All names (classes and attributes) are written without spaces. If you want to present in behalf of several words, the words are written together, each with a letter (a description of this style are given here).
- Types that you can use, you can look at card types.
Recommendations for drawing class diagrams
There are recommendations for drawing a class diagram:
- The direction of the relationship
- Mechanics Association drawn “sideways”.
- Decalogue songs are drawn down.
- Inheritance is drawn up.
- Naming context
- The name of master usually the same as the class name.
- Name detail (name, which will be a collection in the object model) is usually in the plural.
- The Association must be called from the master, the type of composition - from both sides.
- Communication parameters
- Classes are United by Association with multiplicity “1:1” are combined into a single class.
- Connection type
features of using aggregation
- If you have an aggregator of several detailov, the role of the aggregator can have the same names as names of objects of the other classes will refer to that object. The role of detail must have different names because these names are used to name properties wizard (the same property names are not valid).
- Detail can act as a master. However, in this case, additional settings are required:
Переведено сервисом «Яндекс.Переводчик» http://translate.yandex.ru