If intrested in singleton, following script may also be helpful,

 http://www.rational.com/support/downloadcenter/addins/rose/index.jsp

 Rational Rose Scripts and Models

 Singleton Pattern Script (4 KB)
 applies the Singleton design pattern to a selected
 Rose98. The selected class is modified by adding a
 private static attribute called _instance, and a public
 static Instance() operation is added. C++ code generation
 properties are also Modified. The pattern is from the Gamma,
 et al Design

Patrick Kennedy
 Rational Support

On Dec 7, 14:06, Yakov, Debby wrote:
> 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
> *
> *************************************************************************
>
>-- End of excerpt from Yakov, Debby


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