Questions tagged [class-diagram]
The Unified Modeling Language (UML) class diagram is a static structure diagram that maps the structure of a system by showing classes, functions, attributes, and the relationships between them. It is usually used to document the software architecture of a system. Use this tags for questions on [uml] class diagrams. Do NOT use this tag for questions that contain a class diagram but are not directly related to this diagram.
class-diagram
1,581
questions
1
vote
1
answer
18
views
Can the weak entities of the er diagram also be represented in the class diagram?
Is it possible to represent weak entities in the class diagram as in the er diagram?
could stereotypes be used?
2
votes
1
answer
20
views
When to use specializations?
I know that specializations should only be used if the created specializations have distinctive elements such as attributes or their own associations. if these are missing how could they be modeled?
I ...
2
votes
1
answer
19
views
multiple association classes on the same relation
I want to add multiple association classes on the same relation, to manage absence and group affection between a student and course, I read that an association class is a description of a relation, so ...
2
votes
1
answer
52
views
Clarification Needed on Class Diagram Relationships for Employee, OrderMission, and Department
I am working on a class diagram for my internship. I have encountered a situation that I haven't seen before, and I'm not entirely comfortable with the approach I've taken. Here are the relationships ...
0
votes
1
answer
21
views
when to use association classes in a class diagram?
From what I understand, association classes are based on describing the associations between two classes with attributes, generally speaking they are used when
cardinality is many to many
in case 1,1 ...
2
votes
1
answer
23
views
Can an association of the superclass be transformed into associations for the subclasses?
specialization is totally disjointed. I know that every association a1 involving s1 and c2 must be unique for each year, i.e. there cannot be two instances of s1 associated with c2 with the same year.
...
2
votes
2
answers
38
views
association classes or classes in class diagram?
I know that in a class diagram the difference between an association class and a real class is the dependency. That is, an association class depends on the existence of the instances it connects while ...
1
vote
0
answers
32
views
associations, specializations and multiplicity in class diagram
in this class diagram I would like to represent the following specifications.
an instance of spec1 can be associated with an instance of class2 for different years.
an instance of spec1 can be ...
0
votes
0
answers
7
views
associations and specializations in class diagram
in the following diagram I have not reported the fact that the type : tip attribute of class3 is an enumeration that can take on two values st or pt . My question is, is this representation okay if ...
2
votes
1
answer
38
views
is it permissible to create more than one class diagram?
I'm trying to create a simple project and want to implement uml like a class diagram.
According to the sources I studied, class diagrams can only be made once for one project. not made based on ...
2
votes
1
answer
48
views
can boolean or enumerative attributes influence the association number?
can a boolean or type attribute influence the number of associations this can have? how could I make it so that if for example the boolean attribute is set to 1 it means that e3 can be associated with ...
2
votes
3
answers
85
views
On which side shall I put the diamond sign in an UML diagram
I am trying to figure out where should the diamond be placed in this example, I understand its a has-a relationship and diamond should be placed to indicate the whole and part relationship.
I have ...
2
votes
1
answer
29
views
associations inherited from parent class
a specialization of a class, inherits all the attributes and associations of the parent class. Can a specialization not participate in an association of the parent class?
example: an employee and his ...
2
votes
1
answer
18
views
Can an enumerative attribute be optional?
in a class diagram, can an enumeration class attribute be optional and affect associations?
example
entity1 has various attributes
entity2
possesses the following attributes:
type : typeenum(type1 ,...
0
votes
0
answers
34
views
Why can't VS code generate the PlantUML folder automatically after installing the CSharp to PlantUML plugin?
Currently using:
.NET 8.0 Runtime
CSharp to PlantUML 1.4.0.
VS code 1.90.1
Node.js: 20.9.0
OS: Windows_NT x64 10.0.19045
Following the steps in the video (2:16), I am unable to generate the PlantUML ...