QuantoVanillaOption Class Reference
[Financial instruments]

#include <ql/Instruments/quantovanillaoption.hpp>

Inheritance diagram for QuantoVanillaOption:

Inheritance graph
[legend]
List of all members.

Detailed Description

quanto version of a vanilla option


Public Types

typedef QuantoOptionArguments<
VanillaOption::arguments > 
arguments
typedef QuantoOptionResults<
VanillaOption::results > 
results
typedef QuantoEngine< VanillaOption::arguments,
VanillaOption::results > 
engine

Public Member Functions

 QuantoVanillaOption (const Handle< YieldTermStructure > &foreignRiskFreeTS, const Handle< BlackVolTermStructure > &exchRateVolTS, const Handle< Quote > &correlation, const boost::shared_ptr< StochasticProcess > &, const boost::shared_ptr< StrikedTypePayoff > &, const boost::shared_ptr< Exercise > &, const boost::shared_ptr< PricingEngine > &)
void setupArguments (Arguments *) const
greeks
Real qvega () const
Real qrho () const
Real qlambda () const

Protected Member Functions

void setupExpired () const
void performCalculations () const

Protected Attributes

Handle< YieldTermStructureforeignRiskFreeTS_
Handle< BlackVolTermStructureexchRateVolTS_
Handle< Quotecorrelation_
Real qvega_
Real qrho_
Real qlambda_


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 OneAssetStrikedOption.

Reimplemented in QuantoForwardVanillaOption.

void setupExpired  )  const [protected, virtual]
 

This method must leave the instrument in a consistent state when the expiration condition is met.

Reimplemented from OneAssetOption.

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 OneAssetStrikedOption.


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