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

learn more… | top users | synonyms

2
votes
2answers
57 views

Is it okay to simplify a Sequence Diagram (grouping lifelines)?

Is it okay to group several Components into a single lifeline for simplicity? For example, let's say I have a UML Component Diagram, and it's a layered architecture. There are 26 components, one on ...
2
votes
1answer
59 views

Design a program to download a facebook group data

I have a study facebook group which have a lot of information. The size is about ~10k post and 30k comments/replies etc... make it very hard to search on facebook itself. So I try to dump data to an ...
2
votes
1answer
27 views

Sequence diagram - unknown receiver of a message

Our lecture provides us students a quiz to revise the material learnt of the last study session. The answer to the following questions was stated as "Yes": "The receiver of a message does not have ...
4
votes
0answers
52 views

UML-diagraming a plugin architecture

I want to show that in my new system, plugins are used to control the core software components. What would be a good way to show that in UML? I will definitely use sequence diagrams to show ...
2
votes
1answer
39 views

What does the Kruchten 4+1 Process View implementation look like using sequence or activity diagrams?

Having read about the 4+1 Kruchten, I am required to document a system architecture using this concept. Instead of the notations proposed by Philippe Kruchten, we decided to go with UML instead. I am ...
1
vote
1answer
74 views

Should written use cases be consistent with use case diagram?

I'm developing a video web system like YouTube where users can upload, view, update and delete their own videos (CRUD operation). Original I drawn the use case diagram like this: But I learned ...
1
vote
1answer
61 views

UML: do I use aggregation or composition in this case?

I would like to draw a UML sketch to communicate part of a software but the type of relationship between classes does not seem very clear cut to me. Let's say I want to periodically fetch the recent ...
1
vote
0answers
27 views

Shared pointers across threads in UML for class and sequence diagrams

How does one represent shared pointers across threads in UML for class diagrams and sequence diagrams? I especially want to document the ownership of the memory even though it's accessibility (a ...
4
votes
1answer
50 views

How to visualize time trigger in activity diagramm?

I'm drawing an activity diagramm and I'd like to know how draw a timed trigger. My process is that when a task is created it should be done immediatly when it has a high priority or once a week if it ...
2
votes
1answer
50 views

Does a message in a UML sequence diagram have parameters or arguments? [duplicate]

I recently took an exam for the introductory course on Computer Science. One question was about sequence diagrams (very simple example, boiled down to its essentials): The Bank object sends a ...
4
votes
1answer
63 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 ...
2
votes
0answers
52 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, ...
1
vote
0answers
37 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
46 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 ...
3
votes
5answers
206 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
59 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
90 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
47 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
40 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
75 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
35 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
44 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
70 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 ...
0
votes
1answer
146 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 ...
1
vote
0answers
32 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 ...
2
votes
1answer
99 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 ...
5
votes
2answers
87 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 ...
1
vote
1answer
60 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 ...
4
votes
1answer
144 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 ...
0
votes
0answers
60 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 ...
2
votes
2answers
162 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 ...
0
votes
1answer
28 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
81 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.
3
votes
1answer
84 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
56 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
48 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
211 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; } ...
9
votes
2answers
541 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 drawing ...
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 ...
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
128 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
734 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
131 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
267 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
279 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
1answer
681 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 ...
4
votes
2answers
295 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
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 ...