public class ConstantMaturitySwaprate extends AbstractIndex
| Constructor and Description |
|---|
ConstantMaturitySwaprate(double[] periodLengths)
Create a CMS index with given period lengths.
|
ConstantMaturitySwaprate(double maturity,
double periodLength)
Create a CMS index with given maturity and given period length.
|
ConstantMaturitySwaprate(double fixingOffset,
double[] periodLengths)
Create a CMS index with given fixing offset and given period lengths.
|
ConstantMaturitySwaprate(double fixingOffset,
double maturity,
double periodLength)
Create a CMS index with given fixing offset and given maturity and given period length.
|
ConstantMaturitySwaprate(String name,
String currency,
double fixingOffset,
double[] periodLengths)
Create a CMS index with given fixing offset and given period lengths.
|
ConstantMaturitySwaprate(String name,
String currency,
double fixingOffset,
double maturity,
double periodLength)
Create a CMS index with given fixing offset and given maturity and given period length.
|
| Modifier and Type | Method and Description |
|---|---|
RandomVariable |
getValue(double evaluationTime,
LIBORModelMonteCarloSimulationModel 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.
|
String |
toString() |
getNamegetExecutor, getValuesgetFactorDrift, getValue, getValueForModifiedDatagetCurrency, getValue, getValue, getValues, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCurrency, getValue, getValue, getValues, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedDatapublic ConstantMaturitySwaprate(String name, String currency, double fixingOffset, double[] periodLengths)
name - The name of the underlying index.currency - The currency of the underlying index, if any.fixingOffset - Fixing offset of this index.periodLengths - Period length of underlying swap, used for the swap annuity calculation.public ConstantMaturitySwaprate(double fixingOffset,
double[] periodLengths)
fixingOffset - Fixing offset of this index.periodLengths - Period length of underlying swap, used for the swap annuity calculation.public ConstantMaturitySwaprate(double[] periodLengths)
periodLengths - Period length of underlying swap, used for the swap annuity calculation.public ConstantMaturitySwaprate(String name, String currency, double fixingOffset, double maturity, double periodLength)
name - The name of the underlying index.currency - The currency of the underlying index, if any.fixingOffset - Fixing offset of this index.maturity - The maturity.periodLength - Period length of underlying swap, used for the swap annuity calculation.public ConstantMaturitySwaprate(double fixingOffset,
double maturity,
double periodLength)
fixingOffset - Fixing offset of this index.maturity - The maturity.periodLength - Period length of underlying swap, used for the swap annuity calculation.public ConstantMaturitySwaprate(double maturity,
double periodLength)
maturity - Maturity of the swap rate.periodLength - Period length of the fixed size (determines the swap annuity used)public RandomVariable getValue(double evaluationTime, LIBORModelMonteCarloSimulationModel model) throws CalculationException
TermStructureMonteCarloProductgetValue in interface TermStructureMonteCarloProductgetValue in class AbstractIndexevaluationTime - 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 AbstractProductComponentpublic String toString()
toString in class AbstractMonteCarloProductCopyright © 2019. All rights reserved.