-----Original Message-----
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: 13 ���� 2001 �. 21:11
Subject: RE: (ROSE) How to show association to local class variable without
generating extraneous Java code


    Why should I not model this as an association.  I don't see where the
UML
    spec tells me I shouldn't.  In fact, from what I can tell, this is in
fact a
    true UML association.  Where does UML make the distinction that the
    reference must be maintainted constantly?

This is not UML, this is is pure logic. Class diagrams shows STATIC
relationships
between classes. In static, your classes don't have any relation between
them.
If your method has a class reference this is DYNAMIC association between two
classes because this link exists only untill method execution ends. This
should
be modeled as a parameter in collaboration or sequence diagram.

Of course, you can model this as an association, but I'm afraid nobody will
understend
this correctly.


    The problem I have with static classes is the same - if I draw an
    association from a Sender to a Receiver that happens to be a static
class,
    Rose insists on creating an instance variable.  And again, I don't see
where

Don't you think there should not be associations to static classes (i.e.
class utilities ) ?

    Several of the Rose folks are pretty active on this forum.  Come on
folks,
    help me out here.  What am I missing?

I think you must have forgotten to read something about UML modeling before
starting
doing it in practice if you are asking questions like this.


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

Reply via email to