28#include <boost/optional/optional.hpp>
70 const std::vector<std::string>&
quotes,
71 const boost::optional<unsigned short>&
priority = boost::none,
72 const boost::optional<OffPeakDaily>&
offPeakDaily = boost::none,
81 const std::vector<std::string>&
quotes()
const;
82 const boost::optional<unsigned short>&
priority()
const;
83 const boost::optional<OffPeakDaily>&
offPeakDaily()
const;
133 const std::vector<std::string>&
quotes,
const std::string& commoditySpotQuote =
"",
145 const std::vector<std::string>& basisQuotes,
const std::string& basisConventionsId,
154 const boost::optional<BootstrapConfig>&
bootstrapConfig = boost::none);
Class for holding bootstrap configurations.
Commodity curve configuration.
std::string & interpolationMethod()
void populateRequiredCurveIds()
Populate any dependent curve IDs.
std::string interpolationMethod_
const Type & type() const
std::string & baseConventionsId()
const std::string & conventionsId() const
const std::string & currency() const
std::string & dayCountId()
const std::string & baseYieldCurveId() const
const std::string & basePriceCurveId() const
const std::string & yieldCurveId() const
bool priceAsHistFixing() const
const std::map< unsigned short, PriceSegment > & priceSegments() const
std::string & commoditySpotQuoteId()
void processSegments(std::vector< PriceSegment > priceSegments)
Process price segments when configuring a Piecewise curve.
std::string & yieldCurveId()
std::string basePriceCurveId_
void fromXML(XMLNode *node) override
std::string & basePriceCurveId()
std::string commoditySpotQuoteId_
bool extrapolation() const
XMLNode * toXML(XMLDocument &doc) const override
void setBootstrapConfig(const BootstrapConfig &bootstrapConfig)
const boost::optional< BootstrapConfig > & bootstrapConfig() const
std::string baseYieldCurveId_
vector< string > fwdQuotes_
std::map< unsigned short, PriceSegment > priceSegments_
boost::optional< BootstrapConfig > bootstrapConfig_
std::string & conventionsId()
bool & priceAsHistFixing()
QuantLib::Natural monthOffset_
const vector< string > & fwdQuotes() const
std::string & baseYieldCurveId()
CommodityCurveConfig()
Default constructor.
std::string baseConventionsId_
QuantLib::Natural monthOffset() const
const std::string & baseConventionsId() const
const std::string & interpolationMethod() const
void setPriceSegments(const std::map< unsigned short, PriceSegment > &priceSegments)
std::string yieldCurveId_
const std::string & dayCountId() const
QuantLib::Natural & monthOffset()
std::string conventionsId_
const std::string & commoditySpotQuoteId() const
Base curve configuration.
const string & curveDescription() const
virtual const vector< string > & quotes()
Return all the market quotes required for this config.
Class to store quotes used in building daily off-peak power quotes.
std::vector< std::string > peakQuotes_
const std::vector< std::string > & offPeakQuotes() const
OffPeakDaily()
Constructor.
void fromXML(XMLNode *node) override
XMLNode * toXML(XMLDocument &doc) const override
std::vector< std::string > offPeakQuotes_
const std::vector< std::string > & peakQuotes() const
const boost::optional< unsigned short > & priority() const
std::string peakPriceCurveId_
void populateQuotes()
Populate quotes.
Type
Type of price segment being represented, i.e. type of instrument in the price segment.
const std::string & peakPriceCalendar() const
const boost::optional< OffPeakDaily > & offPeakDaily() const
boost::optional< OffPeakDaily > offPeakDaily_
const std::string & peakPriceCurveId() const
PriceSegment()
Default constructor.
std::vector< std::string > quotes_
boost::optional< unsigned short > priority_
std::string peakPriceCalendar_
void fromXML(XMLNode *node) override
XMLNode * toXML(XMLDocument &doc) const override
const std::string & conventionsId() const
const std::vector< std::string > & quotes() const
std::string conventionsId_
Small XML Document wrapper class.
Base class for all serializable classes.
Base curve configuration classes.
Serializable Credit Default Swap.