public interface RecoveryRates extends MarketDataView, ParameterizedData
This represents the recovery rates of a legal entity.
| Modifier and Type | Method and Description |
|---|---|
StandardId |
getLegalEntityId()
Gets the standard identifier of a legal entity.
|
LocalDate |
getValuationDate()
Gets the valuation date.
|
static RecoveryRates |
of(StandardId legalEntityId,
LocalDate valuationDate,
Curve curve)
Obtains an instance from a curve.
|
double |
recoveryRate(LocalDate date)
Gets the recovery rate for the specified date.
|
RecoveryRates |
withParameter(int parameterIndex,
double newValue) |
RecoveryRates |
withPerturbation(ParameterPerturbation perturbation) |
findDatafindParameterIndex, getParameter, getParameterCount, getParameterMetadatastatic RecoveryRates of(StandardId legalEntityId, LocalDate valuationDate, Curve curve)
If the curve is ConstantCurve, ConstantRecoveryRates is always instantiated.
If the curve is NodalCurve, NodalRecoveryRates is always instantiated.
legalEntityId - the legal entity identifiervaluationDate - the valuation date for which the curve is validcurve - the underlying curveLocalDate getValuationDate()
getValuationDate in interface MarketDataViewStandardId getLegalEntityId()
double recoveryRate(LocalDate date)
date - the dateRecoveryRates withParameter(int parameterIndex, double newValue)
withParameter in interface ParameterizedDataRecoveryRates withPerturbation(ParameterPerturbation perturbation)
withPerturbation in interface ParameterizedDataCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.