Book a Demo

Author Topic: trouble with uml  (Read 7022 times)

luly

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
trouble with uml
« on: July 19, 2005, 03:19:07 pm »
I have to make a class diagram, usercase diagram, and a sequence diagram from a book exchange.
the cases are
lend a book
return a book
remove a book
add customer
update or remove customer.
I really do not have any idea of this, because all this is new for me.
I need help urgently :-[
thank you all ;)

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: trouble with uml
« Reply #1 on: July 19, 2005, 03:51:02 pm »
Luly,

Answering a question like this is a bit beyond the abilities and time constraints of the people on this forum.

I presume your "have to" also includes an undisclosed time constraint - i.e. "by next Wednesday" or something.

In reality, its going to take a much longer time than next Wednesday to achieve this.

I have to ask you two things:
1) Why do you "have to" make these things?
2) What will "making" these things achieve?

bruce

« Last Edit: July 19, 2005, 03:51:30 pm by sargasso »
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.

luly

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: trouble with uml
« Reply #2 on: July 19, 2005, 08:43:22 pm »
Thank you for your concern.
I have to make an assignment for a Java course that I am taking.
It is for this Friday. This is the first time that i have heard of uml and i am trying to understand it. Please do not misunderstand me. All i need are some hints on how to do it.
Thank you again.
Luly ??? :-[

mikewhit

  • EA User
  • **
  • Posts: 608
  • Karma: +0/-0
  • Accessing ....
    • View Profile
Re: trouble with uml
« Reply #3 on: July 20, 2005, 12:36:17 am »
If "it's all new for you" then your course cannot be much good - or maybe you're on the wrong course.

Or maybe you're expected to go to the library and study the books there.

This book is a good fast-start:
UML Weekend Crash Course (Pender)  Wiley Publishing ISBN 0-7645-4910-3 [not UML 2]

If you've been given that assignment, then the teacher must believe you have been given enough information in the course to complete it, so check everything you've been given and your notes.

Or even, just say to the teacher that you don't have any idea - where should you start ? That's what teachers are there for !
« Last Edit: July 20, 2005, 02:27:00 am by mikewhit »

luly

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: trouble with uml
« Reply #4 on: July 20, 2005, 11:57:01 am »
Hi Mike
Thanks for your advise. I currently starting with the class and  i have been researching about UML. Hopefully I will get to understand what I have to do.  But if some one can help me in this I will be very grateful. This is what i need for the uml of the book store
UML Use Case diagram (2)
UML Class diagram
UML Sequence diagram for a particular Use Case of your choice (focusing on specific Use case scenario -- and providing text description of its logical steps).
UML Sequence diagram
thank you
Luly :D

mikewhit

  • EA User
  • **
  • Posts: 608
  • Karma: +0/-0
  • Accessing ....
    • View Profile
Re: trouble with uml
« Reply #5 on: July 21, 2005, 01:26:11 am »
So - come on (as Jeremy Paxman would say on University Challenge) - what should a book exchange system do ?

What are all the different jobs you would expect it to do ?

What are the steps involved in each one ?
The different situations that might need to be dealt with ? Are you going to deal with everything, or just show a subset of the system, for simplicity ?

My earlier post showed I had not read your first posting !

Basically for your required use cases:
  • lend a book
  • return a book
  • remove a book
  • add customer  
  • update or remove customer
you have to itemise the stages in each case, and show who/what is involved (Actors).

From this you then need to identify the class objects (e.g. customer, book ?) and what details (customer name, book name ...) and operations (add, lend, return ...) can be specified for each one - hence the class description, showing any relationships between the classes, if any.

Then your sequence diagram will show a typical set of operations occurring between two class instances, e.g. to lend a book - validate customer, add book to customer's account if borrowing limit not reached, etc.

Don't take any of those above paragraphs above literally, you will need to do your own investigation, and reading of a UML tutorial.
« Last Edit: July 21, 2005, 09:58:28 am by mikewhit »

luly

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: trouble with uml
« Reply #6 on: July 21, 2005, 09:37:22 am »
Hi Mike ;D
I finally getting the idea of what to do. You have been very helpful.
http://Luly :D

TrtnJohn

  • EA User
  • **
  • Posts: 176
  • Karma: +0/-0
    • View Profile
Re: trouble with uml
« Reply #7 on: July 21, 2005, 04:33:12 pm »
*rant*

At least your class is going over UML and design. Half the college kids I interview were taught to code as fast as possible and don't have a clue what a Use Case is.   My advise is to get as much as you can out of this assignment.  IMHO it is more important than learning the programming language itself.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: trouble with uml
« Reply #8 on: July 21, 2005, 04:35:36 pm »
Quote
*rant*

At least your class is going over UML and design. Half the college kids I interview were taught to code as fast as possible and don't have a clue what a Use Case is.   My advise is to get as much as you can out of this assignment.  IMHO it is more important than learning the programming language itself.

Seconded (and Thirded!)

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!