Class ValuationOraclePlainSwap
java.lang.Object
net.finmath.smartcontract.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
-
Constructor Summary
ConstructorsConstructorDescriptionValuationOraclePlainSwap(net.finmath.marketdata.products.Swap product, double notionalAmount, List<IRMarketDataSet> scenarioList)Oracle will be instantiated based on a Swap product an market data scenario listValuationOraclePlainSwap(net.finmath.marketdata.products.Swap product, double notionalAmount, List<IRMarketDataSet> scenarioList, DoubleUnaryOperator rounding)Oracle will be instantiated based on a Swap product an market data scenario list -
Method Summary
Modifier and TypeMethodDescriptionjavax.money.MonetaryAmountgetAmount(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.
-
Constructor Details
-
ValuationOraclePlainSwap
public ValuationOraclePlainSwap(net.finmath.marketdata.products.Swap product, double notionalAmount, List<IRMarketDataSet> scenarioList, DoubleUnaryOperator rounding)Oracle will be instantiated based on a Swap product an market data scenario list- Parameters:
product- The underlying swap product.notionalAmount- The notional of the product.scenarioList- The list of market data scenarios to be used for valuation.rounding- An operator implementing the rounding.
-
ValuationOraclePlainSwap
public ValuationOraclePlainSwap(net.finmath.marketdata.products.Swap product, double notionalAmount, List<IRMarketDataSet> scenarioList)Oracle will be instantiated based on a Swap product an market data scenario list- Parameters:
product- The underlying swap product.notionalAmount- The notional of the product.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:ValuationOracleProvides 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:
getAmountin interfaceValuationOracle- Parameters:
evaluationTime- The evaluation time.marketDataTime- The market data time.- Returns:
- The amount.
-
getValue
Description copied from interface:ValuationOracleProvides 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:
getValuein interfaceValuationOracle- Parameters:
evaluationDate- The evaluation time.marketDataTime- The market data time.- Returns:
- The value.
-