RE: [UML Forum] Understanding Relationships for Class Diagram
Regards,
Sanjay Amin
Wipro Technologies
+91-20 30 96 02 07 (O) | +91-95 27 00 27 37 (M) | 8540207 (VOIP)
-----Original Message-----
Behalf Of H. S. Lahman
Sent: Wednesday, July 14, 2010 8:47 PM
To: umlforum@googlegroups.com
Responding to sanjay.amin...
And it was answered in my previous message. Evidently I was not clear
AW: [UML Forum] Understanding Relationships for Class Diagram
If you're creating a global attribute of Class B within Class A, this can be
achieved by an association. But an association doesn't indicate the calling
of an operation. Therefore, you must make use of a behavioral description in
the classifier behavior. Within classifier behavior you're able to describe
Re: [UML Forum] Understanding Relationships for Class Diagram
And it was answered in my previous message. Evidently I was not clear
enough, so I will try again...
This *sounds* like composition; B is part of A's implementation and
therefore A control's B's disposition (life cycle). But, as I explained
in my previous message, it depends on the OOPL you are modeling (i.e.,
RE: [UML Forum] Understanding Relationships for Class Diagram
My question is very simple.
- I have a class named A
- I have a class named B
- I am creating an instance of class B inside class A
- I am calling a method of class B inside class A after
creating an instance of class B
- I am using an output of the operation of B in class A for
Re: [UML Forum] Understanding Relationships for Class Diagram
For myself if I would usually expect a Java instance variable that refers to
some classes to be an association of some type (providing that class isn't
just a data type).
With your example though you have an instance variable that isn't actually
being used by any method. It such it serves no purpose as object state so I
RE: [UML Forum] Understanding Relationships for Class Diagram
There are some problems with your example. Create it, compile it, and see
if it works.
I think the point you are asking is whether A is Dependent upon B's name.
Am I correct?
"A dependency is a relationship that signifies that a single or a set of
model elements requires other model elements for their specification or
AW: [UML Forum] Understanding Relationships for Class Diagram
Your snippet represents neither an association nor a dependency. As I
mentioned in my previous mail, a dependency is more or less a meta-concept,
indicating that a class is using another class. For my understanding a
dependency would result in the javadoc of class A.
Look to a similar snippet of your's:
Re: [UML Forum] Understanding Relationships for Class Diagram
It is confusing because they model different things so they can overlap
for the same classes. The first four describe relationships between
n-ary relations in relational theory. Dependency describes physical
coupling at the 3GL level. That is, dependency describes what one object
[UML Forum] Understanding Relationships for Class Diagram
I know about the relationships categorized as following.
* association
* aggregation
* composition
* generalization
* dependency
What I want to know is precise definitions of each and when to use that
kind of relationship (scenario). I read some UML documents, but still
not clear about when to use dependency and when to use association.
RE: [UML Forum] Primitive Type musn't be a DataType
There are many Relationships (graph edges) in the UML. Associations and
Dependencies are just two. Compare Associations between classes with Links
between Objects.
The two representations of ClassA, below (or attached), are almost identical
(assuming b::ClassB in the top representation MUST exist). This Association
RE: [UML Forum] Primitive Type musn't be a DataType
The original edition "The Unified Modeling Language Reference Manual" by
Rumbaugh, Jacobson and Booch (Addison-Wesley) is available online at:
[link]
ge%20Reference%20Manual.pdf
Note: This details UML 1.x. It illustrates many excellent concepts, but not
Re: [UML Forum] Primitive Type musn't be a DataType
Can you please help me I want to learn UML from scratch.
How to design class diagram ,object diagram in UML.
Can you please suggest any source over internet from where i can learn UML
language othet than from basic
other than
[link]
[link]
Thanks
Vinay
Please help me then I would be thankful to you
AW: [UML Forum] Primitive Type musn't be a DataType
It depends on what do you want to express. Dependencies can be used to say,
that class A uses class B somehow, this indicates the usage of class B's
methods as well. It is a kind of meta-concept, saying that there is a
logical relationship between both classes. By using an association, you
RE: [UML Forum] Primitive Type musn't be a DataType
Thanks a lot for the information. The links are pretty useful.
I am using Java. I have a java class and I am calling other java class
by creating an instance and calling some of its method. Is this
indicates dependency or association? Where can I find few examples
related to class diagrams and relationships?
RE: [UML Forum] Primitive Type musn't be a DataType
Assuming you already really know programming (Java and c++), to understand
the classes and diagrams defined in the UML, read the Infrastructure and
Superstructure specifications available from OMG. This shows how the
modeling language is "built up" from first principles.
[link]
We are moving the portal to a new better house
In the next days we are moving the portal from a VPS account to a dedicated server. Apologies for the inconveniences and all the "strange things" you may see in the following days but remember, we are doing this to be able to provide you a better service !!!
-->MDE Education - Leonardo Da Vinci funded project
AtlanMod has just been granted a Leonardo Da Vinci project for Exchanging knowledge, techniques and experiences around Model Driven Engineering education .
This is a joint project with Lublin University of Technology, Politecnico di Milano (in particular, my colleague Marco Brambilla ), the University of Alicante and us (in this project, "us" means the Ecole des Mines de Nantes).
-->Top 5 posts in June 2010
Time to review the five most popular blog entries in June 2010 (according to your votes: number of votes=number of clicks on the post)are, in this order,:
- The interview with Johan den Haan (Mendix)
- My proposal of a Turing test for code-generation tools
AtomWeaver public beta also released this week
Another tool launched in public beta this week is AtomWeaver developed by Rui Curado. AtomWeaver is a full implementation of ABSE (Atom-based Software Engineering) . Rui's own description of the system is the following:
-->
AlphaSimple now in public beta
Rafael Chaves who we already met in this interview about his TextUML textual UML modeling tool has just released AlphaSimple
-->



