26 Apr 09:21
Need help recalling a design pattern
Trey Harris <trey <at> sage.org>
2005-04-26 07:21:20 GMT
2005-04-26 07:21:20 GMT
There's a design pattern whose name I'm having trouble remembering (which is making it hard for me to look up any literature on it). I'm hoping maybe someone here can help me. I thought it was called the "recognizer" pattern, but Googling isn't turning up anything by that name. Basically, you have a data blob, and a list of candidate classes, and you throw the data at the classes one by one until one of them "recognizes" the blob and returns an object encapsulating it. In more advanced usage, you get responses back from the candidate classes about how well they recognize the blob, and you eventually use the class that can best recognize it, even if several can recognize it to some extent. Sound familiar? Thanks, Trey
-- Andrew
On Tue, 26 Apr 2005, Trey Harris wrote:
> There's a design pattern whose name I'm having trouble remembering (which
> is making it hard for me to look up any literature on it). I'm hoping
> maybe someone here can help me.
>
> I thought it was called the "recognizer" pattern, but Googling isn't
> turning up anything by that name. Basically, you have a data blob, and a
> list of candidate classes, and you throw the data at the classes one by
> one until one of them "recognizes" the blob and returns an object
> encapsulating it.
>
> In more advanced usage, you get responses back from the candidate classes
> about how well they recognize the blob, and you eventually use the class
> that can best recognize it, even if several can recognize it to some
> extent.
>
> Sound familiar?
>
> Thanks,
RSS Feed