> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Tapio Taipale
> Sent: 12 September 2001 05:07
> To: Kennedy, Patrick; [EMAIL PROTECTED]
> Subject: RE: (ROSE) Where to put the associations?
>
>
>
> Hi,
>
> This was an excellent reply that helped me a lot.
>
> I'm still curious why the associations have to be owned by
> packages. It
> seems to be a feature of Rose and not a very nice one.

You know, I actually like that feature. Back in the Rose version 3 days, I
used to think that was completely stupid. A couple of projects later, I was
getting used to it. Nowadays, I wouldn't have it any other way.

You see, associations have such a far-ranging effect in your model that you
really don't want to mess with them too much.
When you associate two classes in the same package, you check the package
out and alter the association in any way you want. The package is
self-contained, so there is no problem.
What about associations shared between packages? Someone checks out his own
package and alters an association that affects a class in a package for
which you are responsible, without asking you. Wouldn't you be just a little
upset?
This way, you always know if altering an association's nature will affect
anybody else.

(But, it is efective only half the time, unfortunately. If the association
is in your package, you can still upset the other guy without thinking.
Brian Lyons' suggestion is one better.)


>
> Wouldn't it be much easier (for users, at least) that classes
> owns their
> associations? In case of bi-directional association both
> classes would own a
> copy of the association (isn't that the case also in
> implementation in any
> OO language).

When two package owners edit the same association, whose alteration is the
correct one?

Regards,
Huseyin Angay
Karabash Ltd.
www.karabash.co.uk


> For read-only units one-way associations would
> be no problem
> but I guess bi-directional associations might have some
> problems if other
> unit is read-only.
>
> -Tapio
>
> ***************************************************************
> Tapio Taipale                   e-mail [EMAIL PROTECTED]
> NetHawk Solutions                     phone +358 (0)403 010 389
> Elektroniikkatie 2                    fax   +358 (0)403 010 301
> P.O. Box 100, 90501 Oulu, Finland
> ***************************************************************
>
> > -----Original Message-----
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Kennedy, Patrick
> > Sent: 11. syyskuuta 2001 20:44
> > Subject: RE: (ROSE) Where to put the associations?
> >
> > -------------------------------------------------------------------
> > relocating associations:
> > -------------------------------------------------------------------
> > ...
>
>
> **************************************************************
> **********
> * 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/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001

************************************************************************
* 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/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************

Reply via email to