21#ifndef quantlib_exercise_strategy_hpp
22#define quantlib_exercise_strategy_hpp
30 template <
class State>
37 virtual bool exercise(
const State& currentState)
const = 0;
38 virtual void nextStep(
const State& currentState) = 0;
39 virtual std::unique_ptr<ExerciseStrategy<State> >
clone()
const = 0;
virtual void nextStep(const State ¤tState)=0
virtual ~ExerciseStrategy()=default
virtual std::vector< Time > exerciseTimes() const =0
virtual bool exercise(const State ¤tState) const =0
virtual std::vector< Time > relevantTimes() const =0
virtual std::unique_ptr< ExerciseStrategy< State > > clone() const =0