Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > PAC (presentation-abstraction-control) question

Reply
Thread Tools

PAC (presentation-abstraction-control) question

 
 
craig
Guest
Posts: n/a
 
      03-22-2006
I'm trying to construct a PAC-agent architecture for an application
that has an MDI GUI. I'm structuring the mainWindow as the
presentation of the top-level agent. Sub-agents of the top-level are
"document editors". The top-level mainWindow contains menus for top
level functions, as well as menu items for the active sub-agent
(document editor). When a new sub-agent is created/activated, it needs
to replace/add menu items to the top-level mainWindow's menu ). When
these menu items are pressed a message is communicated to the sub-agent
(document editor) to perform a function. In other words, top-level has
a presentation that contains menu items that fire off sub-agent
functions.

Does this make sense? Does it violate "agent" encapsulation or any
other design principles?
Thanks for any comments!

-Craig

 
Reply With Quote
 
 
 
 
Phlip
Guest
Posts: n/a
 
      03-22-2006
craig wrote:

> I'm trying to construct a PAC-agent architecture for an application
> that has an MDI GUI. I'm structuring the mainWindow as the
> presentation of the top-level agent. Sub-agents of the top-level are
> "document editors". The top-level mainWindow contains menus for top
> level functions, as well as menu items for the active sub-agent
> (document editor). When a new sub-agent is created/activated, it needs
> to replace/add menu items to the top-level mainWindow's menu ). When
> these menu items are pressed a message is communicated to the sub-agent
> (document editor) to perform a function. In other words, top-level has
> a presentation that contains menu items that fire off sub-agent
> functions.
>
> Does this make sense? Does it violate "agent" encapsulation or any
> other design principles?


I X-posted to comp.object, and set follow-ups there, because this isn't a
C++ question. (The answer is the same no matter what language you use.)

The only rules for Model View Controller I know are:

- use a triangle of observers

- observe elements in a module, not the whole module

- do what's simplest; sometimes you just call a function
instead of post an observation event

- pass all tests & refactor mercilessly

You do _have_ test cases, don't you?

--
Phlip
http://www.greencheese.org/ZeekLand <-- NOT a blog!!!


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
urllib.getproxies and PAC gooli Python 1 11-01-2007 02:30 PM
extracing .PAC archives Travis Computer Information 2 07-17-2007 08:22 AM
Column: Wireless Networking Improvements in Windows XP Service Pac =?Utf-8?B?S2F0aGllIFdlcm5lcg==?= Wireless Networking 6 02-26-2006 05:17 PM
Printer issues with XP Service Pac 2? David Spiro Computer Support 1 01-09-2006 09:20 PM
pac/bell scanner Lyn Studman Computer Support 1 06-23-2004 07:56 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57