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

learn more… | top users | synonyms

4
votes
1answer
53 views

What comes first: the activity diagram or the sequence diagram?

I've been learning about UML diagrams and such. While doing so I came up with a problem. Which diagram should be drawn first when designing a system given that use case and such are completed? Is the ...
0
votes
1answer
119 views

How to improve this UML class diagram?

How can I improve this UML class diagram? I'm really confused about the relationship between Expense and Category, because Category and Expense can exist by themselves: you can register Expense and ...
18
votes
3answers
19k views

UML Diagrams of Multi-Threaded Applications

For single-threaded applications I like to use class diagrams to get an overview of the architecture of that application. This type of diagram, however, hasn’t been very helpful when trying to ...
-2
votes
0answers
33 views

What is the difference between those UML statecharts diagrams

If there difference when Final state located in composite state or out of composite state?
2
votes
0answers
47 views

Drawing sequence diagram for user-forget-password functionality

I'm trying to draw a sequence diagram of the functionality of user retrieving their password when they forget it and its procedure could be illustrated in this activity diagram. As you can see, ...
2
votes
1answer
264 views

UML diagram for an existing implementation

I have some code, which I want to present in UML, but I've stuck at one point. Let me tell you something about code's functionality. I have a workspace in which I can place some Components, select ...
1
vote
0answers
21 views

How to Make Reusable Classes/Package in Laravel for Billing which uses PaymentExpress?

I am working on a Laravel Project where we are Payment Express. What currently we are doing is that we have Payment Express Class with static function (Not a single property) like given below: Class ...
0
votes
1answer
43 views

UML- Aggregation or Association

Below is the problem for which I have created a UML diagram with Staff as superclass and waiter, manager and hosts as subclasses, I understood other parts, except for the relation between table and ...
-2
votes
0answers
30 views

How to visually link UML use cases to the UML state diagrams or UML activity diagrams that describe each use case?

Does a formal way exist to visually link a use case to the UML state diagram (or activity diagram) that describes it? I know that it is possible to detail this relationship in the documentation, but ...
3
votes
5answers
193 views

What is the correct OOP relation between complex and real numbers?

On one hand class complex { double real; double imaginary; } it is composition on the other hand class complex : double { double imaginary; } it is inheritance Which one is ...
7
votes
3answers
50 views

UML - may a uml diagram contain different types of uml models?

^ e.g. is it allowed to link directly from a use case to an activity diagram - or- from a class diagram to a use case by connecting them with an association note -or - form a component diagram to a ...
0
votes
2answers
77 views

The right way to show the big use-case diagram

I have the big use-case diagram: May I pack some use-cases in packages and then show diagram by the following way:
1
vote
3answers
40 views

How to represent the following scenario in a class diagram?

Consider a store with multiple branches and a system generates reports for each branch monthly and annually and an overall report as well monthly and annually. So in total there are 4 types of ...
5
votes
1answer
30 views

UML use case diagram: Actors on left and right?

I'm currently drawing a use case diagram (using UML2.0) and it's getting quite large and unorganised. So my question is, is it acceptable to place actors on both the left and right of the system ...
0
votes
1answer
69 views

How do you write super() in the UML format?Is it correct to write super(parameter: type): return type in the UML methods section?

Suppose you write a subclass that extends to a certain class and in that subclass, you use the super() method for your constructor. Would you write "super(parameter: type): return type" in the UML?
1
vote
0answers
28 views

How to use derive: in OCL when the type is not primitive

Let's consider the following class diagram I would like to express the following rule in OCL if cond = true then bderived = b else bderived.x = b.x + 10 bderived.y = b.y + 10 endif My ...
3
votes
1answer
41 views

UML attributes types and names [closed]

Does UML provide its own data types for the attributes in the class diagram? If so, what data types does UML provide? If UML provides its own data type and the target language has an equivalent type ...
2
votes
1answer
60 views

