public class AccruedInterest extends AbstractIndex
executor| Constructor and Description |
|---|
AccruedInterest(String name,
String currency,
LocalDate referenceDate,
LocalDate periodStartDate,
LocalDate periodEndDate,
AbstractIndex index,
Double indexFixingTime,
DayCountConventionInterface daycountConvention,
boolean isNegativeAccruedInterest)
Create an accrued interest index.
|
| Modifier and Type | Method and Description |
|---|---|
RandomVariableInterface |
getValue(double fixingTime,
LIBORModelMonteCarloSimulationInterface model)
This method returns the value random variable of the product within the specified model, evaluated at a given evalutationTime.
|
Set<String> |
queryUnderlyings()
Returns a set of underlying names referenced by this product component (i.e., required for valuation) or null if none.
|
getNamegetValuesgetFactorDrift, getValue, getValueForModifiedDatagetCurrency, getValue, getValue, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, toStringpublic AccruedInterest(String name, String currency, LocalDate referenceDate, LocalDate periodStartDate, LocalDate periodEndDate, AbstractIndex index, Double indexFixingTime, DayCountConventionInterface daycountConvention, boolean isNegativeAccruedInterest)
name - The name of the index.currency - The payment currency.referenceDate - The model reference date (corresponding to t=0).periodStartDate - The period start date.periodEndDate - The period end date.index - The index.indexFixingTime - The fixing time \( t_{0} \) of the index.daycountConvention - The day count convention.isNegativeAccruedInterest - If true, the class represents the coupon payment minus the accrued interest, i.e., \( I(t_{0}) \cdot \frac{\max(\text{dcf}(T_{start},t),0)}{\text{dcf}(T_{start},T_{end})} \).public RandomVariableInterface getValue(double fixingTime, LIBORModelMonteCarloSimulationInterface model) throws CalculationException
AbstractLIBORMonteCarloProductgetValue in class AbstractIndexfixingTime - The time on which this products value should be observed.model - The model used to price the product.CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.public Set<String> queryUnderlyings()
AbstractProductComponentqueryUnderlyings in class AbstractProductComponentCopyright © 2017. All rights reserved.