What do you call a generalized (non-GUI-related) "Model-View-Controller" architecture?

Posted by dcuccia on Stack Overflow See other posts from Stack Overflow or by dcuccia
Published on 2010-03-19T08:28:32Z Indexed on 2010/03/19 8:31 UTC
Read the original article Hit count: 200

I am currently refactoring code that coordinates multiple hardware components for data acquisition, and feeling a bit like I'm recreating the wheel. In particular, an MVC-like pattern seems to be emerging. Except, this has nothing to do with a GUI and I'm worried that I'm forcing this particular pattern where another might be more appropriate. Here's my scenario:

Individual hardware "component" classes obey interface contracts for each hardware type. Previously, component instances were orchestrated by a single monolithic InstrumentController class, which relied heavily on configuration + branching logic for executing a specific acquisition sequence. After an iteration, I have a separate controller for each component, with these controllers all managed by a small InstrumentControllerBase (or its derivatives). The composite system will receive "input" either programmatically or via inter-hardware component triggering - in either case these interactions are routed to, and handled by, the appropriate controller.

So, I have something that feels MVC-esque, but I don't know if that's because I'm forcing the point. With little direct MVC experience in application development, it's hard to know if I'm just trying to make my scenario fit MVC, where another pattern might be a good alternative or complimentary. My problem is, search results and wiki documentation of these family of patterns seems to immediately drop me into GUI-specific discussions.

I understand "M means Model data and the V means View" - but do you call the superset pattern? Component-Commander-Controller?

Whence can I exhume examples exemplary?

© Stack Overflow or respective owner

Related posts about model-view-controller

Related posts about mvc