Is there a way to show an if statement in a UML Sequence Diagram?

I went on an interview last year and was shown a sequence diagram and was asked to describe the the sequence. There were 2 things in the diagram I had never seen before. I asked what one of them was ...
1
vote
0answers
23 views

How to specify OCL time constraints?

The article An OCL Extension for Real-Time Constraints describes and interesting extension to OCL for the specification of time constraints. New types OclConfiguration and OclPath are defined along ...
4
votes
1answer
106 views

Object-Oriented Analysis - Peter Coad / Edward Yourdon Notation

In the object-oriented analysis approach defined in Object-Oriented Analysis by Peter Coad / Edward Yourdon (Yourdon Press, 1991), a method is provided for analysing and modelling complex problem ...
2
votes
1answer
77 views

Class diagrams and frames

UML class diagrams (1st pic) and frames (which belong to knowledge representation and artificial intelligence) (2nd pic) look pretty alike. But do class diagrams exactly type of frames or they just ...
4
votes
1answer
167 views

How to correctly draw a UML class diagram with fully qualified association?

Given the following code I have to draw the corresponding class diagram: public class Shop { List<Client> clients; Storage store; User chief; Set<Invoice> invoices; } ...
5
votes
2answers
86 views

Should Modelling Document Analysis?

I use UML I, like most (I think), use UML as my main diagramming toolset. UML is clear and useful for representing OOP and has sufficiently diverse diagrams that there is something for whatever area ...
2
votes
2answers
132 views

Improving The Design Of A Simple Restaurant Client-Server Architecture (UML Diagram)

I have to design a simple server-client model for the billing system of some fictitious restaurant. After spending about 10-15 hours on the UML diagram, I haven't gotten that far. The main issue I ...
1
vote
1answer
43 views

Visibility notation in UML class diagrams

I'm reading about UML class diagrams and notation for visibility, and I can't tell if this book (Learning UML 2.0 by Russ Miles) has a typo or is just not explaining itself. Consider these two ...
0
votes
0answers
57 views

Concepting a Server - Handling Clients/Connections

I am writing the Server-Side of an Application, just for practicing my Java programming skills. I have made an attempt to program it, but I am not satisfied with my solution and I think it is because ...
0
votes
1answer
25 views

Can I use partitions of activity diagram to place activity instead of actions? [closed]

Im making an activity diagram and Im using activities instead of actions because Im not going into much detail in the steps being described. I want to separate the activities in the partitions but all ...
1
vote
1answer
80 views

UML specification, understanding code [closed]

