Questions tagged [uml]

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

Filter by
Sorted by
Tagged with
1
vote
2answers
110 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. ...
3
votes
2answers
94 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
2answers
57 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
1answer
68 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, ...
3
votes
1answer
54 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
2answers
135 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
1answer
142 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
1answer
112 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 ...
0
votes
2answers
51 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 ...
3
votes
2answers
79 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 ...
1
vote
1answer
45 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
1answer
62 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
1answer
70 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 ...
3
votes
1answer
273 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, ...
2
votes
3answers
193 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
1answer
34 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 ...
2
votes
4answers
74 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 (...
1
vote
1answer
110 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
2answers
50 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 ...
3
votes
1answer
81 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
1answer
148 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, ...
3
votes
2answers
163 views

How to improve this class diagram of a system with its components

So I was given a task of making a class diagram for a bicycle. I know what a class diagram is and the concepts behind one. The requirement is that the bike can brake, turn or speed up. Now to me, a ...
1
vote
1answer
72 views

Does it make sense for a package to depend on, e.g. import, its nested packages?

I think depending on nested packages is wrong, because the nested packages are always going to depend on the parent —aren't they?– and this can lead to cyclic dependency issues. When I look at how ...
1
vote
3answers
111 views

Should exceptions be in the UML sequence diagram?

It the exceptions thrown in case of error are represented in the UML sequence diagram, would it make the UML sequence diagram too heavy? If they are not represented, how to tell about them?
2
votes
3answers
129 views

Is it possible to omit things in the class diagram [closed]

I'm writing documentation for a school java project I'm working on. Basically have chunked most of the methods into the class diagram, but now it seems very unreadable on a pdf as the words are too ...
1
vote
2answers
451 views

What is the difference of swimlane and activity diagram?

Im trying to make an activity diagram , but i see that activity and swimlane diagram is almost the same, the only difference i see that swimlane diagram include many actor in it i wonder about the ...
1
vote
2answers
57 views

Drawing UML activity diagram for Statistics feature

I need to draw a UML Activity diagram for a school java software engineering project I’m required to do. I’m quite new to this and I’m not sure what should be shown and what should not be shown. For ...
-1
votes
2answers
218 views

is my UML use case and class diagram correct? [closed]

So I am very new to creating design diagrams. I have a scenario where a user who is an admin of pizza hut selects registration option and the system prompts them to enter customer details. Upon ...
0
votes
2answers
104 views

Using UML State Machine for blockchain smart contract implementation

This is a conceptual question about applying UML State Machine model for smart contracts in blockchain. I want to develop a smart contract framework in a bitcoin-like blockchain which is based on the ...
2
votes
2answers
129 views

How to model data flow between components in UML

I am trying to model a robot controller I am working on. If I would think in Object-oriented design, I would come up with a component diagram like this : However, we use a data-oriented framework (...
2
votes
3answers
130 views

How to show relationship between member and the interface it implements in UML

I am building a class diagram where "Interface A" is implemented by a member of "Class B". I don't know if I should even be drawing a relationship between these or if I should, what would the line ...
-2
votes
1answer
66 views

Can we put a same usecase more than twice in 1 usecase diagram [closed]

There will be 4 roles, with 3 roles having a same use-case that is called view campaign and a use-case view segment. Can we put a same use-case more than one time in the same use case diagram? The ...
3
votes
1answer
98 views

initial and final state in activity diagram

As we know , initial state is the initial state of the system before the activity begins and the final state is the final state of the system when the activity ends. But what exactly is the initial ...
1
vote
5answers
402 views

When should i use an abstract class vs an interface? [duplicate]

I'm fairly new to programming. At school I am currently learning to program with Java. I want to build an application where i can store my collection of books, records, boardgames and such. Started ...
2
votes
2answers
117 views

Is it allowed to calculate the derived attributes by using other tables' attributes directly?

I tried to build a database for Driver Booking system. Here's brief details: Drivers have several vehicles and they offers the driving service with them Drivers will charge different hourly rates on ...
0
votes
1answer
195 views

Navigation in Class Diagram

I know that associations in class diagram can be bi-directional or directional. We refer to this as navigability. I am not sure to fully understand what it means. Please consider the following ...
3
votes
1answer
69 views

Given an software example in MDE, would not the model always be a UML model?

I have just started learning about model-driven engineering. But I have a hard time to grasp the different model levels, given software example. Would not the model always be represented in a UML ...
-3
votes
4answers
93 views

How can I represent a Use Case Table Diagram when I have two user types capable of initiating it?

I have two users in my program, one's a Programmer and the other's an Administrator. The Administrator is capable of doing everything the Programmer can do, but also has some additional roles (such as ...
1
vote
2answers
74 views

How to show UML component load/discovery and realization relationships

In a UML component diagram I want to show two components (among others). One is the core component that loads contents (classes) from the other. It's much like a testframework loading unit tests/test ...
0
votes
2answers
269 views

Object and actors in sequence diagram [duplicate]

question Can an actor "talk" directly with an object of the system in a sequence? example For an homework I need to model a "tracking service" for some shipping company. The functional requisites ...
0
votes
1answer
254 views

Handle alternative frame in sequence diagram

Question When an alt frame is used in a sequence diagram, and one of the two possibility end the sequence, how is "legal" to continue? example I need to represent a sequence in wich there are user ...
-1
votes
3answers
84 views

Coherence between sequence diagram and class diagram

Question 1 All participants in a sequence diagram must match a class in class diagram? Question 2 All class that represents some object that is created by the system needs a class that creates it? ...
0
votes
2answers
97 views

How to model system use cases realized by sub systems?

I found this question about sub systems & UseCases, just I lack understanding / mapping to my specific situation. I want to model which sub component fulfills which UseCase realized by my system ...
0
votes
2answers
74 views

Tie together functional and physical architecture with UML2

I am new to UML and I have a best practices question. I would like to model separately: logical architecture: logically interconnected software components; physical architecture: physical ...
0
votes
2answers
50 views

Modelling 2 composition relationships between 2 XML elements using UML

I want to model an XML schema that has the following composition relationships: A can contain B, and in another case B can contain A. Using a bi-directional composition is not an option here as it is ...
0
votes
0answers
96 views

Class Diagram Alternative for Qualified Association

I am using PlantUML and it unfortunately does not support qualifiers on a class. I simply want to show in PlantUML that a Task has a qualified association to User through the Task.userID property. A ...
0
votes
2answers
61 views

What's the use case of the combined fragment “strict”?

As far as I understood, synchronous messages will be handled one after another. Then we have the interaction operator for combined fragments called "strict" which states, that the operands inside the ...
3
votes
3answers
118 views

Actor in Use Case diagram

I am learning about Use Case diagrams and UML. In a Use Case can actors be an external 3rd party system? For example, in an ATM a user is an actor, but the SWIFT network system it communicates with ...
3
votes
2answers
290 views

Is my use case UML diagram too complicated?

The user of my app has access to two tools within my app. Each tool is comprised of multiple tables that the user has to fill with information. The app is more complex but that's roughly what's it's ...
2
votes
2answers
130 views

Object Instance Diagram - What can be modeled?

According to my professor, one of the following relationships cannot be modeled in an object instance diagram: Association Composition Generalization I made the argument that the association could ...

1 2 3 4 5 10