Results 1 to 8 of 8

Thread: UML diagram

  1. #1
    JackDaniels is offline Member
    Join Date
    Mar 2011
    Posts
    4
    Rep Power
    0

    Question 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:
    Java Code:
    if (FLAG==1){
    plane=military;
    else
    plane=civil;
    }
    etc...
    Can you guys help me with the relationships and dependencies and with the operations?
    Thanks :)

  2. #2
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    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?

  3. #3
    JackDaniels is offline Member
    Join Date
    Mar 2011
    Posts
    4
    Rep Power
    0

    Default

    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.

  4. #4
    mobosecomin is offline Member
    Join Date
    Oct 2010
    Posts
    23
    Rep Power
    0

    Default

    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 .

  5. #5
    JackDaniels is offline Member
    Join Date
    Mar 2011
    Posts
    4
    Rep Power
    0

    Default

    Thanks I will think a little more and I'll write again if I need more help.

  6. #6
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    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.

  7. #7
    JackDaniels is offline Member
    Join Date
    Mar 2011
    Posts
    4
    Rep Power
    0

    Default

    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.

  8. #8
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    to me it looks pretty good. However, like I said before I do not have a deep understanding of UML.

Similar Threads

  1. How to generate Data Flow Diagram(Work Flow Diagram)
    By stsivaraj in forum AWT / Swing
    Replies: 1
    Last Post: 12-22-2010, 11:21 PM
  2. XML ER diagram
    By palrakesh in forum XML
    Replies: 0
    Last Post: 06-07-2010, 07:48 AM
  3. UML Diagram creation!
    By renegadeandy in forum New To Java
    Replies: 16
    Last Post: 04-10-2009, 04:37 AM
  4. plz i need help ((ER diagram))
    By sweet angle in forum JDBC
    Replies: 9
    Last Post: 02-01-2009, 10:28 PM
  5. UML diagram
    By jvasilj1 in forum New To Java
    Replies: 4
    Last Post: 03-08-2008, 06:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •