Changeset 200
- Timestamp:
- 05/29/08 20:37:51 (6 months ago)
- Files:
-
- trunk/QLNet/QLNet/PricingEngine.cs (modified) (1 diff)
- trunk/QLNet/QLNet/Pricingengines/vanilla/FDEuropeanEngine.cs (modified) (1 diff)
- trunk/QLNet/QLNet/Pricingengines/vanilla/FDVanillaEngine.cs (modified) (1 diff)
- trunk/QLNet/QLNet/Pricingengines/vanilla/fdbermudanengine.cs (modified) (1 diff)
- trunk/QLNet/QLNet/Pricingengines/vanilla/mcvanillaengine.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/QLNet/QLNet/PricingEngine.cs
r131 r200 38 38 } 39 39 40 public interface IGenericEngine<ArgumentsType, ResultsType> : IPricingEngine, IObserver 41 where ArgumentsType : IPricingEngineArguments, new() 42 where ResultsType : IPricingEngineResults, new() { 43 } 40 public interface IGenericEngine : IPricingEngine, IObserver { } 44 41 45 42 // template base class for option pricing engines 46 43 // Derived engines only need to implement the <tt>calculate()</tt> method. 47 public abstract class GenericEngine<ArgumentsType, ResultsType> : IGenericEngine <ArgumentsType, ResultsType>44 public abstract class GenericEngine<ArgumentsType, ResultsType> : IGenericEngine 48 45 where ArgumentsType : IPricingEngineArguments, new() 49 46 where ResultsType : IPricingEngineResults, new() trunk/QLNet/QLNet/Pricingengines/vanilla/FDEuropeanEngine.cs
r158 r200 29 29 checking it against analytic results. 30 30 */ 31 public class FDEuropeanEngine : FDVanillaEngine, IGenericEngine <OneAssetOption.Arguments, OneAssetOption.Results>{31 public class FDEuropeanEngine : FDVanillaEngine, IGenericEngine { 32 32 private SampledCurve prices_; 33 33 trunk/QLNet/QLNet/Pricingengines/vanilla/FDVanillaEngine.cs
r165 r200 160 160 } 161 161 162 public class FDEngineAdapter<Base, Engine, ArgumentsType, ResultsType> 163 : FDVanillaEngine, IGenericEngine<ArgumentsType, ResultsType> 162 public class FDEngineAdapter<Base, Engine, ArgumentsType, ResultsType> : FDVanillaEngine, IGenericEngine 164 163 where Base : FDConditionEngineTemplate, new() 165 where Engine : IGenericEngine <ArgumentsType, ResultsType>164 where Engine : IGenericEngine 166 165 where ArgumentsType : IPricingEngineArguments, new() 167 166 where ResultsType : IPricingEngineResults, new() { trunk/QLNet/QLNet/Pricingengines/vanilla/fdbermudanengine.cs
r166 r200 25 25 //! Finite-differences Bermudan engine 26 26 /*! \ingroup vanillaengines */ 27 public class FDBermudanEngine : FDMultiPeriodEngine, IGenericEngine <OneAssetOption.Arguments, OneAssetOption.Results>{27 public class FDBermudanEngine : FDMultiPeriodEngine, IGenericEngine { 28 28 protected double extraTermInBermudan; 29 29 trunk/QLNet/QLNet/Pricingengines/vanilla/mcvanillaengine.cs
r197 r200 35 35 } 36 36 37 public abstract class MCVanillaEngine<MC, RNG, S, Inst> : McSimulation<MC, RNG, S>, 38 IGenericEngine<OneAssetOption.Arguments, OneAssetOption.Results> 37 public abstract class MCVanillaEngine<MC, RNG, S, Inst> : McSimulation<MC, RNG, S>, IGenericEngine 39 38 where RNG : IRSG, new() where S : IGeneralStatistics, new() { 40 39 //typedef typename McSimulation<MC,RNG,S>::path_generator_type path_generator_type;