aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Use of stereotypes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Use of stereotypes" Watch "Use of stereotypes" New topic
Author

Use of stereotypes

Claudiu Dumitrescu
Greenhorn

Joined: Sep 09, 2008
Posts: 29
Hi,

I'm thinking to mark the entities from the sequence diagram with various stereotypes like: <<Command>> , <<SessionFacade>> to describe the various patterns used.

What do you think about it?

Thank you.
Rahul Mishra
Ranch Hand

Joined: Jan 22, 2006
Posts: 211
Stereotyping classes is something a lot of people do..

However, stereotyping classes with design pattern names could be misleading...you should rather stereotype classes with the 'role' they play in the design pattern..

in your example,both 'command' and 'SessionFacade' are the roles classes can play...but there might be some patterns such as 'CoR' in which naming a class that way would be incorrect..

if i confused you,let me know and i will elaborate..


OCMJEA/SCEA, SCDJWS, SCBCD 1.3, SCJP 1.4
My SCEA experience:http://javalogue.blogspot.com/
Claudiu Dumitrescu
Greenhorn

Joined: Sep 09, 2008
Posts: 29
Then should I:

a) add a note stating the design patterns I used?

b) drop the all stereotypes that describes the various roles of the classes?

Thank you
Rahul Mishra
Ranch Hand

Joined: Jan 22, 2006
Posts: 211
a) Yes

b) No, i think you misunderstood me here. I am actually encouraging you to add stereotypes but the sterotype names should reflect the role the class plays in the design pattern rather than the name of the design pattern itself. Hence, Command and Session Facade are valid stereotypes..
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Use of stereotypes