I was reading the UML specification (http://www.omg.org/spec/UML/2.5/PDF) and I found here an there some "code" of this type: body: if alias->notEmpty() then alias else importedElement.name ...
0
votes
0answers
38 views

Can deployment diagrams have components in UML?

I have these two questions: Can deployment diagrams have components in UML? Can component diagrams have nodes in UML? I've seen many diagrams mixing diagrams elements and is making me confused.
2
votes
1answer
80 views

Is there a standard for this type of component diagram?

Came across this open source project called fruit. In the documentation are some diagrams of the code. Here is an example from the tutorial page: Is there a standard for this type of diagram or is ...
3
votes
1answer
43 views

How do I represent in UML two-way interface used by two connected components?

For an interface that can be used symetrically like for example interface **ipc** send() receive() Both components receive and send. How do I represent this in UML? Currently I am doing ...
1
vote
1answer
44 views

In UML, can a component be placed inside a node?

in UML deployment diagrams, the node element is used to represent a "computational resource" (in other words, something that can run software). I know that nodes may have other nodes placed inside ...
0
votes
1answer
203 views

How can attributes/annotations be illustrated on a UML class diagram?

Many programming languages offer a way to annotate types. For instance, in .NET this can be achieved by deriving a custom attribute class from System.Attribute and then annotating another type with ...
-2
votes
1answer
739 views

Sequence diagram should consist of View objects, DB objects, etc.?

What is the correct usage of UML sequence diagrams? Should they contain objects of View classes or DB classes? Or should they modeled in a more generalized fashion? Or is this completely arbitrary?
9
votes
2answers
483 views

Why is it inappropriate to use UML diagrams to plan how your code will be organized?

So, yes, diagrams can be inappropriate at times. When are they inappropriate? When you create them without code to validate them, and then intend to follow them. There is nothing wrong with ...
17
votes
3answers
1k views

Why is UML not used in most free software (e.g. on Linux)?

I'm trying to understand why UML is not used in most free software projects. For example, my Debian/Linux system has probably more than ten thousand free software packages, and I cannot name even one ...
5
votes
3answers
4k views

Do activity diagrams always end in one endpoint?

For example an activity diagram for a simple program: Get User data. If User Exists DO something, ELSE do nothing. End. I often see diagrams with multiple endpoints but also with just one. Should ...
21
votes
4answers
40k views

UML class diagram notations: Differences between Association, Aggregation and Composition

I'm confused about some of the notations of UML class diagrams. Pretty sure I know what Association means. Any relationship between instances of two classes, where an instance of one class needs to ...
1
vote
2answers
84 views

What is “recorded” relationship in a class diagram? [closed]

Composite aggregates Part, Container contains Content, and Recorder records. Recorded are all very common relationships between classes in a class diagram. Creator suggests that the enclosing ...
0
votes
0answers
48 views

UML Modeling - Creating flexible Pattern Viewer, extending context leads to too much changes

What I'm trying to make with jsp's java and servlets is a web based 'selector' for patterns. Here you can see all the design patterns there are (like www.oodesign.com). But for learning purposes I'd ...
5
votes
1answer
109 views

Client-side classes structure in UML project

I and two university colleagues of mine are designing a simple CMS software for a university exam using UML. Such software just needs to deal with sending an article, assigning an article for review, ...
4
votes
2answers
593 views

What are functional programmers using in place of UML?

I'm CS student. I am currently attending lectures, where we're taught Objective Analysis and Design. It consists mostly of writing use cases, analysing the problem that we can face when writing some ...
2
votes
4answers
121 views

Question regarding actors in a Use Case diagram

OK, so I have this homework question whereby we are given a rather complex system description and need to create several UML diagrams that describe the system being described. I'm having an issue ...
0
votes
2answers
208 views

ID in class diagram

As far as i know, we do not add an attribute like id to the classes in the class diagram. right? But when we create a database, or when we want to call an instance, we need its id, so why do not we ...
0
votes
1answer
250 views

Best way to design chess game [closed]

This is a theoretical question, and excuse me if it is not clear, I am new to this field. Thing is, I was asked to design a chess game in an interview (java/ android.) And my intuition was that P. ...
3
votes
2answers
223 views

UML class diagram symbol for a top-level function

In UML class diagram notation, how do I denote a top-level function that doesn't have any encapsulating class or other structure? e.g. I have a function used for retrieving data from a URL. Since it ...
3
votes
1answer
443 views

How do I represent a schema diagram of my MongoDB database?

I have a MongoDB database that I want to properly document its schema design. I know that MongoDB is a NoSQL database and is schemaless by nature, but I do enforce a schema through my application and ...
3
votes
1answer
132 views

is this use case well structure? [closed]

I'm trying to create a use case that make sense, and i am a little bit confused with the alternate path i think i am doing it in the wrong way, the system should tell the admin when a shared playlist ...
1
vote
2answers
90 views

Implementing an association between 2 classes

Consider the following association between the 2 classes . Here the association means, In the class Log I have an array of Traces. and in class Trace there is an object of Log. Here I have a ...
4
votes
1answer
192 views

UML: Should an asynchronous request-response message exchange be modelled as two ports/interfaces or one

I want to model an asynchronous request-response message exchange in UML. The request is sent from a client to a server. The server responses asynchronously. This can be modelled in a component ...