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

learn more… | top users | synonyms

-1
votes
1answer
28 views

UML specification, understanding code

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
27 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
65 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
26 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 ...
0
votes
1answer
35 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 ...
-4
votes
1answer
40 views

How to define different associations and roles between 2 classes in a class diagram [closed]

Lets imagine this example: PROFESSOR <--- WRITE> --- BOOK and PROFESSOR <--- REVIEW> --- BOOK and PROFESSOR <--- IS AN EDITOR> --- BOOK How can I model those associations between these ...
4
votes
1answer
79 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; } ...
0
votes
1answer
146 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
694 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?
10
votes
2answers
419 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
777 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 ...
4
votes
3answers
3k 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 ...
16
votes
4answers
30k 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
47 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
80 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
419 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
97 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
78 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
169 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
100 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 ...
2
votes
1answer
159 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
131 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
87 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
95 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 ...
2
votes
0answers
55 views

How can I diagram data-locking scenarios?

There are many different types of charts and diagrams we use to formalize scenarios and study them tangibly -- activity diagrams, sequence diagrams, etc. I've been faced with a pretty complex locking ...
0
votes
1answer
62 views

What is the UML idiom for classes that are too big to fit into one box? [duplicate]

I am documenting an existing system using UML 2, and a few of the classes are too big to comfortably fit into a single class box. So far, I've resorted to breaking up the class into multiple boxes ...
1
vote
1answer
42 views

Do UML classifiers with the same name combine, or is that not allowed?

If you have multiple instances of a classifier with the same name, do they simply combine, or is that not allowed? For example, are these two equivalent? +-----+ +-----+ +-----+ | Bar | | Bar ...
0
votes
3answers
82 views

How to design a UML class diagram for two sub systems?

Currently I am working on a project which has two sub system: a web application and a web API (consumed by android app) and both being developed as separate project since the API system need to deploy ...
3
votes
3answers
3k views

How to use BPMN and use case and other diagrams together

I asked this question on stackoverflow, but it seems this question is not suitable there, so I post here for discussion. BPMN (Business Process Modeling Notations) is used for modeling business ...
1
vote
2answers
323 views

UML modeling angular controllers / factories and services

I have to create UML documentation for my upcoming project. Now I have previously worked with Java which as an object orientated language is relativly easy to design UML class diagrams for. For my ...
2
votes
1answer
48 views

Can I have two aggregations between two classes?

Note: this question is different from Can a UML class diagram show two different relationships between two classes? which is about two relations of different type. I have a Menu class which contains: ...
-1
votes
3answers
676 views

Are there any good reasons to use ER Diagrams instead of UML Class Diagrams for data modeling? Is ERD the COBOL of data modeling? [closed]

Are there any good reasons to use ER Diagrams instead of UML Class Diagrams for data modeling, given the fact that class diagrams subsume ER diagrams? Or is it just for historical reasons because ...
2
votes
3answers
4k views

UML representation of type being passed as a parameter

I want to draw a UML diagram of my program. Class Barney has a method Yabadaba(Doo d) which takes a parameter of type Doo. How do I represent that class Doo is used in class Barney in my UML diagram? ...
2
votes
2answers
177 views

How to show retry in sequence diagram

I am drawing sequence diagram for large integration project where one system will initiate the REST call to another system and there is a proxy in middle which will pass through the request like ...
0
votes
1answer
883 views

Is login a use-case for a user of a system?

I've been researching since my last project last semester and I haven't found a definitive answer for this question. Now I've got one more project to draw a Use-Case diagram and I'm still confused ...
5
votes
2answers
11k views

Are using <<include>> and <<extend>> relationship in this use-case diagram actually same?

I am trying to draw a UML use-case diagram to model requirements for a software project. The two requirements I have issue to model are: TravelAgent creates a booking for a [old] client who is ...
3
votes
2answers
399 views

What UML diagram should be used for modelling permissions/users/files in Linux?

If I am planning a structure for support testing in Linux, a structure that will contain packages, such files as shell and build scripts, app configurations, DBs, sources, tests and jars for to be ...
3
votes
1answer
276 views

Model of simple traffic simulation [closed]

I want to write a simple traffic simulation with one road intersection. First I thought of a cellular automata in the model but it should not be limited by an underlying discrete grid system so the ...
2
votes
1answer
265 views

UML Receptions and AcceptEventActions

What shall be the relationship between the receptions of a class (was classifier before Aadaam correction) and the AcceptEventActions in the activity describing the behavior of its instances? I ...
1
vote
1answer
87 views

UML : What is an Activity in an Activity diagram?

I am translating a Use Case diagram step into an Activity Diagram. Does every step of my UC diagram describe an Activity ? Is there one and only one Activity in an Activity Diagram ?
6
votes
3answers
10k views

Mapping between 4+1 architectural view model & UML

I'm a bit confused about how the 4+1 architectural view model maps to UML. Wikipedia gives the following mapping: Logical view: Class diagram, Communication diagram, Sequence diagram. Development ...
0
votes
2answers
165 views

What kind of design diagram is this?

Here is a kata for the Bowling Game problem. Slide 9 (below) shows a design diagram. But its not obvious to me which box is a class and which is a property or method from the makeup of the boxes ...
0
votes
1answer
170 views

Multiplicities and ternary relations in UML and ER

With entity–relationship diagrams, there are two conventions of denoting multiplicities, (I) and (II): Say, a teacher T is giving ‹G› some lectures L. Then we can either write this as 1 ...
2
votes
3answers
273 views

How do I show 'creates' in a UML class diagram?

Let's say my code is going to look like this: public class MyController { private Foo foo; private FooGenerator fooGen; //setters public void work() { this.foo = ...
0
votes
0answers
99 views

Class design for an app that reads data from Active Directory

I am hoping someone can help me regarding design and architecture for an application. The application is basically a service written in C#. The purpose of this service is mainly to read data from ...
1
vote
1answer
159 views

UML diagram for attributes that can have two different types

I have been to an interview for a financial programming job, and I could not answer to one question for sure. I thought about it again, but I really cannot find a good answer. They asked me to design ...
37
votes
11answers
5k views

Is code commonly generated from UML? [closed]

So when I was at university I was educated on the benefits of UML and its future in code development. But from my industry experience, I've found that while we do use diagrams—ranging from ER ...
1
vote
2answers
159 views

Can a UML class diagram show two different relationships between two classes?

I have a class which has an inner (nested) class. I have shown this relationship between the two classes in my class diagram. However, I am also using the inner class within the outer class... do I ...
1
vote
1answer
111 views

How to show link between a java class which gets JSON data from PHP script

I am trying to show the relationship that a java class has with a PHP script. The PHP script gets data from a database and then converts it into JSON format. This is then read by the java file. In my ...