Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Use of stereotypes

 
Claudiu Dumitrescu
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
Claudiu Dumitrescu
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic