|
| |
| | Strategy pattern - Wikipedia, the free encyclopedia |
 | | The strategy pattern is useful for situations where it is necessary to dynamically swap the algorithms used in an application. |  | | In computer programming, the strategy pattern is a particular software design pattern, whereby algorithms can be selected on-the-fly at runtime depending on conditions, like strategies in a war situation. |  | | The strategy pattern is intended to provide a means to define a family of algorithms, encapsulate each one as an object, and make them interchangeable. |
|
http://www.wikipedia.org/wiki/Strategy_pattern
|
|
| |
| | CodeGuru: Applying Strategy Pattern in C++ Applications |
 | | Strategy Pattern can also be used in the software design. |  | | Strategy Pattern is also used in many popular sorting algorithms, graph layout algorithms and memory allocation algorithms. |  | | The Strategy Pattern is a design pattern to encapsulate the variants (algorithms) and swap them strategically to alter system behavior without changing its architecture. |
|
http://www.codeguru.com/Cpp/Cpp/cpp_mfc/patterns/article.php/c845
|
|
| |
| | GoF Design Pattern::Behavioral::Strategy |
 | | Strategy pattern is commonly used to encapsulate a family of related-algorithms and allows client that uses it to interchange the algorithms independently and dynamically in run-time. |  | | Strategy defines an interface common to all supported algorithms. |  | | Strategy pattern encapsulates related algorithms in classes that inherit from a common superclass. |
|
http://pages.cpsc.ucalgary.ca/~chi/SENG/609_04/StrategySummary.html
|
|
| |
| | Thomas Chau's Web Site > Course Works |
 | | The intent of the Strategy pattern, also known as the Policy pattern, is to encapsulate each algorithm in a family of algorithms so that the use of a specific algorithm can be dynamically changed without the clients being aware of it. |  | | Strategy provides a common interface to all supported algorithms, ConcreteStrategy's, which implement the interface. |  | | This pattern can be used for configuring a component with one of many possible behaviours. |
|
http://sern.ucalgary.ca/~chauth/courses/seng60904/strategy.htm
|
|
| |
| | Kids.net.au - Encyclopedia Design pattern (computer science) - |
 | | Design patterns are lessons that have been accumulated in the community of computer programming. |  | | A design pattern is an abstraction of the best solutions for a particular class of problems. |  | | It is important that patterns accompany a name because it makes possible to describe problems, solutions and talk about them with other folks. |
|
http://www.kids.net.au/encyclopedia-wiki/de/Design_pattern_(computer_science)
|
|
| |
| | Strategy |
 | | Strategy is to algorithms as Builder is to creation. |  | | Configure the original application with an instance of the Strategy hierarchy, and delegate to that "contained" object whenever the "algorithm" is required. |  | | Strategy lets the algorithm vary independently from the clients that use it. |
|
http://home.earthlink.net/~huston2/dp/strategy.html
|
|
| |
| | java.net: Principles, Patterns, and Practices: The Strategy, Template Method, and Bridge Patterns |
 | | In the case of Strategy, this is solved by creating an interface for the lower-level algorithm. |  | | A better pattern would be to abstract out the query concatenation feature in its own class (like QueryBuilder) and have different implementations for getQuery() (which now could be protected) that use the QueryBuilder to add whatever they need to the query. |  | | Strategy is preferable to Template Method when the lower-level algorithm needs to change at run time. |
|
http://today.java.net/pub/a/today/2004/10/29/patterns.html
|
|
| |
| | Subject-oriented programming and the strategy pattern |
 | | The fundamental problem for which the strategy pattern is used has two elements: the class of the node on which the behavior depends and the class of the node in which the (extended) operation is defined. |  | | The Strategy pattern creates two redundant elements: the strategy object which must be created and accessed by the node, and the access path by which a node finds the strategy object. |  | | In cases in which the strategy's interface depends on the type of node being processed, the strategy pattern becomes somewhat like the visitor pattern because the cue for selection of the interface becomes the differences in the operators' names or signatures. |
|
http://www.research.ibm.com/sop/sopcstrp.htm
|
|
| |
| | Null Object Design Pattern |
 | | The key to the Null Object pattern is an abstract class that defines the interface for all objects of this type. |  | | For example, a Controller is a View's Strategy for handling input, and NoController is the Strategy that ignores all input. |  | | The Null Object is implemented as a subclass of this abstract class. |
|
http://www.cs.oberlin.edu/~jwalker/nullObjPattern
|
|
| |
| | Simon Dyck Seng 609.04 Strategy Pattern Summary |
 | | The Null Object pattern provides an alternative to using null to indicate the absence of an object to delegate an operation to. |  | | Some patterns are related by different design elements. Strategy shares elements of the "handle/body" idiom with Bridge and State. The handle/body idiom separates the class defining a component's abstract interface (the handle class) from its hidden implementation (the body class). |  | | The Strategy pattern provides objects that implement a particular interface for altering or determining the behaviours of a client object. |
