NobleBlocks

Research indexJournal article

Parameterized strategy pattern

Sobajic, Moussavi, Far

16 Oct 2010

NobleIDark:/48914/w1/20260524/95855A94DOI10.1145/2493288.2493297

Paywalled

The full text is at the publisher

You can read the abstract here, or open it at the publisher.

Read at the publisher

Abstract

The Strategy pattern decouples algorithms from the class that uses them allowing the algorithms to vary independently. It does not, however, allow the algorithms to have different parameters. The parameterized strategy pattern presented in this paper addresses the case when the algorithms have different sets of parameters, and when the user is allowed to see and modify these parameters for each concrete algorithm before its execution. This is accomplished by introducing special parameter classes which encapsulate algorithms parameters. The abstract algorithm class is completely decoupled from parameters letting each concrete algorithm class to create its own list of parameter instances which mirrors its parameters.

Discussion

Citations

Topics

More

Suggest a correction or report