public abstract class AbstractVolatilitySurface extends Object implements VolatilitySurfaceInterface, Cloneable
VolatilitySurfaceInterface.QuotingConvention| Modifier and Type | Field and Description |
|---|---|
protected DayCountConventionInterface |
daycountConvention |
protected DiscountCurveInterface |
discountCurve |
protected ForwardCurveInterface |
forwardCurve |
protected VolatilitySurfaceInterface.QuotingConvention |
quotingConvention |
| Constructor and Description |
|---|
AbstractVolatilitySurface(String name,
LocalDate referenceDate) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
double |
convertFromTo(AnalyticModelInterface model,
double optionMaturity,
double optionStrike,
double value,
VolatilitySurfaceInterface.QuotingConvention fromQuotingConvention,
VolatilitySurfaceInterface.QuotingConvention toQuotingConvention)
Convert the value of a caplet from one quoting convention to another quoting convention.
|
double |
convertFromTo(double optionMaturity,
double optionStrike,
double value,
VolatilitySurfaceInterface.QuotingConvention fromQuotingConvention,
VolatilitySurfaceInterface.QuotingConvention toQuotingConvention)
Convert the value of a caplet from one quoting convention to another quoting convention.
|
String |
getName()
Returns the name of the volatility surface.
|
VolatilitySurfaceInterface.QuotingConvention |
getQuotingConvention()
Return the default quoting convention of this surface.
|
LocalDate |
getReferenceDate()
Return the reference date of this surface, i.e. the date
associated with t=0.
|
String |
toString() |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetValue, getValueprotected ForwardCurveInterface forwardCurve
protected DiscountCurveInterface discountCurve
protected VolatilitySurfaceInterface.QuotingConvention quotingConvention
protected DayCountConventionInterface daycountConvention
public String getName()
VolatilitySurfaceInterfacegetName in interface VolatilitySurfaceInterfacepublic LocalDate getReferenceDate()
VolatilitySurfaceInterfacegetReferenceDate in interface VolatilitySurfaceInterfacepublic Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic VolatilitySurfaceInterface.QuotingConvention getQuotingConvention()
VolatilitySurfaceInterfacegetQuotingConvention in interface VolatilitySurfaceInterfacepublic double convertFromTo(AnalyticModelInterface model, double optionMaturity, double optionStrike, double value, VolatilitySurfaceInterface.QuotingConvention fromQuotingConvention, VolatilitySurfaceInterface.QuotingConvention toQuotingConvention)
model - An analytic model providing the context when fetching required market date.optionMaturity - Option maturity of the caplet.optionStrike - Option strike of the caplet.value - Value of the caplet given in the form of fromQuotingConvention.fromQuotingConvention - The quoting convention of the given value.toQuotingConvention - The quoting convention requested.toQuotingConvention.public double convertFromTo(double optionMaturity,
double optionStrike,
double value,
VolatilitySurfaceInterface.QuotingConvention fromQuotingConvention,
VolatilitySurfaceInterface.QuotingConvention toQuotingConvention)
optionMaturity - Option maturity of the caplet.optionStrike - Option strike of the caplet.value - Value of the caplet given in the form of fromQuotingConvention.fromQuotingConvention - The quoting convention of the given value.toQuotingConvention - The quoting convention requested.toQuotingConvention.Copyright © 2017. All rights reserved.