出典:Wiktionary
出典:Wikipedia
出典:『Wikipedia』 (2011/06/22 21:16 UTC 版)
In computer programming, the strategy pattern (also known as the policy pattern) is a particular software design pattern, whereby algorithms can be selected at runtime. Formally speaking, the strategy pattern defines a family of algorithms, encapsulates each one, and makes them interchangeable. Strategy lets the algorithm vary independently from clients that use it.