40 const std::vector<ore::data::LegData>&
legData)
43 void build(
const QuantLib::ext::shared_ptr<ore::data::EngineFactory>& engineFactory)
override;
44 QuantLib::Real
notional()
const override;
47 std::map<AssetClass, std::set<std::string>>
48 underlyingIndices(
const QuantLib::ext::shared_ptr<ReferenceDataManager>& referenceDataManager =
nullptr)
const override;
68 QuantLib::ext::shared_ptr<ore::data::LegData>
createLegData()
const {
return QuantLib::ext::make_shared<ore::data::LegData>(); }
70 QuantLib::ext::shared_ptr<QuantLib::Swap>
buildSwap(
const QuantLib::ext::shared_ptr<ore::data::EngineFactory>& engineFactory);
74 QuantLib::ext::shared_ptr<QuantLib::Exercise>
exercise_;
const std::vector< ore::data::LegData > & legData() const
vector< ore::data::LegData > legData_
ore::data::OptionData option_
virtual void fromXML(ore::data::XMLNode *node) override
std::map< AssetClass, std::set< std::string > > underlyingIndices(const QuantLib::ext::shared_ptr< ReferenceDataManager > &referenceDataManager=nullptr) const override
Add underlying Commodity names.
QuantLib::ext::shared_ptr< QuantLib::Exercise > exercise_
QuantLib::Real notional() const override
Return the current notional in npvCurrency. See individual sub-classes for the precise definition.
void build(const QuantLib::ext::shared_ptr< ore::data::EngineFactory > &engineFactory) override
QuantLib::ext::shared_ptr< CommoditySwap > commoditySwap_
virtual ore::data::XMLNode * toXML(ore::data::XMLDocument &doc) const override
QuantLib::ext::shared_ptr< ore::data::LegData > createLegData() const
CommoditySwaption(const ore::data::Envelope &env, const ore::data::OptionData &option, const std::vector< ore::data::LegData > &legData)
QuantLib::Date startDate_
const ore::data::OptionData & option()
bool hasCashflows() const override
QuantLib::ext::shared_ptr< QuantLib::Swap > buildSwap(const QuantLib::ext::shared_ptr< ore::data::EngineFactory > &engineFactory)
Serializable object holding generic trade data, reporting dimensions.
Serializable object holding option data.
Small XML Document wrapper class.
Commodity Swap data model and serialization.
Serializable Credit Default Swap.
trade option data model and serialization