The Unified Modeling Language is the industry standard for modeling software-intensive systems.
0
votes
1answer
27 views
How would you draw this UML class diagram?
I'm currently trying to learn UML but I have trouble with this one. Lets say you have a container with cards, a container with players, and that player has also cards. How would you draw this in a ...
2
votes
3answers
274 views
Which approach is right doing use case first or classes first ? why? [duplicate]
There are people who prefer to do use cases first and then do the classes, but there are also some who prefer to do class diagram first and then use cases. So is it personal choice for convenience? ...
2
votes
1answer
41 views
Questions about UML in relation to the command pattern
http://www.oodesign.com/command-pattern.html
In reading through a tutorial about the command pattern, I came across a UML diagram that seems to omit some relationships. For the following diagram, the ...
0
votes
1answer
104 views
Are there two type of associations between objects or are there just different representations?
I've been spending some time on 're-tuning' some of my OOP understanding, and I've come up against a concept that is confusing me.
Lets say I have two objects. A user object and an account object. ...
0
votes
0answers
37 views
Using object flow and control flow in UML
I have a UML activity diagram below, where there are two ways are shown in which actions can be done.
Since the setting of values of a and b can be done any order before the action 2 is executed ...
1
vote
2answers
119 views
UML: Queue processor in a sequence diagram
Which is the appropriate way of representing a queue processor in a UML sequence diagram?
I want to represent in the same diagram two systems that are loosely coupled through a queue. The first ...
2
votes
1answer
274 views
Things developers do before the coding phase [closed]
I'm a new software developer, and in my internship my boss asked me to develop an application that allows him to manage his inventory. Something small but, for me, very enriching.
The application is ...
1
vote
3answers
92 views
UML Class Diagram: How can I represent “orthogonal” generalizations (or multi-inheritence)?
I try to represent in a UML Class Diagram the following object and features:
The Object: A System (e.g. an electronic device) that can be of Type A, B or C
If the System is of type A, it has a ...
0
votes
1answer
56 views
In UML is it correct to have an association class with a composition or aggregation relationship?
An example of an association class is given here:
http://pic.dhe.ibm.com/infocenter/rsarthlp/v9/index.jsp?topic=%2Fcom.ibm.xtools.modeler.doc%2Ftopics%2Fcassnclss.html
Composition and Aggregation ...
0
votes
1answer
59 views
What diagram would be the best to describe the situation
I am working on a software integrated with the hardware component. I need to create a simple diagram to express that:
Certain activity runs in a cycle (the device continously monitor a temperature) ...
2
votes
3answers
212 views
Sequence diagrams and the Implementation
In the design phase we create UML Sequence diagrams (in OOD). My understanding is that after creating an Use Case diagram if we need to show further information in terms of time sequence of events of ...
2
votes
2answers
140 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 ...
1
vote
1answer
78 views
Should state machine with synonym states be shown explicitly?
I am new to state machine modeling and while trying to model a system, I have a question.
An example will explain it better:
Considering a system that does calling (probably a customized cell phone ...
2
votes
1answer
185 views
How do you show the exception handler in a class diagram?
I have one exception handler class. I want to show this class in the uml -- class diagram. But, I do not know how to represent relationship between class <X> and exception handler class. How can ...
3
votes
3answers
210 views
is it valid that a state machine can have more than one possible state for some transition?
I have a requirement for a workflow which I am trying to model as a state machine, I see that there is more than one outcome of a given transition(or activity).
Is it valid for a state machine to ...
1
vote
1answer
81 views
What should be used to diagram an application's internal architecture?
I have an application that has several dependencies, including a Matlab library and a Microsoft Windows Media Player ActiveX control. How would I graphically depict the internal architecture of this ...
3
votes
3answers
271 views
Understanding UML composition better
The difference between Composition and Aggregation in UML (and sometimes in programming too) is that with Composition, the lifetime of the objects composing the composite (e.g. an engine and a ...
0
votes
0answers
33 views
How to model an optional input to an activity?
I am constructing a UML 2.0 activity diagram. The activity is to evaluate data from a usability study of a prototype. It can optionally end with just getting the user satisfaction results. But if the ...
0
votes
2answers
101 views
Buyer vs Seller on UML Model
I'm modeling an Online Classified System where, naturally, who sells also can buy and vice-versa.
The question is: should I have two different Actors, Buyer and Seller or I could have, say, an actor ...
3
votes
1answer
82 views
Access items of a container with a pattern
I've two C++ classes with a relation: a container class which has a list of items. For example a library has got many books. The classes are the library and the book.
Now from the external world I ...
2
votes
1answer
115 views
How deep is enough to represent an algorithm in UML sequence diagram?
I have three simple classes. LoginController, UsersCatalog and User. UsersCatalog has an array of User. I have to represent a simple process of login.
LoginController has a method login(username, ...
0
votes
0answers
61 views
How to implement 'use case control' object in (iOS) MVC?
In an MVC architecture pattern (for e.g., in iOS) there is a controller per view. In UML there is a concept of having Control object per use case to encapsulate an use case, which may span more than ...
0
votes
1answer
46 views
UML Diagram for Locations of Components
I am about to deploy a new project that will have different components being deployed on different servers and in different web sites/technologies/etc. I was just wondering what would be the best way ...
1
vote
2answers
110 views
How to handle long method names in sequence diagram?
I have a C# application that is developed with VS 2010 pro. The ultimate version would have a sequence diagram feature.
Since I will "create" my sequence diagram manually, how do I deal with quite ...
3
votes
2answers
130 views
UML class diagram: how to annotate observer-subject relationship?
How can I annotate in a UML class diagram that an instance of ClassA is registered as an observer of an instance of ClassB? (Both implement the appropriate interfaces).
This doesn't really belong in ...
0
votes
1answer
214 views
UML class diagram - instantiation dependency relationship: who depends on who? [duplicate]
I did some reading on the <<instantiate>> relationship in UML class diagrams. It's a dependency relationship where one side depends on the other.
However, I'm not sure who depends on who: ...
0
votes
1answer
71 views
What's the difference between model for test and model for development?
What's the difference between model for test and model for development?
Is it that the model for test contains only what we should test? Do we use the same diagrams in model for test and model for ...
0
votes
1answer
124 views
I want to draw class diagram, but I don't know how to put server and database inside? [closed]
I just started to draw class diagram, I think it is based on 3-tie architecture. I have mobile application, servers, database, and web interface.
But I do not know if it should put the server in? I ...
2
votes
2answers
1k 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 ...
2
votes
1answer
183 views
UML class diagrams: How to show dependency
Please consider a program with four classes: Class A, B, C and D.
Classes A and B are subclasses of abstract super-class C.
Class D is dependent on C. Meaning: It holds a C objectOfTypeC field.
As ...
-1
votes
1answer
109 views
Should I label class diagram variables as private or public?
In my program, I have several class variables whose access specifier is known as private package.
The default accessor specifier in Java is known as private package where it is accessible within the ...
0
votes
1answer
251 views
My UML class diagram is too complicated, what should I do?
Classes have 10-20 links with one another and you can't see anything in that mess of a diagram
Unfortunately we finished coding already and if we change the class diagram we have to redo the whole ...
-1
votes
3answers
200 views
How important is it to learn UML for an OO developer? [closed]
When studying OOP by myself I often encounter UML class diagrams. I understand them, but don't completely know how to write them.
Meaning, I don't entirely know what each kind of arrow means, and ...
0
votes
2answers
104 views
UML Class Diagram: Abstract or Interface?
I am modeling a class diagram and have spotted an opportunity to simplify it slightly. What I want to know is, would this it be better to implement an abstract class or an interface?
The scenario is ...
0
votes
1answer
43 views
Compatibility between Class Diagram and Sequence Diagram
Do the message being passed between objects in Sequence Diagram match with the methods in Class Diagram?
1
vote
2answers
137 views
How to capture “Display advertisement” use case?
What kind of use case it would be for to "show ad in part of the view"? Who could be the actor to relate with? User or System? As user has no specific goal to see ads, i am wondering what is the best ...
1
vote
3answers
207 views
Should we include external systems in Class diagram?
I want to draw a class diagram that shows the following for an application:
An external content management system that publishes some news items.
The class that represents the news item in my ...
1
vote
2answers
1k 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 ...
2
votes
2answers
200 views
Should I always start with UML as a good practice when designing classes?
I am in the middle of creating a Bundle for PHP application based on Symfony 2.
I want the bundle to be clear and good designed, so I constantly move and refactor code, rename methods, reorder ...
1
vote
0answers
103 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 ...
3
votes
1answer
253 views
Should JavaScript and PHP objects be treated as different objects in an interaction diagram?
I'm drawing a communication diagram for an application where you can buy books. I'm using domain-driven design and have a 'shop' object, a 'cart' object, and a 'book' object.
My first communication ...
1
vote
1answer
156 views
Sequence Diagram. UML “Use Case Ends”
I have a couple of questions about UML.
Firstly, how would you show "Use Case Ends" on a sequence diagram.
Secondly, if you have an alt in a sequence diagram for "Variable == false", would you need ...
-1
votes
1answer
111 views
What is meant by a step-by-step refactoring plan describing implementation of design [closed]
What is meant by a step-by-step refactoring plan describing how to
implement a certain design?
As little as I know about refactoring it regards improving a (UML) design model and has nothing to ...
1
vote
3answers
120 views
How to consider the login function collecting requirements of an application? is it a user requirement?
I am working on an application that expected to the user logs in when the application is started (as for example it is in Skype: the user open the application and appear to him a login mask when he ...
2
votes
2answers
434 views
Package diagram for an MVC patterned project?
We are required to make a package diagram for our senior project. Since our project uses MVC patter design, we created an MVC class diagram, now, our problem is in creating the package diagrams from ...
2
votes
3answers
244 views
Is UML a good way to shortly and simply explain a concept? [closed]
I was recently in a job interview that was mostly technical.
One of the things that stood out was my difficulty explaining ideas and concepts.
During the interview I decided not to use UML to ...
1
vote
1answer
97 views
How to depict Import a file action in the Sequence diagram
Everyone says sequence diagrams are so easy but I just cannot figure this out. Basically user clicks on an 'Import from temp folder' button, the program opens a window with a list populated with ...
0
votes
1answer
101 views
Class diagrams - do aggregated/composed classes automatically see each other?
Let's say that in the game, a player has a pet:
Player<>------Pet
Obviously player can access Pet's fields and methods, but I assume Pet does not know about the player?
I need that Pet can access ...
1
vote
1answer
280 views
UML class diagram - can aggregated object be part of two aggregated classes?
Some sources say that aggregation means that the class owns the object and shares reference. Lets assume an example where a company class holds a list of cars but departments of that company has list ...
2
votes
1answer
406 views
Is there a representation for mixins or traits on UML?
Is there a representation for modern programming constructs that are becoming common in modern OOP/hybrid languages like mixins/traits/categories/partial classes ?