Class FlowScheduleCalculator
java.lang.Object
net.finmath.smartcontract.valuation.implementation.FlowScheduleCalculator
Decomposes the underlying swap of a Smart Derivative Contract contained in a FMPL
into individual periods and values them using historic market data.
Stores the results as flow-schedule objects of type
FlowScheduleSwap or FlowScheduleSwapLeg.- Author:
- Raphael Prandtl
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFlowScheduleSwap(String productData, String marketData) getFlowScheduleSwapLeg(String productData, String marketData, FlowScheduleCalculator.LegType legType) getFlowScheduleSwapXml(String productData, String marketData) getSmartderivativeContractDescriptor(String productData)
-
Constructor Details
-
FlowScheduleCalculator
public FlowScheduleCalculator()
-
-
Method Details
-
getFlowScheduleSwapXml
-
getFlowScheduleSwap
- Parameters:
productData- The FPML of the Smart Derivative ContractmarketData- The FPML of the historic market data- Returns:
- The flow schedule of the underlying swap as a
FlowScheduleSwap
-
getFlowScheduleSwapLeg
public FlowScheduleSwapLeg getFlowScheduleSwapLeg(String productData, String marketData, FlowScheduleCalculator.LegType legType) - Parameters:
productData- The FPML of the Smart Derivative ContractmarketData- The FPML of the historic market datalegType- TheFlowScheduleCalculator.LegTypeof the swap, i.e.LEG_RECEIVERorLEG_PAYER- Returns:
- The flow schedule of the underlying swap leg as an XML-string
-
getSmartderivativeContractDescriptor
-