Please identify this pattern

Hi,

I am currently involved in analyzing java source code, which runs to 1000's of lines. It is similiar to java.io package, where I have fundamental set of base interfaces, and several sub classes inheriting/implementing the base class and providing additional unique behaviours.

I also have a main class, which is the entry point of the application, when I try to trace the method calls, it gets propagated down to the several implementations.

1. I would like to know, what pattern it is ?

2. Any guidance on how to study, such a system which is composed of

such a large code base.

3. shud I learn design pattern to understand the flow of the system.

4. How does it all happens in real world,

I sincerely look forward for your inputs.

Thanks all,

kolly

[825 byte] By [kollyhooda] at [2007-9-29 11:44:00]
# 1

(1) I guess its strategy pattern

(2) The only thing i could suggest is debug (just incase if its not strategy pattern)

(3) ...... upto you

(4) ....... yes it does.....

> Hi,

>

> I am currently involved in analyzing java source code,

> which runs to 1000's of lines. It is similiar to

> java.io package, where I have fundamental set of base

> interfaces, and several sub classes

> inheriting/implementing the base class and providing

> additional unique behaviours.

>

> I also have a main class, which is the entry point of

> the application, when I try to trace the method calls,

> it gets propagated down to the several

> implementations.

>

> 1. I would like to know, what pattern it is ?

> 2. Any guidance on how to study, such a system which

> is composed of

>such a large code base.

> 3. shud I learn design pattern to understand the flow

> of the system.

> 4. How does it all happens in real world,

>

> I sincerely look forward for your inputs.

>

> Thanks all,

> kolly

falguniudaya at 2007-7-15 1:17:39 > top of Java-index,Other Topics,Patterns & OO Design...
# 2
Thanks for your reply, I look forward for any other suggestions.-kolly
kollyhooda at 2007-7-15 1:17:39 > top of Java-index,Other Topics,Patterns & OO Design...
# 3
Try drawing a UML class diagram of the system. Any patterns would hopefully be clearer from that.
thebobstera at 2007-7-15 1:17:39 > top of Java-index,Other Topics,Patterns & OO Design...
# 4
As suggested, draw the UML diagrams, and see.Here's a good site with UML diagrams of theGang Of Four (GOF) patterns: http://www.tml.hut.fi/~pnr/GoF-models/html/
rkconnera at 2007-7-15 1:17:39 > top of Java-index,Other Topics,Patterns & OO Design...
# 5
Hello Kolly,What you state looks like overlap of more than one pattern. In your case, my guess would be 2Your work shows some distinct behaviours of "Chain of Command" and "Bridge". Refer to the GoF patterns, you will find your answer.Ironluca
LeMercenairea at 2007-7-15 1:17:39 > top of Java-index,Other Topics,Patterns & OO Design...
# 6
dear ironluca, You were right, and now I am just following plain vanilla 'c' style method tailgating. what else to do :(and as a seperate initiative I am learning design patterns from the ground up.thanx,
kollyhooda at 2007-7-15 1:17:39 > top of Java-index,Other Topics,Patterns & OO Design...
# 7
I wish you success :DIronluca
LeMercenairea at 2007-7-15 1:17:39 > top of Java-index,Other Topics,Patterns & OO Design...