class-diagram

Better UML class diagram structure to represent marriage of individuals

走远了吗. 提交于 2020-07-22 10:57:27
问题 Currently I am working on a part of a bigger project, but I am not quite sure how to approach this part of the system. Each individual can be married multiple times, each marriage needs to have an officiant, partner1, partner2 and witnesses. Individuals can represent these roles in multiple marriages. I am wondering if there is a way to represent all of the necessary individuals with less associations, since the diagram quickly turns into a mess when looking at the whole system. Updated class

Skip an object in class inheritance diagram with Sphinx.automodapi

我只是一个虾纸丫 提交于 2020-06-17 09:11:29
问题 I'm trying to automatically build the class inheritance tree of the raytracing module (available on pip) with automodapi extension for sphinx , however, there is one class I would like to omit. The automodapi allows the creation of the tree with the command .. automod-diagram:: moduleName and in the doc there seem to be a skip method, but it only skips in the documentation generation, as I want to skip an object in the class diagram. The name of the class I want to omit is Materials . To

Skip an object in class inheritance diagram with Sphinx.automodapi

你说的曾经没有我的故事 提交于 2020-06-17 09:10:53
问题 I'm trying to automatically build the class inheritance tree of the raytracing module (available on pip) with automodapi extension for sphinx , however, there is one class I would like to omit. The automodapi allows the creation of the tree with the command .. automod-diagram:: moduleName and in the doc there seem to be a skip method, but it only skips in the documentation generation, as I want to skip an object in the class diagram. The name of the class I want to omit is Materials . To

Exporting From Class Details Visual Studio

狂风中的少年 提交于 2020-04-15 04:16:09
问题 I found that in visual studio we can add the summary to code easily from creating class Diagram, add class and open Class Details. Now I want to know if it is possible to export it into an excel file for example. 回答1: Check comment from @MD's to this answer https://stackoverflow.com/a/39080107/382515 (Visual Studio go to Analyze menu -> Calculate Code Metrics for Solution then click Excel button on the shown panel. Excel will popup with all your solution namespaces and classes listed. You can

Exporting From Class Details Visual Studio

狂风中的少年 提交于 2020-04-15 04:15:29
问题 I found that in visual studio we can add the summary to code easily from creating class Diagram, add class and open Class Details. Now I want to know if it is possible to export it into an excel file for example. 回答1: Check comment from @MD's to this answer https://stackoverflow.com/a/39080107/382515 (Visual Studio go to Analyze menu -> Calculate Code Metrics for Solution then click Excel button on the shown panel. Excel will popup with all your solution namespaces and classes listed. You can

Represent generic class inheritance in UML

大憨熊 提交于 2020-04-11 12:07:32
问题 Is this the correct way to represent the following code in a UML Class Diagram? CODE: public class CustomerRepository : EntityFrameworkRepository<Customer>, ICustomerRepository { } UML: 回答1: EDIT: Realised first answer wasn't correct after posting. The UML spec says (section 7.3.4): A bound element has the same graphical notation as other Elements of that kind. A TemplateBinding is shown as a dashed arrow with the tail on the bound element and the arrowhead on the template and the keyword

Represent generic class inheritance in UML

隐身守侯 提交于 2020-04-11 12:06:23
问题 Is this the correct way to represent the following code in a UML Class Diagram? CODE: public class CustomerRepository : EntityFrameworkRepository<Customer>, ICustomerRepository { } UML: 回答1: EDIT: Realised first answer wasn't correct after posting. The UML spec says (section 7.3.4): A bound element has the same graphical notation as other Elements of that kind. A TemplateBinding is shown as a dashed arrow with the tail on the bound element and the arrowhead on the template and the keyword

Represent generic class inheritance in UML

ⅰ亾dé卋堺 提交于 2020-04-11 12:06:13
问题 Is this the correct way to represent the following code in a UML Class Diagram? CODE: public class CustomerRepository : EntityFrameworkRepository<Customer>, ICustomerRepository { } UML: 回答1: EDIT: Realised first answer wasn't correct after posting. The UML spec says (section 7.3.4): A bound element has the same graphical notation as other Elements of that kind. A TemplateBinding is shown as a dashed arrow with the tail on the bound element and the arrowhead on the template and the keyword

Which class structure would be most suitable for the set up?

拈花ヽ惹草 提交于 2020-01-24 19:34:10
问题 I am working on a university assignment for a Object Oriented design module. Following linguistic analysis of nouns and verbs, and identification of use cases, the class diagram is now being made. The relevant parts of the program are as follows: The program is used by shop employees. There is a list of products that represent what is in the shop. Each product has unique details, including associated supplier and delivery company (which can have parent class called 'external company'). There

How to represent a static relationship in an UML class diagram

China☆狼群 提交于 2020-01-24 07:30:11
问题 I'm having trouble finding a good answer for how to represent a relationship between two classes A and B, where an instance of A is a static (class scope) variable in B. For example: class A { } class B { static A a; } I'm not even sure if it is a regular association or a dependency (or something else?). One idea would be to use a stereotype on the role name of A in the relationship, but I have never seen that done. And since I understand that it is 'rule' not to use both an attribute and a