BasketOption Class Reference

#include <ql/Instruments/basketoption.hpp>

Inheritance diagram for BasketOption:

Inheritance graph
[legend]
List of all members.

Detailed Description

Basket option on a number of assets.


Public Types

enum  BasketType { Min, Max }

Public Member Functions

 BasketOption (const BasketType basketType, const std::vector< Handle< BlackScholesStochasticProcess > > &stochProcs, const Handle< PlainVanillaPayoff > &payoff, const Handle< Exercise > &exercise, const Matrix &correlation, const Handle< PricingEngine > &engine=Handle< PricingEngine >())
void setupArguments (Arguments *) const

Protected Member Functions

void performCalculations () const


Member Function Documentation

void setupArguments Arguments  )  const [virtual]
 

When a derived argument structure is defined for an instrument, this method should be overridden to fill it. This is mandatory in case a pricing engine is used.

Reimplemented from MultiAssetOption.

void performCalculations  )  const [protected, virtual]
 

In case a pricing engine is not used, this method must be overridden to perform the actual calculations and set any needed results. In case a pricing engine is used, the default implementation can be used.

Reimplemented from MultiAssetOption.


QuantLib.org
QuantLib
Hosted by
SourceForge.net Logo
Documentation generated by
doxygen