|
http://sern.ucalgary.ca/~sdyck/courses/seng609.04/strategy.html
|
|
| |
| | Design Pattern Summary: Strategy |
 | | The Strategy defines the common interface for all the algorithms. |  | | The Strategy pattern facilitates the application of a family of algorithms and enabling interchangeability among themselves. |  | | On the other hand, if there exists only variants of an algorithm used by the classes then this pattern can be used when the variants are implemented as a class hierarchy of algorithms. |
|
http://pages.cpsc.ucalgary.ca/~phong/courses/SENG609.04/Strategy.htm
|
|
| |
| | Strategy Pattern |
 | | In strategy the only difference I could notice was that the composite or object structure composes a strategy object and calls Algorithm. |  | | State is a specialization of the Strategy where behaviour is based on the state of the object. |  | | A strategy is either selected by an outside agent or by the context. |
|
http://c2.com/cgi/wiki?StrategyPattern
|
|
| |
| | Strategy: Definitions and Meaning |
 | | Strategy is all theseit is perspective, position, plan, and pattern. |  | | Concluding his review of wars, policy, strategy and tactics, Liddell Hart arrives at this short definition of strategy: "the art of distributing and applying military means to fulfil the ends of policy." Deleting the word "military" from Liddell Harts definition makes it easy to export the concept of strategy to the business world. |  | | Strategy is perspective, that is, vision and direction. |
|
http://home.att.net/~nickols/strategy_definition.htm
|
|
| |
| | The Strategy pattern Java |
 | | The Strategy design pattern encapsulates a family of algorithms, or strategies, by implementing each algorithm in a different class. |  | | That delegation is an example of the Strategy design pattern. |  | | The Decorator pattern is accomplished by enclosing an object in another object. |
|
http://www2.hawaii.edu/~akajiyam/ics665/jdk_patterns.htm
|
|
| |
| | Strategy Is...A Lot of Things |
 | | Strategy is many things: plan, pattern, position, ploy and perspective. |  | | If our strategy and its execution are both flawed, the effort is "doomed from the beginning." Our chances of success are zero, nil, nada, zilch. |  | | If our strategy is sound but its execution is flawed, we are guilty of muffing it. |
|
http://home.att.net/~nickols/strategy_is.htm
|
|
| |
| | Bambooweb: Strategic management |
 | | In his classic Corporate strategy (1965) he developed the "gap analysis" still used today in which we must understand the gap between where we are currently and where we would like to be, then develop what he called "gap reducing actions". |  | | Some people (such as Andy Grove at Intel) feel that there are critical points at which a strategy must take a new direction in order to be in step with a changing business environment. |  | | One objective of an overall corporate strategy is to put the organization into a position to carry out its mission effectively and efficiently. |
|
http://www.bambooweb.com/articles/s/t/Strategic_management.html
|
|
| |
| | Knowing and Doing: April 2005 Archives |
 | | Strategies like Owen's may be the best we can do in computer science, so we need to share them when we have them. |  | | One of my favorite non-software patterns projects was a crossover: Rosemary Michelle Simpson's work on patterns of information structure indices. |  | | They reflect patterns of organization and interaction that are much bigger than the software world. |
|
http://www.cs.uni.edu/~wallingf/blog/archives/monthly/2005-04.html
|
|
| |
| | Abstracts by Narkus Schwehm |
 | | The criterion of the comparision is the efficient realization of communication patterns often used in algorithms that are based on large one- or multidimensional arrays with regular communication structure. |  | | A mobile agent based framweork for the transparant distribution and concurrent execution of computations is presented. |  | | The framework uses design patterns like the master-slave, abstract factory or the strategy pattern. |
|
http://www-ra.informatik.uni-tuebingen.de/mitarb/schwehm/Abstracts.html
|
|
| |
| | Strategy Pattern, page 3 |
 | | Similarities between algorithms can be moved into the Strategy base class. |  | | This pattern increases the number of objects in an application. |  | | The algorithm can be changed dynamically at run time. |
|
http://www.evl.uic.edu/benjamin/StrategyPattern/strategyTut3.htm
|
|
| |
| | Recursive Use of the Strategy Pattern |
 | | Next: Extending the BAST Framework Up: Strategy Pattern in BAST Previous: Overview of the Protocol. |  | | Those services might also be implemented applying the Strategy pattern, but this is transparently managed by inherited operations of |  | | The latter schematically presents a possible implementation of protocol class |
