Comments embedded.
"EXT-Raiteri, Ashley
L" To: List - Rose Forum
<[EMAIL PROTECTED] <[EMAIL PROTECTED]>
oeing.com> cc:
Sent by: Subject: (ROSE) Aggregation and
Visible
owner-rose_forum@rati Inherited Operations/Attributes
onal.com
02/21/2001 04:42 PM
Please respond to
"EXT-Raiteri, Ashley
L"
Yep, I agree, (see below) and I am getting a little less rusty
as the conversation evolves.
As much as I realize that I am rehashing a lot of the basics of
UML here, please indulge the
next questions with regard to Rose.
Aggregation: Shouldn't an Aggregate class that contains (by
value) another class, have visibility to those
operations that are public? I mean for example if I have
Class A = Motor
Attributes = Engine State
Operation = Start_Motor, Stop_Motor
and I have an aggrete by value class
Class B = Car
Attributes = Motion_State, Speed, Location
Operations = Turn, Modify_Speed
shouldnt a client of car, say
Class C = Driver
have access to the Start_Motor Operation provided by Motor class
via the Car class?
[Les]
No. I would have thought that a Driver would have access to operations
Start_Car an Stop_Car, which make use of Start_Motor and Stop_Motor.
[\Les]
And in Rose specifiaclly why can't I hide the inner details in
a sequence diagram,
having my Driver simply communicate to Car with the Start_Motor
operation instead of
having the driver have to know that the Car is also going to
make a call to Engine.Start_Motor ?
[Les]
If the Driver wants to Start_Motor its class will have direct access the
the Motor class, not go through Car.
For example a Mechanic class might want to access Start_Motor while the
Motor is not an Aggregation of Car.
[\Les]
Helpful?
Les.
************************************************************************
* 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
*
*************************************************************************