dimanche 20 novembre 2016

how to use strategy design pattern for more different families of algorithms

I need to model a number of algorithms that perform a specific task. For example for outsider detection there are specific algorithms O1, O2,O3. For spike detection there are specific algorithms S1, S2, S3,...,etc. For noise detection there are N1, N2,...,etc. For modeling each group of algorithms I used the strategy design pattern (for outsider, spike, noise, etc) but how can I model all groups now considering the fact that groups themselves does not have things in common?

Aucun commentaire:

Enregistrer un commentaire