58 const std::vector<QuantLib::Real>&
prices,
const std::vector<std::string>&
priceDates,
68 const std::string&
tag()
const {
return tag_; }
107 QuantExt::CommodityQuantityFrequency::PerCalculationPeriod,
109 const std::vector<QuantLib::Real>&
spreads = {},
const std::vector<std::string>&
spreadDates = {},
110 const std::vector<QuantLib::Real>&
gearings = {},
const std::vector<std::string>&
gearingDates = {},
118 QuantLib::Natural
lastNDays = QuantLib::Null<QuantLib::Natural>(), std::string
fxIndex =
"");
144 const std::string&
tag()
const {
return tag_; }
CommodityFixedLegData()
Default constructor.
void setQuantities(const std::vector< QuantLib::Real > &quantities)
Set the fixed leg data quantities.
std::vector< std::string > priceDates_
void fromXML(ore::data::XMLNode *node) override
const std::vector< std::string > & quantityDates() const
CommodityFixedLegData(const std::vector< QuantLib::Real > &quantities, const std::vector< std::string > &quantityDates, const std::vector< QuantLib::Real > &prices, const std::vector< std::string > &priceDates, CommodityPayRelativeTo commodityPayRelativeTo, const std::string &tag="")
Detailed constructor.
std::vector< std::string > quantityDates_
ore::data::XMLNode * toXML(ore::data::XMLDocument &doc) const override
const std::string & tag() const
std::vector< QuantLib::Real > prices_
const std::vector< std::string > & priceDates() const
std::vector< QuantLib::Real > quantities_
const std::vector< QuantLib::Real > & prices() const
CommodityPayRelativeTo commodityPayRelativeTo_
const std::vector< QuantLib::Real > & quantities() const
CommodityPayRelativeTo commodityPayRelativeTo() const
const std::vector< std::string > & pricingDates() const
std::string const & fxIndex() const
const std::vector< QuantLib::Real > & gearings() const
bool excludePeriodStart() const
const std::vector< QuantLib::Real > & spreads() const
CommodityFloatingLegData()
Default constructor.
const std::string & name() const
QuantLib::Natural pricingLag() const
QuantLib::Natural dailyExpiryOffset() const
QuantExt::CommodityQuantityFrequency commodityQuantityFrequency_
const std::string & pricingCalendar() const
bool includePeriodEnd() const
QuantLib::Natural lastNDays_
bool useBusinessDays() const
QuantLib::Natural hoursPerDay() const
const std::vector< std::string > & gearingDates() const
void fromXML(ore::data::XMLNode *node) override
CommodityPriceType priceType_
std::vector< std::string > pricingDates_
CommodityPricingDateRule pricingDateRule_
std::vector< std::string > gearingDates_
QuantLib::Natural futureMonthOffset_
QuantExt::CommodityQuantityFrequency commodityQuantityFrequency() const
QuantLib::Natural hoursPerDay_
const std::vector< std::string > & quantityDates() const
QuantLib::Natural dailyExpiryOffset_
std::vector< std::string > quantityDates_
ore::data::XMLNode * toXML(ore::data::XMLDocument &doc) const override
const std::string & tag() const
CommodityPriceType priceType() const
QuantLib::Natural deliveryRollDays() const
std::vector< QuantLib::Real > quantities_
std::string pricingCalendar_
QuantLib::Natural futureMonthOffset() const
std::vector< std::string > spreadDates_
bool unrealisedQuantity() const
CommodityPayRelativeTo commodityPayRelativeTo_
CommodityPricingDateRule pricingDateRule() const
const std::vector< QuantLib::Real > & quantities() const
std::vector< QuantLib::Real > spreads_
std::vector< QuantLib::Real > gearings_
CommodityFloatingLegData(const std::string &name, CommodityPriceType priceType, const std::vector< QuantLib::Real > &quantities, const std::vector< std::string > &quantityDates, QuantExt::CommodityQuantityFrequency commodityQuantityFrequency=QuantExt::CommodityQuantityFrequency::PerCalculationPeriod, CommodityPayRelativeTo commodityPayRelativeTo=CommodityPayRelativeTo::CalculationPeriodEndDate, const std::vector< QuantLib::Real > &spreads={}, const std::vector< std::string > &spreadDates={}, const std::vector< QuantLib::Real > &gearings={}, const std::vector< std::string > &gearingDates={}, CommodityPricingDateRule pricingDateRule=CommodityPricingDateRule::FutureExpiryDate, const std::string &pricingCalendar="", QuantLib::Natural pricingLag=0, const std::vector< std::string > &pricingDates={}, bool isAveraged=false, bool isInArrears=true, QuantLib::Natural futureMonthOffset=0, QuantLib::Natural deliveryRollDays=0, bool includePeriodEnd=true, bool excludePeriodStart=true, QuantLib::Natural hoursPerDay=QuantLib::Null< QuantLib::Natural >(), bool useBusinessDays=true, const std::string &tag="", QuantLib::Natural dailyExpiryOffset=QuantLib::Null< QuantLib::Natural >(), bool unrealisedQuantity=false, QuantLib::Natural lastNDays=QuantLib::Null< QuantLib::Natural >(), std::string fxIndex="")
Constructor.
QuantLib::Natural lastNDays() const
QuantLib::Natural deliveryRollDays_
CommodityPayRelativeTo commodityPayRelativeTo() const
QuantLib::Natural pricingLag_
const std::vector< std::string > & spreadDates() const
Serializable Additional Leg Data.
Small XML Document wrapper class.
leg data model and serialization
CommodityQuantityFrequency
std::ostream & operator<<(std::ostream &out, EquityReturnType t)
CommodityPricingDateRule parseCommodityPricingDateRule(const string &s)
@ CalculationPeriodStartDate
@ CalculationPeriodEndDate
CommodityPriceType parseCommodityPriceType(const string &s)
CommodityPayRelativeTo parseCommodityPayRelativeTo(const string &s)
Serializable Credit Default Swap.