Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 7 of 7

Thread: anyone familiar with uml? noob!

  1. #1
    Junior Member
    Join Date
    Mar 2013
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default anyone familiar with uml? noob!

    hi all i was wondering if there is anyone here familiar with uml as i am attempting to teach myself java and it has given me a problem to solve and was looking for a little help.

    many thanks


  2. #2
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    646
    My Mood
    Sleepy
    Thanks
    10
    Thanked 95 Times in 88 Posts

    Default Re: anyone familiar with uml? noob!

    What about asking your question? It won't help you if I answered that I know UML and ran away.

  3. #3
    Junior Member
    Join Date
    Mar 2013
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: anyone familiar with uml? noob!

    My question is basically a little more than a question lol. I have been given a problem and need to determine the objects/classes that need to be written to solve the problem, also determine the attributes/behaviours of each class and then I have to use uml to visually plan each class.

    The problem. Is,
    A car dealer wants a program that tracks the profits/ loss of each vehicle bought and sold. They categorize their vehicles into cars, trucks, vans. Their experienced sales people sell new vehicles, while the other sales people sell the used vehicles.whether a car is new or used, they keep track of the profits the same. However, a sales person who sells a new vehicle received a higher commission than for selling a used vehicle. Each vehicle sold is assigned a sales person to collect the commission. The car dealer wants to use the profit information to compute the commissions for each sales person at the end of each month.

    Could someone please give me a rough idea of how I would go about determining the classes and behaviours and such of this please?

    Also no this. Is not for a college course or anything and I am not cheating before anyone thinks that lol it is a course I paid for a few years ago and am now sitting to learn as I have discovered forums are so much better than tutors that never reply lol.

  4. #4
    Member Chris.Brown.SPE's Avatar
    Join Date
    May 2008
    Location
    Fort Wayne, Indiana
    Posts
    190
    Thanks
    1
    Thanked 31 Times in 31 Posts

    Default Re: anyone familiar with uml? noob!

    All of your nouns are objects. In your case it would be the vehicles and sales people it seems like. Attributes are any time you describe one of those things. "Cars, trucks, vans" sounds like you need a type attribute. Price paid, price sold for. all these things are attributes that can be applied to your object. Any action that happens between objects would be a function. So things like "sale" or "getCommission". Just start asking yourself those questions and the classes, attributes, and functions should just flow. Put it into a story (aka workflow) and that should help.
    Writing code is your job, helping you fix and understand it is mine.

    <-- Be sure to thank and REP (Star icon) those who have helped you. They appreciate it!

  5. #5
    Junior Member
    Join Date
    Mar 2013
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: anyone familiar with uml? noob!

    ok cool thankyou for explaining that to me. ill get to work on that and see what i come up with. as i said im just learning and there is a lot to take in lol. a little daunting really but im determined to learn. another question.... will java help me in app building?

  6. #6
    Member Chris.Brown.SPE's Avatar
    Join Date
    May 2008
    Location
    Fort Wayne, Indiana
    Posts
    190
    Thanks
    1
    Thanked 31 Times in 31 Posts

    Default Re: anyone familiar with uml? noob!

    What kind of "app" are you talking about? If you mean iphone or droid apps then i really dont know. I dont have any experience in that field.
    Writing code is your job, helping you fix and understand it is mine.

    <-- Be sure to thank and REP (Star icon) those who have helped you. They appreciate it!

  7. #7
    Junior Member
    Join Date
    Mar 2013
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: anyone familiar with uml? noob!

    you have abstract class vehicles and classes cars, trucks, vans are subclasses from vehicles.

Similar Threads

  1. Help with WSDL and UML
    By dsavatar in forum Java Theory & Questions
    Replies: 1
    Last Post: November 28th, 2012, 03:34 PM
  2. Need Help with this UML
    By Akirien in forum Object Oriented Programming
    Replies: 2
    Last Post: September 26th, 2012, 02:03 AM
  3. UML Diagram
    By calebite207 in forum Member Introductions
    Replies: 0
    Last Post: September 21st, 2012, 06:42 PM
  4. Anyone familiar with the swing timer?
    By BigJoe in forum AWT / Java Swing
    Replies: 5
    Last Post: December 28th, 2010, 12:15 PM