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

learn more… | top users | synonyms

0
votes
1answer
52 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
28 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; } ...
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
779 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 ...
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
421 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
170 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. ...
2
votes
1answer
164 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
2answers
101 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 ...
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
96 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 ...
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
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 ...
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 ...
1
vote
2answers
328 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
49 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: ...
2
votes
2answers
180 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
894 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 ...
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
1answer
88 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 ?
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
172 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 ...
0
votes
0answers
100 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 ...
2
votes
3answers
274 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 = ...
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 ...
1
vote
2answers
160 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
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 ...
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 ...
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 ...
1
vote
2answers
93 views

Forming heavy use case diagram

We have a use case diagram for our software engineering course project that we have many use cases in every system and about 5-6 actors. How should we separate this heavy diagram to light weight ...
3
votes
1answer
527 views

Notifications in Use-case Diagrams

I'm writing a use-case diagram in which an actor gets a notification. My question is similar to this one except that I'm not sure if my notification use-case is a crosscutting concern. Suppose my ...
1
vote
1answer
123 views

Inheritance vs Class Diagram [closed]

What is the difference between an inheritance diagram and a class diagram in UML? For the Computer Science A Level (a British test administrated by Cambridge University, so it's possible that this ...
2
votes
0answers
333 views

Var assignment in sequence diagram

I am trying to represent the function below (PHP function/Symfony2) as a sequence diagram using UML 2.0 and Visual Paradigm: private function getVeevaHcpSync($request, $action, $case) { ...
2
votes
1answer
214 views

ER Diagram Multiplicity (UML)

Schema: #=PK Employee (#NIN, fName, lName, address, DOB, sex, salary, taxCode, deptNo) Department (#deptNo, deptName, managerNIN, businessAreaNo, regionNo) Project (#projNo, projName, contractPrice, ...
3
votes
1answer
192 views

UML: How to implement a template interface?

Suppose I have an aggregate type and I want to use it in conjunction with a template iterator. The following C# code gives an exact example of my model: public interface Iterable<T> { ...
1
vote
0answers
157 views

UML diagram for SSIS process

I'm trying to do some technical documentation and would like to include some diagrams to better explain the processes in the system. The process I'm currently trying to describe is the following: ...
1
vote
0answers
214 views

How Generate sequence diagram from xmi file

I know we can generate an xmi file from a sequence diagram, but for inverse, I want to know if we can generate a sequence diagram from a xmi file with any tool(ie write my own code as xmi file which ...
3
votes
1answer
280 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 ...
1
vote
1answer
455 views

How to represent a multiple choice attribute in UML class diagram?

I'm modelling a Filter class that stores the options for filtering a search. Some of the attributes are multiple choice. For example, if you are filtering hotel rooms you have a Price attribute that ...
1
vote
2answers
285 views

Confusion about associations in UML class diagram

--------------------- ---------------------- | FLIGHT | | STEWARD | --------------------- ---------------------- | Arrival time | | Steward ID | | ...