This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes UML Representation for design pattern Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "UML Representation for design pattern" Watch "UML Representation for design pattern" New topic
Author

UML Representation for design pattern

Tanuja rj
Greenhorn

Joined: Aug 18, 2008
Posts: 10
Which two design pattern has same representation of UML?
Thanks in Advance
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
Why do you want to know?

What are you seeking?


SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Tanuja rj
Greenhorn

Joined: Aug 18, 2008
Posts: 10
I want to know when we draw UML representation for design pattern which two design pattern shows same UML representation?
Lutz Hankewitz
Greenhorn

Joined: Dec 10, 2007
Posts: 5
You can model it as Collaboration
UML 2.1 Specifiation

Chapter 9.3.3 Collaboration - page 171

There is also an example there with the observer pattern.

Kind regards

Lutz
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
Originally posted by Tanuja Virle:
I want to know when we draw UML representation for design pattern which two design pattern shows same UML representation?


I mean why you want to know? Or you just want to know?
Benoît de Chateauvieux
Ranch Hand

Joined: Aug 10, 2007
Posts: 183
Hi Tanuja,

In the GoF's Patterns, you'll see that Strategy and State have exactly the same class diagram.

They differ in their intent:
Strategy is a "flexible alternative to subclassing". It allows you to change the behavior dynamically with composition.
State is "an alternative to putting lots of conditionals in your context". It encapsulate behaviors in State objects that can be changed dynamically.

Hope it helps,

Beno�t


SCJP5 | SCBCD5 | SCEA5 Part 1
Tanuja rj
Greenhorn

Joined: Aug 18, 2008
Posts: 10
Benoît de Chateauvieux wrote:

In the GoF's Patterns, you'll see that Strategy and State have exactly the same class diagram.

They differ in their intent:
Strategy is a "flexible alternative to subclassing". It allows you to change the behavior dynamically with composition.
State is "an alternative to putting lots of conditionals in your context". It encapsulate behaviors in State objects that can be changed dynamically.

Hope it helps,

Beno�t
Tanuja rj
Greenhorn

Joined: Aug 18, 2008
Posts: 10
Benoît de Chateauvieux wrote:
In the GoF's Patterns, you'll see that Strategy and State have exactly the same class diagram.

They differ in their intent:
Strategy is a "flexible alternative to subclassing". It allows you to change the behavior dynamically with composition.
State is "an alternative to putting lots of conditionals in your context". It encapsulate behaviors in State objects that can be changed dynamically.

Hope it helps,

Beno�t
Tanuja rj
Greenhorn

Joined: Aug 18, 2008
Posts: 10
Kengkaj Sathianpantarit wrote:
I want to know when we draw UML representation for design pattern which two design pattern shows same UML representation?


I mean why you want to know? Or you just want to know?
Tanuja rj
Greenhorn

Joined: Aug 18, 2008
Posts: 10
Kengkaj Sathianpantarit wrote:
I want to know when we draw UML representation for design pattern which two design pattern shows same UML representation?


I mean why you want to know? Or you just want to know?
 
wood burning stoves
 
subject: UML Representation for design pattern