41 LOG(
"Cross-Asset Commodity Name = " <<
name_);
44 LOG(
"Cross-Asset Commodity Currency = " <<
ccy_);
48 LOG(
"Cross-Asset Commodity calibration type = " << calibTypeString);
54 LOG(
"Cross-Asset Commodity Sigma initial value = " <<
sigmaValue_);
60 LOG(
"Cross-Asset Commodity Kappa initial value = " <<
kappaValue_);
68 "size mismatch in commodity option expiries/strike for name " <<
name_);
COM Schwartz Model Parameters.
bool operator!=(const CommoditySchwartzData &rhs)
void fromXML(XMLNode *node)
CalibrationType calibrationType_
std::vector< std::string > optionExpiries_
XMLNode * toXML(XMLDocument &doc)
bool operator==(const CommoditySchwartzData &rhs)
std::vector< std::string > optionStrikes_
Small XML Document wrapper class.
XMLNode * allocNode(const string &nodeName)
util functions that wrap rapidxml
static void addAttribute(XMLDocument &doc, XMLNode *node, const string &attrName, const string &attrValue)
static string getAttribute(XMLNode *node, const string &attrName)
static void addGenericChildAsList(XMLDocument &doc, XMLNode *n, const string &name, const vector< T > &values, const string &attrName="", const string &attr="")
static void addGenericChild(XMLDocument &doc, XMLNode *n, const char *name, const T &value)
Adds <Name>p1,p2,p3</Name>
static Real getChildValueAsDouble(XMLNode *node, const string &name, bool mandatory=false, double defaultValue=0.0)
static string getChildValue(XMLNode *node, const string &name, bool mandatory=false, const string &defaultValue=string())
static bool getChildValueAsBool(XMLNode *node, const string &name, bool mandatory=false, bool defaultValue=true)
static XMLNode * getChildNode(XMLNode *n, const string &name="")
static vector< string > getChildrenValuesAsStrings(XMLNode *node, const string &name, bool mandatory=false)
static XMLNode * addChild(XMLDocument &doc, XMLNode *n, const string &name)
COM component data for the cross asset model.
Classes and functions for log message handling.
#define LOG(text)
Logging Macro (Level = Notice)
CalibrationType parseCalibrationType(const string &s)
Convert calibration type string into enumerated class value.
Serializable Credit Default Swap.
Map text representations to QuantLib/QuantExt types.