Class ValuationOraclePlainSwap
java.lang.Object
net.finmath.smartcontract.valuation.oracle.interestrates.ValuationOraclePlainSwap
- All Implemented Interfaces:
ValuationOracle
An oracle for swap valuation which generates values using externally provided historical market data scenarios.
- Author:
- Peter Kohl-Landgraf, Christian Fries
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionValuationOraclePlainSwap
(Map<String, net.finmath.marketdata.products.AnalyticProduct> products, List<CalibrationDataset> scenarioList) Oracle will be instantiated based on a Swap product and market data scenario listValuationOraclePlainSwap
(Map<String, net.finmath.marketdata.products.AnalyticProduct> products, List<CalibrationDataset> scenarioList, int scale) Oracle will be instantiated based on a Swap product an market data scenario list -
Method Summary
Modifier and TypeMethodDescriptionjavax.money.MonetaryAmount
getAmount
(LocalDateTime evaluationTime, LocalDateTime marketDataTime) Provides the value of the Oracle at a given evaluation time.getValue
(LocalDateTime evaluationDate, LocalDateTime marketDataTime) Provides the value of the Oracle at a given evaluation time using market data from a given time.getValues
(LocalDateTime evaluationDate, LocalDateTime marketDataTime)
-
Constructor Details
-
ValuationOraclePlainSwap
public ValuationOraclePlainSwap(Map<String, net.finmath.marketdata.products.AnalyticProduct> products, List<CalibrationDataset> scenarioList, int scale) Oracle will be instantiated based on a Swap product an market data scenario list- Parameters:
products
- The underlying products.scenarioList
- The list of market data scenarios to be used for valuation.scale
- Specification of the rounding.
-
ValuationOraclePlainSwap
public ValuationOraclePlainSwap(Map<String, net.finmath.marketdata.products.AnalyticProduct> products, List<CalibrationDataset> scenarioList) Oracle will be instantiated based on a Swap product and market data scenario list- Parameters:
products
- A list of products to valuate.scenarioList
- The list of market data scenarios to be used for valuation.
-
-
Method Details
-
getAmount
public javax.money.MonetaryAmount getAmount(LocalDateTime evaluationTime, LocalDateTime marketDataTime) Description copied from interface:ValuationOracle
Provides the value of the Oracle at a given evaluation time.Note: The use of two different dates allows to model the accrual/discounting at a (market data given) accrual rate.
- Specified by:
getAmount
in interfaceValuationOracle
- Parameters:
evaluationTime
- The evaluation time.marketDataTime
- The market data time.- Returns:
- The amount.
-
getValue
Description copied from interface:ValuationOracle
Provides the value of the Oracle at a given evaluation time using market data from a given time.Note: The use of two different dates allows to model the accrual/discounting at a (market data given) accrual rate.
- Specified by:
getValue
in interfaceValuationOracle
- Parameters:
evaluationDate
- The evaluation time.marketDataTime
- The market data time.- Returns:
- The value.
-
getValues
- Specified by:
getValues
in interfaceValuationOracle
-