Class concept diagram

Can anyone explain what the connectors mean?

alt text
(source: stsmedia.net )

What free programs can generate such diagrams?

+7
java class-diagram
source share
4 answers

A dashed (dashed) line is a dependency. This means that the class (source of the arrow) depends on another class (destination of the arrow). This is a very abstract type of relationship, which is often accompanied by additional information in the form of stereotypes.

Diamond or rhombus means the relation "whole / part". In your example, a Transaction consists of Accounts. In UML, a white diamond is a weaker aroma of the whole / part (aggregation), while a black diamond is a stronger grade, often called a composition. Their semantics are poorly defined and have been shown to have flaws.

Triangles mean a generalization of relationships. They mean that a set of classes (sources of arrows with triangles) are specializations of more generalized classes (purpose of arrows with triangles). In your example, a loan is a type of product.

There are many tools that can draw structural or class diagrams. About freeware, check out Wikipedia here .

+14
source share
  • A dashed line with an open arrow means addiction. The Account class depends on the Person class.

  • Do you mean the chart? Or generate code? Netbeans has a UML module that helps you draw class diagrams and can generate Java code from class diagrams. Maybe this can help.

+1
source share

UML has a standard, but not all people adhere to it. On wikipedia find Class_diagram

Visio is the Microsoft Office software to create them, and a quick Google search for Eclipse (Java) leads to this http://www.mvmsoft.de/content/plugins/slime/index.htm

+1
source share

Adding to the answers already provided, applying the definitions to the provided class diagram:

The Person instance will contain an instance of the Account, and since this will be an aggregation (represented by a white diamond), this means that the instance of the Account can exist independently of the instance of Person. Since no plurality information is provided, it cannot be specified how many instances of the instance of the Person account can contain.

A similar explanation applies to the relationship between a transaction and a loan,
Man and credit.

As said, triangles define a generalization relationship, and this implies inheritance.
For the provided class diagram, this implies that the classes Loan, ManagedFund, and Cash
are specializations of the Product class. Loan instance will contain attributes
which are defined in it (interest, creditors), and will also contain the attribute name, description and managementFee, which are defined in the parent class
Product.

+1
source share

All Articles