|
http://www.usenix.com/publications/library/proceedings/coots97/full_papers/garbinato/garbinato_html/node14.html
|
|
| |
| | Class com.lotspiech.poker.strategy.Pattern |
 | | This method returns true if the pattern matches the current hand. |  | | true if the pattern matches the current hand. |  | | mask - Cards available to use to match the pattern. |
|
http://vpoker.sourceforge.net/javadocs/com.lotspiech.poker.strategy.Pattern.html
|
|
| |
| | (ootips) Strategy Pattern vs. Case Statement |
 | | The code of the strategy's containing class doesn't have to be changed when a new strategy is added. |  | | Design Patterns -- Elements of Reusable Object-Oriented Software |  | | Using switch/case means you have to edit and bloat the code. |
|
http://ootips.org/strategy-vs-case.html
|
|
| |
| | Using the Strategy Pattern (1) |
 | | Strategy pattern used to provide flexibility at run-time: vary algorithms, not just numerical parameters |  | | Selection algorithm: selection which objects to combine (or decides that the algorithm terminates) |  | | This page last updated: January 16, 2001 08:54 AM Send comments or questions to Marc Paterno and Jim Kowalkowski |
|
http://cdspecialproj.fnal.gov/d0/recodesign/tsld039.htm
|
|
| |
| | Wiley::Candlesticks, Fibonacci, and Chart Pattern Trading Tools: A Synergistic Strategy to Enhance Profits and Reduce ... |
 | | Along with the computer technology of the WINPHI charting program included on the companion CD-ROM, Candlesticks, Fibonacci, and Chart Pattern Trading Tools will help you understand and implement this profitable trading strategy to the best of your ability. |  | | The magic figure "three" and its relevance in pattern recognition |  | | Backed by explicit trading rules and numerous examples and illustrations, this book is an invaluable tool for the serious investor. |
|
http://www.wiley.com/WileyCDA/WileyTitle/productCd-0471448613.html
|
|
| |
| | javanicus |
 | | In the example below the sample WallRobot has been adapted into a strategist, simply by passing in a reference to the real robot that is in the arena, the WallStrategy can advise what action to take on any of the events it cares to override. |  | | Taking the event based methods of AdvancedRobot into a Strategy interface |  | | So this means coding a strategy is just like coding a real robot, but you call i.turnLeft() instead of the implied super.turnLeft(). |
|
http://web1.2020media.com/j/jez/javanicuscom/blog2/articles/robot1.html
|
|
| |
| | Strategy pattern |
 | | The strategy pattern is a particular software design pattern. |  | | See also: Facade memento strategy[?], Design patterns, Explicit strategy pattern[?], State pattern |  | | With these it was thought As the common people expressed themselves, the net was not spread on in a still more wretched quibble, transposed two letters of the word. |
|
http://www.termsdefined.net/st/strategy-pattern.html
|
|
| |
| | Restricted Access Container and The Strategy Pattern |
 | | The policy is a "strategy" for adding data to the RAC. |  | | LRSRAContainer(IAlgo strategy) { _insertStrategy = strategy; _lrs = |  | | The source code for the following examples can be downloaded at this link. |
|
http://www.owlnet.rice.edu/~comp212/04-spring/lectures/19
|
|
| |
| | phpRiot() :: Strategy Pattern :: PHP articles, PHP tutorials, MySQL tutorials, PostgreSQL tutorials |
 | | It is used in cases where there is a common “problem” which can be solved by one of many algorithms, for example validating the fields of sent by a form. |  | | You are here: Home :: Development Articles :: Remotely Hosted :: Application Design :: Strategy Pattern |  | | Taking the example of form validation, we have a prime candidate for a strategy pattern. |
|
http://www.phpriot.com/d/articles/remote/application-design/strategy-pattern/index.html
|
|
| |
| | Anti-Aging Computer Tips |
 | | Strategy, pattern recognition, puzzles, and matching games are perfect for getting your brain going. |  | | Research shows that game playing is especially mind invigorating. |
|
http://www.aarp.org/learntech/computers/life_online/a2004-07-19-computertips.html
|
|
| |
| | Comp.compilers: Register allocation using a strategy pattern |
 | | where the strategy pattern is used in there. |  | | Register allocation using a strategy pattern r.elbers@noldus.nl (1999-03-28) |  | | In the literature people state that the strategy pattern has a good |
|
http://compilers.iecc.com/comparch/article/99-03-092
|
|
| |
| | Strategy Pattern in BAST |
 | | Next: Composing Protocols Up: Using the Strategy Design Previous: Dealing with Failures. |
|
http://www.usenix.com/publications/library/proceedings/coots97/full_papers/garbinato/garbinato_html/node6.html
|
|
|