1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

UML to Java Code Help

Discussion in 'Java' started by silviatodorof, Dec 31, 2011.

  1. silviatodorof

    silviatodorof New Member

    Joined:
    Dec 31, 2011
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Please, anybody can help me in my assignment. I tried it many times, but I couldn't do it.
    /*************************************/
    [FONT=&quot]Title: Doctor Appointment[/FONT]​

    • [FONT=&quot] [/FONT][FONT=&quot]Show all the hospitals.[/FONT]
    • [FONT=&quot] [/FONT][FONT=&quot]Choosing a specialization they want to book a doctor appointment.[/FONT]
    • [FONT=&quot][/FONT][FONT=&quot]Choosing a doctor from the list of doctors.[/FONT]
    • [FONT=&quot] [/FONT][FONT=&quot]Show all the reservations for a particular customer.[/FONT]
    • [FONT=&quot][/FONT][FONT=&quot]Check availability of dates and time they need the appointment.[/FONT]
    • [FONT=&quot][/FONT][FONT=&quot]Fix appointment date and time.[/FONT]
    [FONT=&quot] [/FONT]
    [FONT=&quot]Forms[/FONT][FONT=&quot]:[/FONT]

    1. [FONT=&quot] [/FONT][FONT=&quot]Form needs a main menu shows links to other forms.[/FONT]
    2. [FONT=&quot][/FONT][FONT=&quot]Form for registration new patient.[/FONT]
    3. [FONT=&quot][/FONT][FONT=&quot]Form for reservation.[/FONT]
    4. [FONT=&quot][/FONT][FONT=&quot]Form to login already registered patients.[/FONT]
    5. [FONT=&quot] [/FONT][FONT=&quot]Form to show (all hospitals, all departments/specialization) according to user selction.[/FONT]
    [FONT=&quot]
    [/FONT]
    ยท [FONT=&quot]There should be a link from each form to the main menu.[/FONT]
    [FONT=&quot]
    Use the object oriented design paradigm to design and develop a Java program to meet the above requirements.[/FONT]

    • [FONT=&quot] [/FONT][FONT=&quot]A UML Use Case Diagram for the system. [/FONT]
    • [FONT=&quot] [/FONT][FONT=&quot]A UML Class Diagram for the system. [/FONT]
    • [FONT=&quot][/FONT][FONT=&quot]A UML Sequence & Collaboration Diagrams for the system. [/FONT]
    /*************************************/
     
  2. ewaldhorn

    ewaldhorn New Member

    Joined:
    Feb 16, 2010
    Messages:
    36
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Developer
    Location:
    Cape Town, South Africa
    Home Page:
    If you could post your code effort and explain what your problem is, perhaps someone could help you.
     
  3. silviatodorof

    silviatodorof New Member

    Joined:
    Dec 31, 2011
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Re: UML to Java Code Help (1/2)

    The attached code is working. I tried to create UML diagrams using NetBeans. Individual components were created but not connected as proper UML diagrams.
     

    Attached Files:

  4. silviatodorof

    silviatodorof New Member

    Joined:
    Dec 31, 2011
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Re: UML to Java Code Help (2/2)

    The attached file explains how I tried to create UML diagrams
     

    Attached Files:

  5. ewaldhorn

    ewaldhorn New Member

    Joined:
    Feb 16, 2010
    Messages:
    36
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Developer
    Location:
    Cape Town, South Africa
    Home Page:
    NetBeans UML reverse engineering has never really worked well, I don't think it's supported in the later versions anymore. Not by default anyway.

    I do wonder though, what IS the relationship between your classes? UML shows the inheritence between objects, and most of your classes seem to be pretty independent? They do not extend any other classes?

    Your best bet would be to import into into ArgoUML and set up the links yourself if it does not create them by default.
     

Share This Page