public abstract class AbstractIndex extends AbstractProductComponent
| Constructor and Description |
|---|
AbstractIndex()
Initialize an abstract index which does not have a dedicated name or currency,
e.g. a function of other indicies.
|
AbstractIndex(String name)
Initialize the name of an index.
|
AbstractIndex(String name,
String currency)
Initialize name and currency of an index.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the name of the index.
|
abstract RandomVariable |
getValue(double fixingTime,
LIBORModelMonteCarloSimulationModel model)
This method returns the value random variable of the product within the specified model, evaluated at a given evalutationTime.
|
getExecutor, getValues, queryUnderlyingsgetFactorDrift, getValue, getValueForModifiedDatagetCurrency, getValue, getValue, getValues, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCurrency, getValue, getValue, getValues, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedDatapublic AbstractIndex(String name, String currency)
name - The name of an index. Used to map an index on a curve.currency - The natural currency of an index. This more for compatibility purposes, since the information sould be contained in the name.public AbstractIndex(String name)
name - The name of an index. Used to map an index on a curve.public AbstractIndex()
public abstract RandomVariable getValue(double fixingTime, LIBORModelMonteCarloSimulationModel model) throws CalculationException
TermStructureMonteCarloProductgetValue in interface TermStructureMonteCarloProductgetValue in class AbstractLIBORMonteCarloProductfixingTime - 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 String getName()
Copyright © 2019. All rights reserved.