| | |
Design Pattern - Proxy
Please support our Computer Science advertiser: Learn about neural networks and artificial intelligence.
![]() |
•
•
Join Date: Feb 2007
Posts: 1
Reputation:
Solved Threads: 0
Hello,
I'm implementing a software module and hesitating about the appropriate design. The client needs to perform operations for an componenet which is divided to few parts in the memory. However the client treats the componenet as one contiguous.
My design includes a "Manager" which has an interface for the client and handles all operations for this components. The "Manager" knows when it is asked to read/write the appropriate part of the memory. It hides the fact that the component is divided to few parts in the memory space.
I wonder if this is called a proxy, facade or a bridge? Or maybe other pattern? I think it is a proxy but not sure since there few real objects (i.e. subjects) and not only one.
In case this is a proxy - must I use also the "subject" or can the client use the proxy object directly? I don't see the point to "subject" and it will just cause to more unnecessary files and code.
Thanks in advance,
Ilan
I'm implementing a software module and hesitating about the appropriate design. The client needs to perform operations for an componenet which is divided to few parts in the memory. However the client treats the componenet as one contiguous.
My design includes a "Manager" which has an interface for the client and handles all operations for this components. The "Manager" knows when it is asked to read/write the appropriate part of the memory. It hides the fact that the component is divided to few parts in the memory space.
I wonder if this is called a proxy, facade or a bridge? Or maybe other pattern? I think it is a proxy but not sure since there few real objects (i.e. subjects) and not only one.
In case this is a proxy - must I use also the "subject" or can the client use the proxy object directly? I don't see the point to "subject" and it will just cause to more unnecessary files and code.
Thanks in advance,
Ilan
My design pattern knowledge is not too good, but try visiting www.dofactory.com .it summarises design patterns nicely
•
•
Join Date: Oct 2008
Posts: 1
Reputation:
Solved Threads: 0
Hi
I think you'd better use Chain-of-Responsibility, it's supposed to fit your need as i figured, see more here: http://www.dofactory.com/Patterns/Pa...in.aspx#_self2
David
I think you'd better use Chain-of-Responsibility, it's supposed to fit your need as i figured, see more here: http://www.dofactory.com/Patterns/Pa...in.aspx#_self2
David
![]() |
Similar Threads
- Design pattern for encode/decode modules (C++)
- Factory design pattern (C++)
- Design pattern for encode/decode modules (Computer Science)
- Factory Design pattern implementation (C++)
- software design questions (Computer Science)
Other Threads in the Computer Science Forum
- Previous Thread: object-oriented design’s sequence diagrams
- Next Thread: Towers of Hanoi
| Thread Tools | Search this Thread |
ai algorithm algorithms amazon assignment assignmenthelp assignments automata battery bigbrother binary bittorrent bizarre bletchleypark blogging bomb business cern codebreaker compiler computer computers computerscience computertrackingsoftware connect conversion csc dataanalysis dataintepretation development dfa dissertation dissertations dissertationthesis dissertationtopic ebook employment energy floatingpoint foreclosure foreclosuresoftware fuel gadgets geeks givemetehcodez government graphics hardware history homeowners homeworkassignment homeworkhelp humor ibm idea ideas internet ipod itcontracts jobs kindle laser laws linkbait lsmeans mainframes marketing mobileapplication msaccess nano netbeans networking news os p2p piracy piratebay principles programming research sam-being-cute sas science security sex simulation software spying stephenfry study supercomputer supercomputing sweden technology textfield turingtest two'scompliment uk virus ww2





