Questions tagged [uml]
The Unified Modeling Language is the industry standard for modeling software-intensive systems.
668 questions
0
votes
3
answers
519
views
Is there a way to express arguments for a use case?
I am currently developing a use case diagram for an army generation system in a game I'm developing. I have a process 'GenerateArmy' that requires a combination of troops and a supply limit that are ...
0
votes
1
answer
400
views
Is DO-331 applicable to UML diagrams used in the software design?
DO-178C, Software Considerations in Airborne Systems and Equipment Certification is the primary document by which the certification authorities such as FAA, EASA, and Transport Canada approve all ...
1
vote
2
answers
1k
views
How to break asynchronous loop in the activity diagram from UML
I have an activity diagram below.
I want to know if that kind of loop is correct.
Is that "Waiting for the actor to stop listening to the music" a correct way to end the whole use case with that kind ...
0
votes
2
answers
535
views
Do we draw the dataset as a secondary actor in a use case diagram?
I am working on a project to detect cancer and I am using deep learning (Convolutional neural network). In the user interface, the user has only to input an image number then click test
when the user ...
2
votes
2
answers
475
views
What is the best way to trigger on object flow with a control flow in an UML activity diagram?
I want to have a control flow decide whether an object can pass through a point in a flow or not. From my understanding of control and object flows, this would not work in the way I have done it, ...
0
votes
1
answer
2k
views
How do I represent parallel (multiple) inputs in a UML Sequence diagrams?
I am new to UML sequence diagrams. I saw a few YouTube videos and a few tutorials such as this one.
I have a system with multiple inputs, that can interact with the system asynchronously. For example,...
2
votes
2
answers
175
views
Consider as a single class or attribute/operation of existing class?
There are different methods for recognizing classes in UP methodology:
noun/verb analysis
using CRC analysis
using RUP stereotypes
other sources
I have read above methods fully detailed in UML 2 and ...
2
votes
2
answers
195
views
How can I improve this design to achieve a more loosely coupled system and better testability?
My question
I built an inverted pendulum on an Arduino using C (ie. everything was done procedurally). I'm trying to self study application design and would like to refactor my code into a more OO ...
0
votes
1
answer
1k
views
CRUD use case and relative sequence diagram
I'm building my project with Visual Paradigm and I have some use cases that implements the CRUD pattern.
As specified in the book Use Cases: Patterns and Blueprints, Övergaard and Palmkvist suggest ...
0
votes
1
answer
617
views
User registration flow UML diagrams
This my first UML diagram for user registration flow.
After double checking the diagram I feel that I have a crowded diagram compared to what I can found in Google search.
My questions:
Are my alt ...
0
votes
3
answers
1k
views
How to find design defects by using a class diagram? [closed]
What are the design defects that can be spotted by using a class diagram, and how?
I am not concerned about syntactical/ representational defects, but in things like the following:
Do the classes/...
-3
votes
1
answer
1k
views
How to know if the UML class diagram design is good (well-planned) or not in java
I've learned the UML recently and I am trying to build a MonsterDuel system. However, there are a lot of classes in this project, and I am confused about the abstract class and its usage. Now, I have ...
-1
votes
1
answer
2k
views
How can I represent with UML a process that involves queues?
I would like to use UML diagrams to show some processes I am designing and would like to implement.
The processes involve using a queue, and adding and taking out elements from it.
In one of this ...
2
votes
1
answer
313
views
UML Actor and Device Relationship
I am currently in the process of creating a use case digram for a new system that we are building and have stumbled upon an interesting scenario.
The system has a number of primary actors which ...
-1
votes
1
answer
323
views
Are the steps involved in OOAD well-established? [closed]
There is a number of books written about OOAD (object-oriented analysis and design). A few of them can probably be considered good books, written by people with a lot of experience in the field.
One ...
-2
votes
1
answer
967
views
Class diagram for permissions
I have this class diagram exercise in UML. The main problem was the permissions are the works, which I did not know very well how to model it. The specification says:
Users can publish their work on ...
2
votes
1
answer
573
views
How to correctly translate UML Association, Aggregation and Composition to a Hibernate mapping?
There is a number of questions about the differences between UML Association, Aggregation and Composition out there and many many answers, some practical and some phylosofical. Here I'm asking we talk ...
1
vote
2
answers
2k
views
Which UML diagram is more adequate to represent a multithread process with loops
I have a process that I have been able to drawn somehow with a flowchart.
This process involves several classes, loops and several threads of execution.
However I am unsure which (if any) UML ...
2
votes
2
answers
475
views
How do I merge ControlFlow and ObjectFlow in UML2 Activity Diagram?
It seems that I need to have a MergeNode with incoming ControlFlow and ObjectFlow while according to paragraph 15.3.3.5 Merge Nodes of OMG® Unified Modeling Language® (OMG UML®) Version 2.5.1
If the ...
2
votes
1
answer
2k
views
How to visualise multiple similar classes in an UML class diagram?
My question is about an "edge case" of the UML class diagram. In particular, I have loads (about 30) classes that implement an interface. They can be split into two groups of similar classes. Within ...
2
votes
1
answer
5k
views
When should you use nested subsystems inside usecase diagrams?
I was wondering about a use case scenario for a nested subsystem. Right now, I get on why and how to use subsystems, but when should a nested subsystem be used?
In the picture below, I decided to ...
1
vote
1
answer
302
views
How general is UML actually?
I have just first heard of Unified Modelling Language, or UML (Note I am only an amateur software engineer), which wikipedia states is a "general-purpose modeling language in the field of ...
1
vote
2
answers
161
views
Class-diagram dependencies between classes
Can requirements be expressed in class-diagrams?
For example:
A student can enroll in a class.
There are different classes.
Some classes have dependencies, e.g. you can't go to Spanish III before ...
1
vote
1
answer
2k
views
UML Use Case Diagrams Relationship - Required / Optional AND independent
I am learning to create Use Case diagrams using the UML specification, but I have a couple of doubts about Use Case relationships which I cannot solve on my own.
My question regards two different ...
1
vote
1
answer
3k
views
Select one from multiple options in UML activity diagram
I am very new to UML and UML activity diagrams. my question is suppose in a student course registration system after student successfully login to the system there are 3 options add course, delete ...
2
votes
1
answer
2k
views
Use case diagram where actions are going through a third party system
I am creating a system which makes static analysis on code when a commit to GitHub is made, the results are then showed as a GitHub review.
My problem is, this means that the developer (actor) will ...
0
votes
2
answers
4k
views
UML use case and activity diagrams in SRS document
I'm writing a Software Requirements Specification (SRS) document compliant with the standard IEEE-830-1998. I've also drawn a couple of UML diagrams, specifically a use case and an activity diagram.
...
1
vote
1
answer
99
views
Is this form generator a valid Composite GoF?
Searching for a good PHP real world example, I've found this example of "composite" using:
FormElement as Component
Fieldset and Form as Containers
Input as Leaf
(this is my UML from the code):
So, ...
-4
votes
3
answers
351
views
Difference in UML
What is the differences between the Class and Actor in UML. Can I use an actor in use case diagram which is used as a class in a class diagram?
1
vote
2
answers
814
views
Combined Inheritance and Composition
Let's say you have a wireless network that acts as a bridge/wireless repeater. How would both factor into a class diagram? In my mind it makes senses to have a parent object that can exist on its own. ...
10
votes
2
answers
14k
views
What is the difference between containment and aggregation relationship in UML?
As it is said in ARLOW, J., AND NEUSTADT, I. UML 2 and the Unified Process, 2nd ed book, there are 7 types of relationship between different objects.
Dependency
Association
Aggregation
Composition
...
-1
votes
2
answers
2k
views
SyML/UML Activity diagram: how to model an OR gate
In a SyML/UML activity diagram, how do you implement an OR gate ?
There immediately came to mind to use a merge node. But does a merge node always have to come after a decision node?
Also, I have ...
1
vote
1
answer
127
views
Can this simple Bank example be considered as a valid Abstract Factory?
For teaching purposes, I'm trying to replicate in a more faithful way from this conceptual UML (from wikipedia):
In a "so-so" real world example, in my case, families of Loans and Insurances:
So, can ...
3
votes
1
answer
2k
views
How can I provide a class diagram for a system that contains creation of an object that contains a combination of property?
I am designing a system that contains organizational hierarchy management. There are four roles in the system which are the user, admin, manager and head of procurement:
I am trying to let the ...
3
votes
2
answers
576
views
Abstract Factory: Can Client Class have an aggregation with the Factory?
After searching for some Abstract Factory examples using modern programming languages, I have some dillemas about the sensu lato of conceptual UML schema of Abstract, more specificly about the Client (...
-4
votes
1
answer
717
views
Where to put the server in my Messaging System UML diagram?
I try to design a client application for a messaging application. The client can send and receive messages, the client can connect/disconnect.
My problem is that I don't know how to incorporate the ...
1
vote
1
answer
2k
views
Use Case Diagram for video renting
I have the following use case about a video rental store which has the following actors:
Member (Gold, Ordinal)
Assistant
Supplier
Clerk
The system is a desktop application for renting and reserving ...
2
votes
2
answers
6k
views
What is the difference between a qualified association and an association class and how to choose between them?
In UML 2.0, there are two ways of representing an association between classes which I can't seem to distinguish between.
First of all, there is the qualified association, represented as such:
You ...
5
votes
2
answers
14k
views
How to write UI in sequence diagram?
So i want to make a sequence diagram for login .. the first step is user access my website then the system redirect to login Form, then he insert username and password than the system validate it , if ...
2
votes
1
answer
2k
views
How to show relationships of the component containing the interface definition when using ball/socket notation in a UML Component Diagram?
I recently found out that I have probably been using ball/socket notation in a wrong way all the time. Now I am confused by the different ways of drawing interface relationships in two regards (I ...
1
vote
1
answer
2k
views
Sequence diagram: explicitly show websocket creation?
I am trying to draw up a sequence diagram to show how my web client will interact with my backend over a websocket connection.
I am using a websocket middleware to manage the stream connections.
...
3
votes
1
answer
313
views
UML Partitioning Decision Nodes
I am attempting to partition a decision node based on environment attributes. The process I am modeling is slightly different depending if a variable scope is public or private.
I am trying to ...
7
votes
1
answer
7k
views
Is there a UML diagram for functional programming?
For modelling software implemented with the imperative or procedural programming paradigm we have Flowcharts, process diagrams, etc.
For object oriented we have UML class diagrams, object diagrams, ...
4
votes
4
answers
12k
views
Primary and secondary actors in use case
We know that the primary actor is the one that initiates a use case and a secondary actor is the one that helps completion of the use case through his specific support. The Primary actor is usually ...
1
vote
1
answer
859
views
Fork and Join in Activity Diagram
Consider the following Activity Diagram :
First of all the activity a22 is confusing me through this configuration .If we need to list all the possible activity sequences that can take place in this ...
5
votes
6
answers
2k
views
UML aggregation: how can the "whole" exist without its "parts"?
I understand aggregation is a "whole/part" relationship, where the "parent" class is the whole and the "child" class is the part (and this is unidirectional), and that each class exist independently (...
0
votes
1
answer
304
views
Edit and extract the response of a system from its State machine diagram
Consider the following state machine diagram:
If we have the following event sequence :
Close door --> Start --> Open door --> Reset
and we need to know the corresponding response ...
1
vote
2
answers
439
views
Association between actors in use case
consider in a supermarket system , there is two actors : Customer and Clerk. To create the order , the customer interacts with the clerk and the clerk creates the order in the system. So my question ...
5
votes
2
answers
812
views
In an UML 2.5 State Machine, how can I model sending a Signal as an effect on a transition in a convenient way?
In an UML 2.5 State Machine, how can I model sending a Signal as an effect on a transition in a convenient way?
In one of the older UML versions you simply prefixed the name of the signal with a send ...
7
votes
1
answer
1k
views
Why is a <<create>> message asynchronous in UML sequence diagrams?
As far I as I could tell, the proper way to show an object creation in a sequence diagram is with an asynchronous arrow, e.g.,
However, in Java (and other OO languages I have used), as far as I know, ...