Results 1 to 8 of 8
Thread: UML diagram
- 03-07-2011, 10:01 PM #1
Member
- Join Date
- Mar 2011
- Posts
- 4
- Rep Power
- 0
UML diagram
Hi guys.
I hope I picked the right place to ask this.
I have some questions about very long diagram that I have to make. In short lines the task is this:
airplanes and airports.
The airports have these characteristics:
One runway and multiple hangars.
Some of the airports are only military.
The airplanes have these characteristics:
Capacity.
Speed.
Max time for departure.
Time for maintenance in hangars.
Name.
The plains are divided to military and civil planes. The military and civil are divided to cargo and passenger planes.
Passenger planes nave number of seats and the cargo have max capacity.
So far I have this:
ImageShack® - Online Photo and Video Hosting
About the military and civil plane, I think that a flag will do the trick like this:
Can you guys help me with the relationships and dependencies and with the operations?Java Code:if (FLAG==1){ plane=military; else plane=civil; } etc...
Thanks :)
- 03-07-2011, 10:07 PM #2
- Join Date
- Jan 2011
- Location
- Richmond, Virginia
- Posts
- 3,069
- Blog Entries
- 3
- Rep Power
- 7
You could use a flag, or you could use inheritance with a base class of airplane. What exactly can't you figure relationships out for?
- 03-07-2011, 10:14 PM #3
Member
- Join Date
- Mar 2011
- Posts
- 4
- Rep Power
- 0
Well I really wanted to ask do I need more classes, and also compositions and associations?
And which operations to use? It should be a class diagram.
- 03-08-2011, 12:02 AM #4
Member
- Join Date
- Oct 2010
- Posts
- 23
- Rep Power
- 0
you should take a look at Aggregation/Composition for the runways and hangars. its the "part of" or "has a" relationship. Its the line with a diamond on the end .
- 03-08-2011, 01:53 AM #5
Member
- Join Date
- Mar 2011
- Posts
- 4
- Rep Power
- 0
Thanks I will think a little more and I'll write again if I need more help.
- 03-08-2011, 02:09 AM #6
- Join Date
- Jan 2011
- Location
- Richmond, Virginia
- Posts
- 3,069
- Blog Entries
- 3
- Rep Power
- 7
Sorry about the mediocre advice earlier. I had not looked at your uml at the time(was using a phone and I was being lazy)
I a really don't know uml that well, I can understand basic uml diagrams but I don't understand the all the details.
Your diagrams don't look half bad, but how about some methods? What can planes do? What can airports do? Think of other things your classes can do and add them as methods in the uml.
- 03-08-2011, 03:08 AM #7
Member
- Join Date
- Mar 2011
- Posts
- 4
- Rep Power
- 0
No problem. Well, so far I came to this:
ImageShack® - Online Photo and Video Hosting
I know it needs some more work, especially with the methods, but for now it's ok.
- 03-08-2011, 03:11 AM #8
- Join Date
- Jan 2011
- Location
- Richmond, Virginia
- Posts
- 3,069
- Blog Entries
- 3
- Rep Power
- 7
Similar Threads
-
How to generate Data Flow Diagram(Work Flow Diagram)
By stsivaraj in forum AWT / SwingReplies: 1Last Post: 12-22-2010, 11:21 PM -
XML ER diagram
By palrakesh in forum XMLReplies: 0Last Post: 06-07-2010, 07:48 AM -
UML Diagram creation!
By renegadeandy in forum New To JavaReplies: 16Last Post: 04-10-2009, 04:37 AM -
plz i need help ((ER diagram))
By sweet angle in forum JDBCReplies: 9Last Post: 02-01-2009, 10:28 PM -
UML diagram
By jvasilj1 in forum New To JavaReplies: 4Last Post: 03-08-2008, 06:29 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks