#include <ored/configuration/commoditycurveconfig.hpp>
Inheritance diagram for PriceSegment:
Collaboration diagram for PriceSegment:Classes | |
| class | OffPeakDaily |
| Class to store quotes used in building daily off-peak power quotes. More... | |
Public Types | |
| enum class | Type { Future , AveragingFuture , AveragingSpot , AveragingOffPeakPower , OffPeakPowerDaily } |
| Type of price segment being represented, i.e. type of instrument in the price segment. More... | |
Public Member Functions | |
Constructors | |
| PriceSegment () | |
| Default constructor. More... | |
| PriceSegment (const std::string &type, const std::string &conventionsId, const std::vector< std::string > "es, const boost::optional< unsigned short > &priority=boost::none, const boost::optional< OffPeakDaily > &offPeakDaily=boost::none, const std::string &peakPriceCurveId="", const std::string &peakPriceCalendar="") | |
| Detailed constructor. More... | |
Inspectors | |
| Type | type () const |
| const std::string & | conventionsId () const |
| const std::vector< std::string > & | quotes () const |
| const boost::optional< unsigned short > & | priority () const |
| const boost::optional< OffPeakDaily > & | offPeakDaily () const |
| const std::string & | peakPriceCurveId () const |
| const std::string & | peakPriceCalendar () const |
| bool | empty () const |
Public Member Functions inherited from XMLSerializable | |
| virtual | ~XMLSerializable () |
| virtual void | fromXML (XMLNode *node)=0 |
| virtual XMLNode * | toXML (XMLDocument &doc) const =0 |
| void | fromFile (const std::string &filename) |
| void | toFile (const std::string &filename) const |
| void | fromXMLString (const std::string &xml) |
| Parse from XML string. More... | |
| std::string | toXMLString () const |
| Parse from XML string. More... | |
Serialisation | |
| std::string | strType_ |
| std::string | conventionsId_ |
| std::vector< std::string > | quotes_ |
| boost::optional< unsigned short > | priority_ |
| boost::optional< OffPeakDaily > | offPeakDaily_ |
| std::string | peakPriceCurveId_ |
| std::string | peakPriceCalendar_ |
| bool | empty_ |
| Type | type_ |
| void | fromXML (XMLNode *node) override |
| XMLNode * | toXML (XMLDocument &doc) const override |
| void | populateQuotes () |
| Populate quotes. More... | |
Class for holding information on a set of instruments used in bootstrapping a piecewise price curve.
Definition at line 36 of file commoditycurveconfig.hpp.
|
strong |
Type of price segment being represented, i.e. type of instrument in the price segment.
| Enumerator | |
|---|---|
| Future | |
| AveragingFuture | |
| AveragingSpot | |
| AveragingOffPeakPower | |
| OffPeakPowerDaily | |
Definition at line 39 of file commoditycurveconfig.hpp.
| PriceSegment | ( | ) |
| PriceSegment | ( | const std::string & | type, |
| const std::string & | conventionsId, | ||
| const std::vector< std::string > & | quotes, | ||
| const boost::optional< unsigned short > & | priority = boost::none, |
||
| const boost::optional< OffPeakDaily > & | offPeakDaily = boost::none, |
||
| const std::string & | peakPriceCurveId = "", |
||
| const std::string & | peakPriceCalendar = "" |
||
| ) |
Detailed constructor.
Definition at line 51 of file commoditycurveconfig.cpp.
Here is the call graph for this function:| PriceSegment::Type type | ( | ) | const |
| const string & conventionsId | ( | ) | const |
| const vector< string > & quotes | ( | ) | const |
| const boost::optional< unsigned short > & priority | ( | ) | const |
Definition at line 75 of file commoditycurveconfig.cpp.
| const boost::optional< PriceSegment::OffPeakDaily > & offPeakDaily | ( | ) | const |
| const string & peakPriceCurveId | ( | ) | const |
| const string & peakPriceCalendar | ( | ) | const |
| bool empty | ( | ) | const |
Definition at line 91 of file commoditycurveconfig.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 95 of file commoditycurveconfig.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Implements XMLSerializable.
Definition at line 130 of file commoditycurveconfig.cpp.
Here is the call graph for this function:
|
private |
Populate quotes.
Definition at line 121 of file commoditycurveconfig.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 99 of file commoditycurveconfig.hpp.
|
private |
Definition at line 100 of file commoditycurveconfig.hpp.
|
private |
Definition at line 101 of file commoditycurveconfig.hpp.
|
private |
Definition at line 102 of file commoditycurveconfig.hpp.
|
private |
Definition at line 103 of file commoditycurveconfig.hpp.
|
private |
Definition at line 104 of file commoditycurveconfig.hpp.
|
private |
Definition at line 105 of file commoditycurveconfig.hpp.
|
private |
Definition at line 107 of file commoditycurveconfig.hpp.
|
private |
Definition at line 108 of file commoditycurveconfig.hpp.