0
votes
0answers
23 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
102 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 ...
1
vote
2answers
459 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
votes
1answer
89 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
226 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
183 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
87 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
39 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
3answers
131 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
0answers
99 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 ...
2
votes
2answers
404 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 ...
0
votes
1answer
98 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
263 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 ...
0
votes
2answers
305 views

How to indicate that a class might implement an interface?

Say I have a class User and an interface Administrator. Some users are administrator and can thus implement the interface. Most aren't, however, so it's false to say that "User implements ...
2
votes
2answers
148 views

How can I indicate if an object operates with another one in an UML class diagram?

Suppose I want to draw a class diagram of a DAO and an Entity. The DAO is used to load instances of the Entity from the database. How can I represent this relationship on my class diagram? Is this ...
5
votes
1answer
205 views

How to display in compositional relationship that the item knows about the container?

I'm drawing a class diagram and noticed that sometimes I got a relationship (composition or aggregation) where the item uses the container, and sometimes not. What is the visual difference in a ...
2
votes
3answers
442 views

What to use in UML for included module in ruby?

I like to create simple class diagrams for my projects. Most of the time I just use composition, inheritence and associations. IMB's basic UML resource tells all about this. However I'm using ruby so ...
1
vote
1answer
531 views

UML Class diagram confusion

I am learning how to draw a UML class diagram and after reading a few tutorials, I am still confused about the appropriate usages of Association type (The clear diamond and black diamond). I ...
1
vote
1answer
185 views

Should dependency relationships always be shown on class diagrams

I recently started using the Object aid UML generator plugin for Eclipse and noticed that by default adding of dependency relationships is switched off. This made me wonder if in most cases they ...
3
votes
5answers
918 views

What classes to put exactly in a class diagram?

What classes must I put in a class diagram? Only classes used in Business Layer and associations between them? Or also other classes in the Data Access Layer, Service Layer, etc.?
0
votes
3answers
517 views

UML - Class Diagrams Order -> Products

I have a class diagram that is like this: < Order > (1) CAN HAVE (M) < products > But therefore Order has the following: Order_Id Customer_Id Order_date_day Order_date_month ...
0
votes
1answer
938 views

Class Design and Structure Online Web Store

I hope I have asked this in the right forum. Basically, we're designing an Online Store and I am designing the class structure for ordering a product and want some clarification on what I have so ...
0
votes
1answer
500 views

How can I use UML to model a relationship between two classes, where one has functions exposed as friend to the other?

I have a two classes: ------------ --------------- X Y ------------ --------------- ...
3
votes
2answers
8k views

What does the arrow mean in a Class Diagram?

I need help trying to understand what the meaning of the arrow in a UML Class Diagram is, more specifically in this Composite Diagram. What's the difference between the simple line (from a class to ...
1
vote
2answers
285 views

How show Attributes which appear In Many To Many association

As we know a many to many association are shown by two asterisks in both end of association. Now I have a association between two entities "Good" and "Invoice" so Good and Invoice have a many to many ...
2
votes
1answer
883 views

UML representation of specific factory pattern

I have to create an UML class diagram from the following example code (Perl). I don't think that the standard factory pattern match in my case or I don't understand it correctly. I don't have ...
1
vote
4answers
2k views

best way to handle a many to many relationship?

I am drawing a class diagram and I want to know what's the proper notation for many to many relationship between supplier and product? Should I show the table created supplier_product or leave it out ...
0
votes
3answers
377 views

Review my class hierarchy [closed]

I have created a class hierarchy for an inventory system for a book/magazine. Here's the picture: Will it do? I know there's no magazine class yet but I was wondering if anyone could suggest a ...
0
votes
1answer
78 views

How to link classes in different packages (on different pages)?

Extending the answer to this question, I have broken down a large system into a few classes per package. Each package is now shown in a different page for readability, but now how do I show the ...
3
votes
3answers
2k views

How do you annotate instantiation in UML class diagrams?

Given this pseudo code: class B { } class A : B { int val; }; alpha = new A(); What arrow do I draw between alpha and A in a UML class diagram? Is this even something UML is meant to do? ...