org.gjt.lindfors.pattern
Interface Strategy


public interface Strategy

Strategy defines a family of algorithms, encapsulates each one, and make them interchangeable. Strategy lets the algorithm vary independently from clients that use it.

For more detailed documentation, refer to the Strategy Design Pattern .
See also: Strategy pattern in Design Patterns: Elements of Reusable Object-Oriented Software .

Since:
JDK 1.2
Version:
$Revision: 1.5 $
Author:
Juha Lindfors
See Also:
StrategyContext

Method Summary
 StrategyContext getContext()
          Returns the context object for this strategy implementation.
 

Method Detail

getContext

public StrategyContext getContext()
Returns the context object for this strategy implementation. This reference can be used for allowing concrete strategies to access the data of their clients.

Returns:
reference to this strategy object's client