hiho,
In the UML Reference Manual, Jim Rumbaugh et al remark that "The distinction
between aggregation and association is often a matter of taste rather than a
difference in semantics" (p148). While aggregation often means something
special to the designer, there is no predefined discrete way to represent it
in code.
On the same page as the reference above, Rumbaugh et al remarks that
"several secondary properties are connected with aggregation, but not
reliably enough to make them part of its required definition". This is
followed by the criteria described by Shubhashish in an earlier posting;
these -- as described by Shubhashish -- are only implications.
Many projects make their own rules of thumb for aggregation. For example,
one project I worked on did something of a cascading retrieve from the
database on aggregation (e.g. when you retrievel the customer go ahead and
get his/her policies because we'll typically need them). But there is no
UML semantic that imposes this sort of thing.
So, while Rose has some inconsistent naming conventions, it rightly imposes
no special code generation rules to simple aggregation.
------ b
--
Brian G. Lyons
Number Six Software - Voted Rational's Best Complementary Service Provider
1655 North Fort Myer Drive, Suite 1100
Arlington, VA 22209-3196
http://www.numbersix.com
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Monday, August 13, 2001 6:54 AM
To: [EMAIL PROTECTED]
Subject: (ROSE) code generation in C++ aggregation/association
hi!
when i draw an association relation between two classes the code
generated in C++ is
A{
B* the_B;
};
B{
A* the_A;
};
now suppose i change the relation ship to aggregation then the code
generated is
A{
B* Ba;
};
B{
A* the_A;
};
the code is basically the same except addition of "the" .so what is the
difference between aggregation and association.
shubhashish
************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
http://www.rational.com/products/rose/usergroups/rose_forum.jtmpl
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************
************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
http://www.rational.com/products/rose/usergroups/rose_forum.jtmpl
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************