38 const std::vector<std::pair<std::string, std::string>>& additionalResults,
39 const QuantLib::ext::shared_ptr<Model>& model,
const ASTNodePtr ast,
40 const QuantLib::ext::shared_ptr<Context>& context,
const std::string&
script =
"",
41 const bool interactive =
false,
const bool amcEnabled =
false,
42 const std::set<std::string>& amcStickyCloseOutStates = {},
43 const bool generateAdditionalResults =
false,
44 const bool includePastCashflows =
false)
63 const QuantLib::ext::shared_ptr<Model>
model_;
65 const QuantLib::ext::shared_ptr<Context>
context_;
abstract syntax tree for payoff scripting
QuantLib::GenericEngine< arguments, results > engine
bool lastCalculationWasValid() const
const QuantLib::ext::shared_ptr< Context > context_
const std::set< std::string > amcStickyCloseOutStates_
ScriptedInstrumentPricingEngine(const std::string &npv, const std::vector< std::pair< std::string, std::string > > &additionalResults, const QuantLib::ext::shared_ptr< Model > &model, const ASTNodePtr ast, const QuantLib::ext::shared_ptr< Context > &context, const std::string &script="", const bool interactive=false, const bool amcEnabled=false, const std::set< std::string > &amcStickyCloseOutStates={}, const bool generateAdditionalResults=false, const bool includePastCashflows=false)
const std::string script_
void calculate() const override
Real addMcErrorEstimate(const std::string &label, const ValueType &v) const
const std::vector< std::pair< std::string, std::string > > additionalResults_
const QuantLib::ext::shared_ptr< Model > model_
const bool generateAdditionalResults_
bool lastCalculationWasValid_
const bool includePastCashflows_
script engine context holding variable names and values
Currency and instrument specific conventions/defaults.
interface for model against which a script can be run
boost::variant< RandomVariable, EventVec, CurrencyVec, IndexVec, DaycounterVec, Filter > ValueType
QuantLib::ext::shared_ptr< ASTNode > ASTNodePtr
Serializable Credit Default Swap.