1,598 questions
-1 votes
0 answers
59 views
How to draw Class diagram of class which includes only main() [closed]
I have a class with only a main(), but inside that many variables are there. Should I include all those variables inside the main function into class diagram or just specify only: Class name nil +...
3 votes
2 answers
131 views
UML Associations between associations
According to the UML specifications: Associations can be established between Classifiers Association are themselves Classifiers So, is it allowed according to the UML 2.5.1 specification to have an ...
2 votes
1 answer
77 views
How to model a given implementation of a map<K,V> in UML?
Today I commented this answer showing a possible implementation of a map in the diagram below, saying it is wrong. In that answer the diagram is : For me the aggregation between the template classes ...
-4 votes
1 answer
172 views
UML Class Diagram for a simple Unity System
I'm a bit rusty with UML and unsure if my class diagram effectively represents the architecture of my Unity system. Goal: I'd like the diagram to clearly show how GUI elements get updated through a ...
4 votes
2 answers
54 views
Minimum multiplicity 1..* in a class diagram
In a database how could I enforce the minimum participation constraint? in the T1 schema when you insert it must have at least 1 association with T2. To enforce this I had thought of various solutions ...
4 votes
1 answer
181 views
UML Class diagram for Chat
I'm designing a UML class diagram for a messaging app. Each Chat must have exactly 2 Users, and each User can be part of multiple Chats. I originally modeled this with a composition from User to Chat. ...
1 vote
1 answer
37 views
database implementation constraints and documentation
a constraint requires me that. "the value of B, present in table B1, must always be less than that of A present in table C1". is it correct to implement two triggers to do this? one that is ...
1 vote
0 answers
194 views
To draw UML Class Diagram generating error in PAPYRUS workspace
I am using Papyrus for UML Diagram. I am facing an error in class diagram. I am getting this popup window multiple times. How to resolve this issue? An error has occurred. See error log for more ...
0 votes
1 answer
73 views
How to initialise list in class diagram?
Eclipse Papyrus class diagram (Java). How can I define as a list to my attribute carList? private List<Car> carList = new ArrayList<>(); I'm only able to define type as String, int, ...
1 vote
1 answer
102 views
How can I improve this UML diagram code for an ordering system?
I'm working on a UML diagram using PlantUML to represent a simple ordering system. I’ve written the code, but I’m not sure if it's fully accurate. What can I improve or correct? Diagram produced by ...
2 votes
2 answers
145 views
Does a multiplicity of 0..* always require a reference in the form of an instance variable?
I have modeled the relationship between LeaseAgreement and Person as an aggregation. The '1' on the Person side is meant to indicate that each LeaseAgreement has exactly one reference to a Person (in ...
4 votes
2 answers
220 views
How to represent a Map<Enum, Class> relationship in a UML class diagram? [closed]
I have a class Car, an enum Position, and a class Wheel. In Car, I have a map attribute: private Map<Position, Wheel> wheels; I want to represent this structure in a UML class diagram. My ...
1 vote
2 answers
88 views
UML relationship when in dependency injection pattern
Below code shows a example of the dependency injection pattern in C++, what's the uml relationship between Car and GasolineSource interface? #include <iostream> #include <memory> using ...
1 vote
2 answers
131 views
How to denote a generic interface in UML?
How would i show that Class1Repo uses Class1 as a type in this UML class diagram? Do i put something on the dashed line or should i specify which type the methods return in Class1? interface ...
1 vote
1 answer
181 views
How to show in UML a RESTful API call to fetch data [duplicate]
How do I show the relation between a class named ApiService with method named fetchDataFomAPI() and a class named Student. Can I link them directly ? an aggregation between the two classes Student-(...