Questions tagged [uml]

The Unified Modeling Language is the industry standard for modeling software-intensive systems.

Filter by
Sorted by
Tagged with
1 vote
2 answers
80 views

Which association should be in the class diagram

there are a vehicle class and customer class . In short, in the customer class there is a function that shows 'can this person or company rent that car'.The function uses a object of vehicle and ...
Tunahan's user avatar
  • 21
0 votes
0 answers
27 views

How to show type introspection in UML

I'm modeling a part of Python/Qt GUI code which uses reflection to construct a collection of widgets, in a form. The code works like this: There is a Model which has attributes of various types, ...
Daniël Schenk's user avatar
1 vote
1 answer
78 views

Correct way to represent acquaintance enforced by interface in UML class diagram

Suppose I have the following client code: using System; namespace InterfaceCompositionUml { internal class Program { static void Main(string[] args) { ...
user32882's user avatar
  • 267
-2 votes
1 answer
76 views

UML relationships

Could someone explain to me if the relation in this class diagram is a "dependency" or "association" relationship and why? I cannot edit the picture. The terms translate into ...
João Vitor Gomes's user avatar
0 votes
1 answer
90 views

UML Component diagram: Dangling interfaces or connecting two

I'm a novice in UML component diagrams. How would I draw the following situation? I have an << item >> called "DataAquisition". This item consists of a << unit >> ...
Max's user avatar
  • 101
2 votes
1 answer
86 views

Can a use case use both extend and include?

Can a use case use both extend and include? For example like the "Take Advanced Knowledge Quest" use case in the picture below.
Saiful M.'s user avatar
1 vote
1 answer
98 views

Should I include an actor to represent the database in a use case diagram? [duplicate]

I'm working on the documentation of software management system. That system can be linked with an e-commerce website to get financial data directly. For example when a transaction will be made it will ...
Laila Ejaz's user avatar
1 vote
2 answers
179 views

What if the parent can't exist without a child? (Class diagram)

I've built a matchmaking system where two of the classes look like this: I know that it actually looks like an inheritance, but in the code it doesn't extend to the PlayerInMatchmaking and the ...
Sena's user avatar
  • 19
0 votes
2 answers
145 views

What is a possible order of these actions in this Activity Diagram?

Context: This is from a practice exam, and we aren't sure what the proper answer was Question: What is a possible order of actions for this activity diagram? Options: A->B->D or A->B->C-&...
A P's user avatar
  • 111
0 votes
1 answer
138 views

Sequence diagram with successive requests

Please help with a diagram in which there are sequential requests. The logic is the following: Service 1 sends a PUT Trigger an export request to Service 2 If the response is 200 OK, then after 10 ...
Alex's user avatar
  • 3
3 votes
3 answers
608 views

UML sequence diagram - When to start and end activation box

I am using the c language. I created one lifeline for each file. I am confused about the activation box. Many people said an activation box indicates an object is active and processing a task. In case ...
Sam's user avatar
  • 139
0 votes
2 answers
118 views

How to cope with state flows in UML?

I got a few questions about using UML state machines in software architecture: I have to design an STM and express it as part of a UML model. There is a singelton STM Maintainer holding the instance ...
ngong's user avatar
  • 109
1 vote
1 answer
145 views

Is the UML sequence diagram correct?

The following sequence diagram is rendered by Sparx Enterprise Architect. Is the start of the new activation (blue) correct? Shouldn't it rather continue with the existing activation on the Object2? ...
Petr B's user avatar
  • 121
0 votes
2 answers
97 views

Does the UML spec indicate any difference between what can go on a component diagram and what can go on a class diagram?

If I understand the UML 2.5.1 spec correctly, the definitions and constraints for UMLClassDiagram and UMLComponentDiagram are identical and furthermore the set of things those diagrams may show are ...
Chris F Carroll's user avatar
3 votes
1 answer
184 views

GOF class diagram for Builder pattern appears to contradict its corresponding sequence diagram

In the Design Patterns: Elements of Reusable Object Oriented Software, the Gang of Four present the following canonical form for the Builder pattern: In Appendix B the following is mentioned ...
user32882's user avatar
  • 267
1 vote
2 answers
914 views

How to represent in uml a class which takes another class and sets its self as a member on it

In the picture above class of the type implementation will at some point receive a class of type C1. Classes that implement Contact will at some point hold references to C1. So should the diagram be ...
Ten Jones's user avatar
3 votes
2 answers
451 views

Does UML have a grammar that correlates to its diagrams?

UML is generally taught as a standardized way of diagramming software, however, I've heard recently that there's an actual grammar behind it. I've searched the UML specification and haven't found ...
Visual Studio's user avatar
6 votes
5 answers
935 views

Do software engineers use UML diagrams of object models, domain models, system sequence diagrams and operation contracts?

Do software developers actually use UML diagrams, and more specifically object models, domain models, system sequence diagrams and operation contracts? I am taking a computer science degrees, and we'...
Tim's user avatar
  • 81
3 votes
2 answers
847 views

Arrow head for a reply message in UML Sequence Diagram

In UML sequence diagrams, there is the possibility to specify a synchronous call with a reply message. Example (taken from https://en.wikipedia.org/wiki/Sequence_diagram) When modelling that in ...
koppor's user avatar
  • 537
0 votes
1 answer
90 views

How to Represent actions in a UML state diagram that may be executed from a base state or as a result of another action from that state

I am creating a UML state diagram to help me plan the card game simulator I'm working on. At the moment I'm stuck on an issue where actions that can be performed from the "Main" state, the ...
Ben Jaguar Marshall's user avatar
1 vote
2 answers
366 views

Is inheritance in use case diagrams between actors limited to one specific diagram

Is inheritance in use case diagrams between actors limited to one specific diagram or is it applies to other diagrams too? e.g. I got 2 actors let's say Actor A, Actor B. I got also two use case ...
Mr Lukas's user avatar
2 votes
1 answer
122 views

How should I model the actors in a use case diagram for a platform that allows users to both watch videos and create their own channels, like YouTube?

Should I use separate actors for "Video Watcher" and "Channel Creator," or a single actor called "User" that represents all users of the system? i have a webapp where ...
daklay's user avatar
  • 33
0 votes
2 answers
235 views

Mapping class diagrams to source code

I'm attending a software engineering class at my university, and my final consists of a fully-documented desktop application to be built in a four people team. While designing and coding this software,...
Thomas Herondale's user avatar
1 vote
1 answer
92 views

UML Class Diagram Excersise

Problem statement: The information system of a university must manage information relating to its employees, departments, institutes, courses provided, and research projects. Information relating to ...
Luca Pedersoli's user avatar
0 votes
1 answer
75 views

I'm very confused coming from MYSQL, is it necessary to "connect" classes via matching IDs as attributes or are associations enough?

I'm making a class diagram for my school project, an Inventory Management System. So far, I've made the use-case and activity diagrams, however, I'm struggling with the class diagram and mostly ...
emcosokic's user avatar
0 votes
0 answers
47 views

Is this the main difference between Composition and Aggregation? [duplicate]

I think the difference between Composition and Aggregation is as follows. Composition: When the parent object is killed, the child object cannot be used by another object. Ex: Employee and BankAccount....
Bunyamin's user avatar
2 votes
1 answer
406 views

UML Diagram double arrow

In a Microsoft Learn article on MVVM there is an, what I assume, UML diagram that didn't make sense to me. (https://learn.microsoft.com/en-us/archive/msdn-magazine/2009/february/patterns-wpf-apps-with-...
Nordin's user avatar
  • 31
-2 votes
1 answer
639 views

How to add methods in a class that uses other classes in UML class diagrams?

I have an index file that uses three main JS classes each defining one method. The JS application is about listing a folder datasets, deleting a dataset from that folder, or uploading a dataset from ...
SSSOF's user avatar
  • 13
0 votes
2 answers
171 views

Is there a UML symbol representing instantiation? This one doesn't seem to be one

The following figure comes from https://spring.io/guides/topicals/spring-security-architecture I refer to it as a "figure" rather than a "diagram" as I'm not sure if it is. the ...
JJJohn's user avatar
  • 111
0 votes
2 answers
209 views

Use case diagram feedback; is this correct?

I'm trying to learn to create use case diagrams and would appreciate some pointers. The sample problem is to create a use case diagram for a seller in an online magazine selling site, I only have to ...
Joe's user avatar
  • 11
2 votes
1 answer
118 views

Can we use external parties as objects in a sequence diagram?

I am currently building a sequence diagram for a website to allow customers to make online bookings for a travel agency. If a customer books a flight, he/she can use an online payment method to pay ...
Malinsha Vithanage's user avatar
0 votes
0 answers
126 views

How to show C++ concept relations in UML

A C++ concept can be constructed by combining other concepts or a list of required expressions, with boolean operators. When a class A inherits from B, there is only one relation (mostly resembles ...
user877329's user avatar
0 votes
1 answer
99 views

UML design for data analytics of aggregated Survey Data

First and foremost, let me say that I do not have a Software Engineering background . I need help from the community as I have been assigned to create a UML (Unified Modeling Language) design from ...
user3115933's user avatar
2 votes
1 answer
494 views

UML State Machine Diagram - How to model an event that occours repeatedly

I'm trying to model the evolution of a player's energy in a game. I have an "alive" state, and a transition to it from the initial pseudostate that has the effect of setting the initial ...
mell_o_tron's user avatar
0 votes
1 answer
136 views

Deployment diagram condradictions

I am trying to understand how a deployment diagram works by making one and reading up on it. I have come across multiple different (contradicting) statements or I am flat out misunderstanding them. ...
I try so hard but I cry harder's user avatar
1 vote
2 answers
230 views

How to deal with often repeated relations in UML Class Diagrams / ERM?

Suppose you have a ERM containing about 40 Classes / Entities. Most of them in quantified relations to others, some of them as standing there alone. How to deal with a very often used relation/...
Edgar Alloro's user avatar
28 votes
6 answers
9k views

Is documenting a big project with UML Diagrams needed, good to have or even not possible?

I developed a big(ger) project, which is in use already and grows, gets altered, fixed, etc. every week. Until now I am the only developer. Since the team has to grow, also we will be more developers ...
Edgar Alloro's user avatar
0 votes
0 answers
54 views

UML Statecharts

I have been using an implementation of UML statecharts in C++ similar to that defined in the book "Practical Statecharts in C/C++" by Miro Samek (https://www.state-machine.com/psicc). One of ...
Patrick Wright's user avatar
5 votes
1 answer
1k views

Use Cases in Clean Architecture, in Requirements Specifications from Software Engineering and Use Case Diagrams in UML

Well, I've been studying software architecture a lot, Clean Architecture in specific and I came across some multi meanings terms and "Use Case" is one of them. I'd read in some places that ...
Gabriel Antonio's user avatar
3 votes
3 answers
595 views

Documenting my abstract class/interface - what is important?

I am still an beginner/intermediate programmer at best so apologies if I misuse terminology. I work with SCADA software for my job, specifically Ignition by Inductive Automation. It's made for rapid ...
Brian Karabinchak's user avatar
0 votes
1 answer
2k views

Two actors have same use case but can access different extends (Use Case Diagram)

I am trying to create a use case diagram. In the diagram, I have two actors that have access to the same use case (View Properties) but they have different functions related to the use case. Can ...
EagleRex's user avatar
1 vote
1 answer
223 views

How to present my Actors and Objects inside Sequence diagram for an Online Management Exam system

I am working on an online exam management system, which have those main actors:- Super Admin. Can manage questions/answers under all functional areas. Functional Admin. Can add questions/answers ...
test test's user avatar
1 vote
1 answer
270 views

How to represent NoSQL entities

I've mainly studied SQL structures, and I know that the representation of the entities can look something like this: However, I'm building this app with MongoDB, so NoSQL DB. I'm aware that MongoDB ...
fel.jim's user avatar
  • 13
1 vote
2 answers
206 views

Regarding generalization and classification in UML

Currently I am reading UML Distilled - Third Edition (Martin Fowler) to catch up some new thoughts and spot interesting things I am not yet aware of. On of those things I came up is the ...
Chilippso's user avatar
  • 121
0 votes
2 answers
706 views

Use case diagram question confusion

For this question we got for a mock test we did and I have put the correct options in bold Consider the following use case diagram, is it correct to state that: a. Customer directly interacts with ...
computerscienceisapain's user avatar
0 votes
3 answers
246 views

UML - State Machine Diagrams: Mapping States which can be transitioned to from anywhere

I am trying to model a case management system in a UML State Machine Diagram. It is an approval style process and the case can enter a withdrawn state at any time if it is no longer required. This ...
Stephen Lew's user avatar
0 votes
1 answer
305 views

Sequence diagram question

For this question: Considering the following sequence diagram, it is CORRECT to state that: Select one or more: a. Message 4 might never be executed. b. Message 5 is not complete until the Customer ...
computerscienceisapain's user avatar
1 vote
1 answer
168 views

UML arrowhead confusion

The answer to this question is A however I can't wrap my head around how there is a inheritance given the only information is the quote below (ie. a player is not a kind of team). It would make more ...
moo's user avatar
  • 11
1 vote
2 answers
797 views

How to document a NoSQL document-based data model?

How do you document the logical data model of a document-oriented database like MongoDB? For relational databases, Entity-Relationship diagrams or UML class diagrams are used. What is the practice for ...
ssn's user avatar
  • 71
1 vote
2 answers
121 views

Instance of component inside a (non-instance) component. Does it make sense?

A colleague of mine did this UML component diagram to represent both the required/provided interfaces and the internal structure of the subsystems that compose the system we're working on: (The ...
cidra's user avatar
  • 321

1
2 3 4 5
13