Questions tagged [uml]
The Unified Modeling Language is the industry standard for modeling software-intensive systems.
668 questions
2
votes
3
answers
258
views
Single or multiple use cases for alternative actions in the same flow?
I’m modeling a use case diagram for an online marketplace system.
In one of my use cases, the seller can perform three different actions:
Accept an offer → closes the negotiation,
Reject an offer → ...
5
votes
4
answers
562
views
How should I model the external entity and actor in my DFDs and UC Diagram for an app used by the QA officer (and possibly other staff) in an agency?
I’m creating a 0- and 1-Level DFD, along with a UC Diagram, for a data cleansing web application for a government agency.
The primary user of the system is the agency’s Quality Assurance (QA) Officer.
...
7
votes
1
answer
513
views
Do these diagrams correctly model Git file state transitions?
I am in the process of engineering some UML state diagrams to explicitly model the transitions among Git’s file states: TRACKED, UNTRACKED, UNMODIFIED, MODIFIED, UNSTAGED, and STAGED. The diagrams I’...
3
votes
3
answers
324
views
Uml State Machine - how many final states?
I would like to know how many Final States an UML State Machine diagram can have.
In this OpenCF online book, I read this:
Some models may have more than one initial state or more than one final ...
2
votes
1
answer
296
views
Visibility between UML packages
I have been reading the book "OCUP 2 Certification Guide : Preparing for the OMG Certified UML 2. 5 Professional 2 Foundation Exam". Where-in I am unconvinced with the answer option provided ...
3
votes
2
answers
281
views
UML class diagram for RBAC. I don't know if the permissions and roles are properly set
I am trying to create a UML class diagram using RBAC. I am new to this language and trying to make sense of it. I am attempting to showcase permissions to specific roles. I am not sure whether that is ...
7
votes
2
answers
1k
views
Creating sequence diagrams for use cases
If I create a sequence diagram for a use case, should the objects in the sequence diagram be based on the methods and classes in the class diagram, or is that not necessarily required?
6
votes
2
answers
165
views
use case relationship generalization
I'm creating a use case diagram. Is it correct to make gaining muscle/maintaining weight/losing weight a generalization? Or do you think I should just delete those use cases? I mean the use case of ...
2
votes
3
answers
512
views
Diagram for Parallel processes
What type of diagram can I use to model parallel processes interacting with a shared set of resources, along with the state of those resources at each point in time?
My motivation is I have a bug that ...
2
votes
2
answers
148
views
How do you sketch two partitions communicating with one another in UML sequence diagrams?
I have a system that is divided into partitions (avionics system). THe basic means of sending and receiving information is via read and write calls to a certain port. The reading and writing is ...
0
votes
2
answers
170
views
Is my use case diagram about AI expertizer interpretable?
I have this Use-case diagram:
Stop Scroll Here!!!
What is your first impression about the use case? I mean is it interpretable intuitively? After you answer it, I will explain what that use case is ...
0
votes
1
answer
122
views
How to adjust the component diagram in this case for better readability?
I have created a Python code where a main algorithm uses three different modules (.py) after importing them.
To illustrate and describe it I have create the following component diagram?
Could it be ...
0
votes
2
answers
141
views
UML: Association vs operation
I want model something in class diagram. sometime it seems you can use association or just operation. for example User and Product, should they have association with name Add or should class User have ...
1
vote
1
answer
142
views
Does the current Use Case Diagram clearly represent how users interact with the system?
Detailed Idea for the Dermatech System
Main Idea of the System:
Dermatech is an AI-based system that operates through a mobile application, designed to assist users in diagnosing primary skin ...
1
vote
0
answers
30
views
Is the activation box allowed to hang across the entire life line or is stacking them a better option? [duplicate]
I'm trying to learn UML, and right now I'm focusing on sequence diagrams. I'm trying to represent this Java code in a diagram.
I'm very unsure about the activation boxes. Could somebody maybe provide ...
2
votes
3
answers
438
views
What is the relationship between the terms "association", "aggregation", and "composition"?
I try to brush up on my technical interview skills as I plan to seek a better offer
I don't recall being ever asked that really, but I still want to clear up any confusion. What is association, ...
0
votes
2
answers
155
views
granularity of sequence diagram
I am new to UML, and I am self-learning it, so please bear with me. I am trying to model a system where a teacher can develop an assignment paper and use an LLM to generate answers to make a more ...
1
vote
1
answer
163
views
converting use case diagram to an use case template
I am new to UML and have a problem. I am trying to model a system where a teacher can develop an assignment paper and use an LLM to generate answers to make a more robust paper. later, the moderator ...
1
vote
1
answer
244
views
The level of granularity of a use case
I am new to UML and have a problem. I am trying to model a system where a teacher can develop an assignment paper and use an LLM to generate answers to make a more robust paper. later, the moderator ...
0
votes
1
answer
421
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) ...
0
votes
2
answers
328
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 ...
-1
votes
3
answers
238
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 ...
1
vote
4
answers
430
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 ...
0
votes
1
answer
100
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 ...
3
votes
2
answers
132
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 ...
3
votes
1
answer
143
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, ...
0
votes
2
answers
696
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 ...
1
vote
1
answer
280
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 ...
1
vote
2
answers
241
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, ...
5
votes
2
answers
3k
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 ...
0
votes
3
answers
2k
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 ...
1
vote
1
answer
376
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 ...
1
vote
1
answer
153
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 ...
2
votes
3
answers
225
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 ...
1
vote
1
answer
114
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, ...
1
vote
1
answer
182
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)
{
...
-2
votes
1
answer
122
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 ...
1
vote
1
answer
328
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 >> ...
2
votes
1
answer
212
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.
1
vote
1
answer
601
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 ...
1
vote
2
answers
269
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 ...
0
votes
2
answers
280
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-&...
0
votes
1
answer
961
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 ...
3
votes
3
answers
5k
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 ...
0
votes
2
answers
150
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 ...
1
vote
1
answer
425
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?
...
0
votes
2
answers
137
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 ...
3
votes
1
answer
278
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 ...
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 ...
3
votes
2
answers
762
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 ...