Hi all,

The official way to represent a pattern in UML is to use a parameterised
collaboration. This allows you to use roles to represent elements that have
to be supplied to make the collaboration work.

Rational has a draft specification underway that shows how to document all
sorts of reusable assets, and we are working with a number of partners at
the moment to standardise this - the OMG is also involved and the intent is
to submit this to the OMG when it is more complete. 

For anyone interested, check out the Rational web site and look for the
"e-Development Accelerators' initiative (I think it has recently been moved
under the new Suites 2001 release info). In particular look for the
Architecture Description Standard (ADS) and Reusable Assets Specification
(RAS) sections.

This spec. makes heavy use of UML Collaborations to specify how elements
interact to solve problems, which is one key element of patterns. It also
includes metadata about the asset to allow it to be documented fully.

Regards,

Dave.
--
Davyd Norris - Consultant
Regional Services Organisation (Asia Pacific)
Rational Software
Sydney, Australia.
Phone: +61 2 9419 0100
Fax  : +61 2 9419 0160
HDesk: +61 2 9419 0111
-- 

> -----Original Message-----
> From: Yakov, Debby [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 8 December 2000 6:07 AM
> To: 'Williamson, Rusty'; [EMAIL PROTECTED]
> Subject: RE: (ROSE) singleton
> 
> 
> 
> Charles Richter discusses design patterns in chapter 9 of his book
> "Designing Flexible Object-Oriented Systems with UML". He 
> states that UML
> provides syntax to document the application of a pattern and provides
> several figures that show how this is done. Briefly, in a 
> class diagram, the
> name of the pattern appears in a dashed oval, with 
> dependencies extending
> from it to the classes that participate in the pattern. Where 
> the dependency
> intersects with the class, a label appears describing the 
> role that class
> plays in the pattern.
> 
> -----Original Message-----
> From: Williamson, Rusty [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 07, 2000 12:23 PM
> To: [EMAIL PROTECTED]
> Subject: RE: (ROSE) singleton
> 
> 
> 
> Hello,
> 
> Somewhere I saw a method for indicating design patterns in 
> UML -- they used
> comment boxes with a black background and white lettering 
> (and in Rose you
> could create a link to a class diagram that isolates the 
> pattern when you
> feel that is needed for understanding).  Anyway, I don't 
> remember where I
> saw this and apparently it is not a standard -- so far I can 
> not find a
> standard.  Has anyone else see this method?  If so where?  
> I've gone out on
> a limb and written this into the first draft of our modeling 
> guidelines but
> find a clear direction that the industry is taking.
> 
> Yes, I've used stereotypes for patterns but as was pointed 
> out, you only get
> one stereotype and so you can run into conflicts... also must 
> patterns are
> made up of many classes and these classes can have 
> stereotypes of the parts
> that they play in the pattern (i.e. in the MVC you see 
> stereotypes used such
> as model, view, controller, observer).
> 
> Has Rational done anything official?  How about the pattern community?
> 
> Thanks!
> Rusty
> ------------------------------------------------------------
> Rusty Williamson
> > Sr. Systems Architect
> GERS Retail Systems  
> http://www.gers.com/
> The Object Workshop 
> http://home.san.rr.com/williamson/
> Home Page
> http://www.znet.com/~rusty/
> ------------------------------------------------------------
> 
> 
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 07, 2000 8:15 AM
> To: [EMAIL PROTECTED]
> Subject: RE: (ROSE) singleton
> 
> 
> 
> 
> I have a question which relates to representation of a 
> Singleton class in
> UML.
> 
> When a singleton class REed into Rose, it shows up with a 
> unidirectional
> reflexive association. Rose does this because it finds a 
> STATIC object of
> this class as a member varaible. To my way of thinking 
> (correct me if I am
> wrong), reflexive association for a class means that TWO 
> objects of this
> class are rquired to communicate. But   for a singleton class 
> ONE and ONLY
> ONE object can exist.
> 
> Is this a correct representation of a singleton class? Any comments or
> thoughts are appreciated.
> 
> Manoj Chopra
> 
> **************************************************************
> **********
> * 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
> *
> **************************************************************
> ***********
> **************************************************************
> **********
> * 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
*
*************************************************************************

Reply via email to