Click here to Skip to main content
15,918,742 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: charecter input system function Pin
Dave Kreskowiak3-Jun-07 17:07
mveDave Kreskowiak3-Jun-07 17:07 
Questioncharecter in putting method Pin
sonavi29-May-07 17:12
sonavi29-May-07 17:12 
QuestionVery intresting architecture Pin
vtuchin27-May-07 9:44
vtuchin27-May-07 9:44 
AnswerRe: Very intresting architecture Pin
Paul Conrad4-Nov-07 7:11
professionalPaul Conrad4-Nov-07 7:11 
QuestionLooking for graphical ideas that convey meaning... Pin
charlieg26-May-07 10:30
charlieg26-May-07 10:30 
AnswerRe: Looking for graphical ideas that convey meaning... Pin
Ray Cassick27-May-07 12:28
Ray Cassick27-May-07 12:28 
QuestionAny Ideas? Pin
Willliam Doman24-May-07 6:00
Willliam Doman24-May-07 6:00 
AnswerRe: Any Ideas? Pin
Moak25-May-07 2:13
Moak25-May-07 2:13 
Willliam Doman wrote:
I’m looking for ideas or pattern to manage the concept of when a pane changes the state of the application/data and another panes observe the change and *only certain* panes would act upon the change. Keep in mind there is an infinite set of possibilities.


Without more details of the requirements... I'll give it a try:

How about multiple 'channels' in your observer, each view could then subscribe only to the 'events' it is interested in. Let's say you have a status update in one component, only those views that are actually stated interest (because they have subscribed to it) will be notified. On the other side if you change a GUI setting you still have the possibility to notify all active views.

Another solution could be adding a 'manager' class which takes care of filtering events BEFORE they are distributed to observer(s). Events would get only where they belongs (that means your views can be simple and react on everything they get). My personal feeling is to avoid (middle) manager classes, they make e.g. code maintenance harder and information flow tends to be less elegant.

Hope this gives you some ideas, happy designing!

/Moak
GeneralRe: Any Ideas? Pin
Willliam Doman25-May-07 5:18
Willliam Doman25-May-07 5:18 
GeneralRe: Any Ideas? Pin
Moak25-May-07 5:53
Moak25-May-07 5:53 
GeneralRe: Any Ideas? Pin
Willliam Doman25-May-07 9:02
Willliam Doman25-May-07 9:02 
GeneralRe: Any Ideas? Pin
Moak25-May-07 14:00
Moak25-May-07 14:00 
AnswerRe: Any Ideas? Pin
led mike25-May-07 7:28
led mike25-May-07 7:28 
GeneralRe: Any Ideas? Pin
Willliam Doman25-May-07 9:05
Willliam Doman25-May-07 9:05 
GeneralRe: Any Ideas? Pin
led mike25-May-07 9:55
led mike25-May-07 9:55 
QuestionWhere have system planning software to download, free to try (or free) Pin
David623-May-07 11:22
David623-May-07 11:22 
AnswerRe: Where have system planning software to download, free to try (or free) Pin
Joseph Guadagno24-May-07 18:03
Joseph Guadagno24-May-07 18:03 
QuestionRe: Where have system planning software to download, free to try (or free) Pin
David624-May-07 23:41
David624-May-07 23:41 
AnswerRe: Where have system planning software to download, free to try (or free) Pin
Moak25-May-07 14:08
Moak25-May-07 14:08 
GeneralRe: Where have system planning software to download, free to try (or free) Pin
Senthil Kumar. V12-Jun-07 2:22
Senthil Kumar. V12-Jun-07 2:22 
QuestionDesign question for fast applications Pin
hansipet22-May-07 22:09
hansipet22-May-07 22:09 
AnswerRe: Design question for fast applications Pin
Adam Crawford22-May-07 23:11
Adam Crawford22-May-07 23:11 
GeneralRe: Design question for fast applications Pin
hansipet23-May-07 0:08
hansipet23-May-07 0:08 
AnswerRe: Design question for fast applications Pin
led mike23-May-07 8:36
led mike23-May-07 8:36 
QuestionUsing Exceptions and Ensuring Invariants Pin
Leslie Sanford22-May-07 10:14
Leslie Sanford22-May-07 10:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.