• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1356
  • Last Modified:

which "design pattern" for data acquisition in C#?

I've got to test 32 different electronic products using data acquisition equipment, running various algorithms on them. The algorithms may vary per module, independently, at run time.

I also need to log results to a database.

Which of the 23 classic "design patterns" would be appropriate for this?
0
bmihura
Asked:
bmihura
1 Solution
 
PaulHewsCommented:
Any given task could make use of a number of patterns.  It depends on what classes you intend to create and what role you intend for them to play.

On the surface, the strategy pattern looks like a match, mapping the same interface to separate functions for the different products

http://en.wikipedia.org/wiki/Strategy_pattern

But there could well be opportunities for other patterns as well.
0
 
bmihuraAuthor Commented:
Wow! That's exactly the solution I independently chose, but this is my first time to ever use design patterns.  Thanks for the confirmation.
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now