draw UML for java application

H

HS1

Hello all

I have to draw UML (class diagrams) by using Rational Rose for a java
application (like a small supermaket application). Could you please give me
some suggestions to do that: where to start, what I need....
Please note that I am not the person who developed the software.

Thank you
S.H1
 
D

Dag Sunde

HS1 said:
Hello all

I have to draw UML (class diagrams) by using Rational Rose for a java
application (like a small supermaket application). Could you please give me
some suggestions to do that: where to start, what I need....
Please note that I am not the person who developed the software.

You could try to download jBuilder X Enterprise trial version from Borland,
load the sourcecode into it, and click on the UML tab at the bottom of its
editor window... (Just to see what JBuilder suggests...).
 
R

Richard Chrenko

Hello all

I have to draw UML (class diagrams) by using Rational Rose for a java
application (like a small supermaket application). Could you please give
me
some suggestions to do that: where to start, what I need....
Please note that I am not the person who developed the software.

Thank you
S.H1

What exactly is your question? Do you want to develop a new application
from scratch by designing its class structure in UML and then generating
the corresponding Java code? Or do you want to use UML to visualise the
structure of an existing Java project? Either way, Rose can help you.
 
T

Thomas Weidenfeller

HS1 said:
Hello all

I have to draw UML (class diagrams) by using Rational Rose for a java
application (like a small supermaket application). Could you please give me
some suggestions to do that: where to start, what I need....


(a) Learn UML - at least the most important diagram types

(b) Learn object-oriented analysis and design, the UML way, or any other
well established way.

(c) Learn how to operate Rational Rose

(d) Learn Java

(e) Design your application
Please note that I am not the person who developed the software.

This is bad. The whole situation is bad. You are apparently
inexperienced, so the poor programmer will get something of questionable
quality as input. There is an old rule: "Garbage in, garbage out". So
better don't expect a real good application as the result. I will spare
you my critics of UML (UML is helpful in some cases, but is definitely
not the silver bullet, and has some week areas), but UML might well
contribute to your problems. And please don't believe that using a tool
will allow you to skip learning UML and OOA/OOD.

Good luck, I think you need it.

/Thomas
 
T

Tor Iver Wilhelmsen

HS1 said:
I have to draw UML (class diagrams) by using Rational Rose for a java
application (like a small supermaket application). Could you please give me
some suggestions to do that: where to start, what I need....

The people to told you you "had to" use Rational Rose has probably
seen fit to provide you with that expensive resource hog, so just
install it, and create a new project there, with Java as the default
language.
 
H

HS1

Thanks
I have some skill java, rational rose, uml and need to visualize a existing
java project and I need the best way to do that.
 
H

HS1

Thank you
I know a little about Rational rose for drawing UML class diagram. I did not
know I can export to uml class diagram from a existing java project using
JBuilder
I will try
 
D

Dag Sunde

<Top posting fixed>
HS1 said:
Thank you
I know a little about Rational rose for drawing UML class diagram. I did not
know I can export to uml class diagram from a existing java project using
JBuilder
I will try

It wasn't Mr. Wilhelmsen who suggested JBuilder, it was I. And I did not
say you could export uml class diagrams, but that it will show you the class
diagram of the selected package or class onscreen.

You can save the current diagram as a .png file.
 
R

Richard Chrenko

Thanks
I have some skill java, rational rose, uml and need to visualize a
existing
java project and I need the best way to do that.

1. Read the project documentation and get a rough idea how the project is
structured
2. Reverse engineer the java classes into a Rose model using
"Tools:Java/J2EE:Reverse engineer..." and selecting the appropriate
directories
3. Generate diagrams from the imported class information by:
a. dragging and dropping the desired classes/interfaces from the
"Logical View" tree onto the diagram
b. dragging the class(es) of interest onto the diagram and then using
"Query:Expand selected elements..." to automatically display all classes
satisfying certain relationship criteria such as type, access and
recursion depth (careful as Rose will suck in your entire project if you
don't select carefully!!!)
4. Layout the diagram by using "Format:Layout diagram" and
"Format:Autosize all." For any reasonably complex project, you will either
need to generate multiple diagrams corresponding to various parts of the
application, or have a cinema-sized wall to hang a single digram of the
entire project.
 
H

HS1

Thank you
I tried your method and it helps me. In fact, I did not notice about this
feature in JBuilder
 
A

Alex Hunsley

Thomas said:
HS1 said:
Hello all

I have to draw UML (class diagrams) by using Rational Rose for a java
application (like a small supermaket application). Could you please
give me
some suggestions to do that: where to start, what I need....
[snip]

This is bad. The whole situation is bad. You are apparently
inexperienced, so the poor programmer will get something of questionable
quality as input. There is an old rule: "Garbage in, garbage out". So
better don't expect a real good application as the result. I will spare
you my critics of UML (UML is helpful in some cases, but is definitely
not the silver bullet, and has some week areas), but UML might well
contribute to your problems. And please don't believe that using a tool
will allow you to skip learning UML and OOA/OOD.

Good luck, I think you need it.

/Thomas


It does look like a dodgy situation for him to be in! That, and the
mention of "a small supermarket application" (amongst other things)
makes me think this is actually homework. Well, I *hope* it's homework,
and this isn't a real situation here where they're getting someone to do
UML who doesn't seem to be up on the whole thing...

alex
 
T

Thomas Weidenfeller

Alex said:
It does look like a dodgy situation for him to be in!

Yes, it looks like this.
That, and the
mention of "a small supermarket application" (amongst other things)
makes me think this is actually homework. Well, I *hope* it's homework,
and this isn't a real situation here where they're getting someone to do
UML who doesn't seem to be up on the whole thing...

Well, I was assuming it was real work. That's why I called it "bad", and
wished him all the luck he could get.

/Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top