Interface ValuationOracle
- All Known Implementing Classes:
ValuationOraclePlainSwap
,ValuationOracleSamplePath
public interface ValuationOracle
Interface for Oracles providing a valuation at a given time.
- Author:
- Christian Fries
-
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 evaluationTime, LocalDateTime marketDataTime) Provides the value of the Oracle at a given evaluation time using market data from a given time.getValues
(LocalDateTime evaluationTime, LocalDateTime marketDataTime)
-
Method Details
-
getValue
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.
- Parameters:
evaluationTime
- The evaluation time.marketDataTime
- The market data time.- Returns:
- The value.
-
getValues
-
getAmount
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.
- Parameters:
evaluationTime
- The evaluation time.marketDataTime
- The market data time.- Returns:
- The amount.
-