UML class diagrams ERGHHH!

Soldato
Joined
13 Jun 2009
Posts
4,581
Location
Chesterfield
Bloody don't get these class diagrams in the slightest.


My scenario is a recruitment website and the case im doing it on is the process of searching for a job.

So i have done all my level 1 and 2 cases quite easily. But i just don't get how to do this class diagram properly. I have the lectures power point next to me and its next to useless.

Has anyone got any experience with this? To be honest i dont even think it needs to be very complicated we just need to show all the different uses. So far all i have done is put down a few classes i know i need.

This is the Level 2 case its needs to be based off,


uzSAB.jpg.png
 
My lord, flash back. I haven't seen one of these since my second year of University in 2001. Show's how relevant they were to the real world.

As for any help, none here!
 
I can't be of any help... but good luck with it.

I remember doing these... I didn't understand them then.... and I still don't!
 
A class is basically an object you want to hold data about.

I'd imagine you'll have three main classes:-

Applicant (information about the applicant)
Job (information about the job)
JobApplication (this will keep track of which jobs an applicant has applied for, and on what date, and the status of that application etc)

The class diagram basically lays out that data, and any methods you'll have within/to act on a class... you don't have to specify how you'd code those methods, just that the methods would exist.
 
A class is basically an object you want to hold data about.

I'd imagine you'll have three main classes:-

Applicant (information about the applicant)
Job (information about the job)
JobApplication (this will keep track of which jobs an applicant has applied for, and on what date, and the status of that application etc)

The class diagram basically lays out that data, and any methods you'll have within/to act on a class... you don't have to specify how you'd code those methods, just that the methods would exist.

Yea this is exactly how i have don it so far
 
Doesn't the white arrow head mean generalisation/specialisation? Because a 'Search' isn't any kind of an 'Apply'.

I'd argue that apply doesnt use search as well.
 
Last edited:
51485971.png


Here's one i did last semester for a cash machine application i had to create using java. Baically just come up with some classes and give them some attributes (variables) and methods that might be within the class. Research the arrows i can't quite remember which one means what but its to do with relationships between the classes. The numbers represent one to one or many to one or one to many relationships between the classes.

Hope this helps.
 
... but UML is just so overkill. :)

i develop in Rhapsody. i draw out my implementation in UML and the tool auto generates the code for me. i then add small sections of code manually.

UML can be overkill, but it can be a great way to communicate ideas.
and with model driven development you can design and implement a solution in one stage, with no need to prove the implementation fulfils the design, it is the design.
 
What do you lot use instead of UML? UML has far too many different diagrams nowadays which makes it extra fun (read: annoying) :p.
 
What do you lot use instead of UML? UML has far too many different diagrams nowadays which makes it extra fun (read: annoying) :p.

I'm a lead business analyst/Techncal product manager/Scrum master/office gimp

Do you know what we use?
Photos taken with my phone of the whiteboard while were discussing functionality, maybe some screen mockups, some scenarios, spreadhseet with meta data fields and use cases and possibly some acceptance criteria. Anything that gets the message across loud and clear.

Although I must say that the devs do produce a class diagram like the above mentioned, or DB schema
 
Last edited:
Back
Top Bottom