Skip to content

Feed aggregator

RE: [UML Forum] Understanding Relationships for Class Diagram

UML Forum Google Group - 24 min 51 sec ago
Thanks Lahman, I got my answer... :)
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
Categories: Communities

AW: [UML Forum] Understanding Relationships for Class Diagram

UML Forum Google Group - 24 min 51 sec ago
As mentioned, this depends on how your code is structured.

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

Categories: Communities

Re: [UML Forum] Understanding Relationships for Class Diagram

UML Forum Google Group - 24 min 51 sec ago
Responding to sanjay.amin...
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.,
Categories: Communities

RE: [UML Forum] Understanding Relationships for Class Diagram

UML Forum Google Group - 24 min 51 sec ago
Thanks all for your inputs.

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

Categories: Communities

Re: [UML Forum] Understanding Relationships for Class Diagram

UML Forum Google Group - 24 min 51 sec ago
Hi Sanjay
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
Categories: Communities

RE: [UML Forum] Understanding Relationships for Class Diagram

UML Forum Google Group - 24 min 51 sec ago
Sanjay,

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

Categories: Communities

AW: [UML Forum] Understanding Relationships for Class Diagram

UML Forum Google Group - 24 min 51 sec ago
Responding to Sanjay.

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:

Categories: Communities

Re: [UML Forum] Understanding Relationships for Class Diagram

UML Forum Google Group - 24 min 51 sec ago
Responding to sanjay.amin...
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
Categories: Communities

[UML Forum] Understanding Relationships for Class Diagram

UML Forum Google Group - 24 min 51 sec ago
Hi Ken,

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.

Categories: Communities

RE: [UML Forum] Primitive Type musn't be a DataType

UML Forum Google Group - 24 min 51 sec ago
Sanjay,

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

Categories: Communities

RE: [UML Forum] Primitive Type musn't be a DataType

UML Forum Google Group - 24 min 51 sec ago
All,

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

Categories: Communities

Re: [UML Forum] Primitive Type musn't be a DataType

UML Forum Google Group - 24 min 51 sec ago
Hi Ken Lloyd,
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
Categories: Communities

AW: [UML Forum] Primitive Type musn't be a DataType

UML Forum Google Group - 24 min 51 sec ago
Responding to Sanjay.

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

Categories: Communities

RE: [UML Forum] Primitive Type musn't be a DataType

UML Forum Google Group - 24 min 51 sec ago
Hi Ken,

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?

Categories: Communities

RE: [UML Forum] Primitive Type musn't be a DataType

UML Forum Google Group - 24 min 51 sec ago
Hi Sanjay,

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]

Categories: Communities

We are moving the portal to a new better house

Software Modeling Blog - Sat, 07/31/2010 - 00:15

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 !!!

-->

 

Categories: Blogs

MDE Education - Leonardo Da Vinci funded project

Software Modeling Blog - Fri, 07/30/2010 - 16:56

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).

-->

 

read more

Categories: Blogs

Top 5 posts in June 2010

Software Modeling Blog - Fri, 07/30/2010 - 11:49

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,:

-->

 

read more

Categories: Blogs

AtomWeaver public beta also released this week

Software Modeling Blog - Thu, 07/29/2010 - 21:04

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:

-->

 

read more

Categories: Blogs