Skip to main content

Questions tagged [uml]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
128 views

Clean Architecture: Why are the request (input)/response(output) data structures not consider dependencies of the interface?

In Uncle Bob's Clean Architecture, he provides the following diagram: This diagram is used for discussing the Open-Closed Principle (OCP). I understand that the interface Financial Report (FR) ...
neuralcoral's user avatar
0 votes
2 answers
150 views

Problem with use case diagram

I am realising a project only I do not understand whether the diagram is correct or not. I've used a generalization for merging two CRUD operations. Is this correct? Is the use case login correct if ...
lucagiuseppe caliò's user avatar
-1 votes
3 answers
175 views

Mixing up UML and non-UML diagrams

When designing a data-intensive software, or any kind of software, regardless of the platform, is it appropriate to mix UML and non-UML diagrams together in the design document of the software? For ...
Acemad's user avatar
  • 115
1 vote
4 answers
260 views

Why are there two abstract interfaces in the observer pattern?

I'm reading about design patterns from both "Head First Design Patterns" and the original "Elements of reusable software etc" and I'm finding some confusion right at the start, in ...
Maldus's user avatar
  • 126
0 votes
1 answer
72 views

Confirmation of the request with the client. Use use case diagram or not?

Let's image that I have a requirement from a user about logging. He wants to log and then display to manager every action made by a user in the system. And for specific actions e.g. opening a case he ...
M_Ryan's user avatar
  • 1
3 votes
2 answers
87 views

In a deployment diagram, when should I underline the name of the Deployment or put a colon beforehand?

Per the UML 2.5.1 specification: DeployedTargets are shown as a perspective view of cube labeled with the name of the DeployedTarget shown prepended by a colon. System elements deployed on a ...
patrickekw's user avatar
3 votes
1 answer
91 views

Required sequential actions in use case diagram

I am creating a use case diagram for an elevator control system program, and I am a little confused about using includes for sequential actions. What I mean is that when the user calls the elevator, ...
Carter Karl Falkenberg's user avatar
0 votes
2 answers
206 views

Destroy and Create messages in UML

In UML we have two special messages, create and destroy. These two messages describe the creation and the destruction of objects, respectively. We must use the stereotypes << create >> and ...
AAA's user avatar
  • 43
1 vote
1 answer
129 views

Synchronous and Asynchronous messages in Collaboration Diagram

In the Collaboration diagram, we represent a message with a solid-headed line : Moreover, in a sequence diagram, we can show a synchronous message with a solid-headed line and an asynchronous message ...
AAA's user avatar
  • 43
1 vote
2 answers
111 views

Deferring/Saving State/Events in UML Statecharts

I have been doing a lot of thinking lately about the implications of event-based/responsive programming and UML statecharts. I believe my thinking up to this point has been flawed. Take, for example, ...
Patrick Wright's user avatar
5 votes
2 answers
677 views

Associations and References in UML Class Diagram

Is it possible to have an association without explicitly indicating the reference attributes in the participating classes in the UML class diagram? For example, consider this example : We can see ...
John adams's user avatar
0 votes
3 answers
504 views

How to solve a circular dependency with a composition relation?

For a game I'm making I have two objects; Gun and ReloadSystem. At the moment, these two object reference each other. Gun tells ReloadSystem to perform a reload when the gun gets clicked, and ...
Boudebouz1's user avatar
1 vote
1 answer
170 views

Design User Permissions

I'm building a ToDo list while practicing in different patterns and adding more complexity to the project. The problem which I'm currently facing is to how to apply (and later use, validate and ...
Roman's user avatar
  • 11
1 vote
1 answer
89 views

UML Statecharts - How to "remember" event parameters?

In UML statecharts, an event may how zero or more "parameters" (i.e., additional data associated with the event). The classic example would be a key press event with a parameter containing ...
Patrick Wright's user avatar
2 votes
3 answers
151 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
  • 31
1 vote
1 answer
94 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
117 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
106 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
1 vote
1 answer
234 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
  • 111
2 votes
1 answer
150 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
250 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
220 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
209 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
412 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
2k 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
126 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
292 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
115 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
222 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
2k 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
599 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
2k 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
4 votes
2 answers
2k 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
  • 587
0 votes
1 answer
145 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
641 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
163 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
442 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
115 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
132 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
2 votes
1 answer
699 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
1k 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
271 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
379 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
210 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
1 answer
123 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
753 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
289 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
351 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
10k 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
59 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

1
2 3 4 5
13