No association lines in class diagram
In my class diagram, there are no association lines connecting the classes.
I notice that in the BankApplication tutorial, the class diagram has full lines and dashed lines. The structure in the "Model" folder is different from mine. Will this have any effect?
Model
bankpac
BankAccount
Checking
etc
My structure is:
Model
org
CompanyName
sample
Class1
Class2
Class3
etc
"Class1" contains "main"
I selected everything under "Model".
# 2
TreySpiva wrote:
> How did you create your model?
1) File > New Project
2) In Categories, click UML.
3) In Projects, click Reverse Engineer a Java Project
4) Click Next
5) Specify Project Name
6) Browse to Project Location
7) Select the java project from the drop-down menu.
# 3
Your different package structure should have no effect on the association drawing. What exactly are the relationships among those class elements? Do you see them under
Model
org
CompanyName
sample
Class1
Relationships
If they are listed under project tree but not shown on diagram, then it could be something wrong with diagram presentation logic, otherwise, we need to have your sample source code to investigate Reverse Engineer procedure.
# 4
sherylsu wrote:
> If they are listed under project tree but not shown on diagram, then it could be something wrong with diagram presentation logic
The relationships shown in the model tree are the same as shown in the class diagram. That is consistent.
I think the issue is due to way my non-techie mind works.
Here is how I produce diagrams. Most of the projects are samples for a manual, so only contain one class.
1) I select the (only) class for a project, and create the dependency diagram.
2) From the dependency diagram, I reverse engineer every operation for that class in sequence diagrams.
Obviously, the master class sends messages to many other instances of many other slave classes. I assumed that the class diagram for the master would show the aggregation of all the slave classes that appear on all the sequence diagrams. Even if the internal structure of the slave classes (attributes, operations) would not be known, at least the class names would be known.
Even after reading "UML Distilled" and reading the Agile web pages, I still think that would be the case.
It seems that Studio only displays a slave class on the class diagram if the internal structure of the slave is known. Maybe that's the correct convention.
# 7
Can you somehow give us an example. I know that when I reverse engineer a class that has data members, that I those data member either show up as attributes (if they are primitive types), or they show up as associations (if they are not primitives).
Message was edited by:
TreySpiva