public class AnalyticModelWithVolatilityCubes extends AnalyticModelFromCurvesAndVols implements VolatilityCubeModel, Cloneable
VolatilityCubeModel based on AnalyticModelFromCurvesAndVols.| Constructor and Description |
|---|
AnalyticModelWithVolatilityCubes()
Create an empty analytic model.
|
AnalyticModelWithVolatilityCubes(LocalDate referenceDate)
Create an empty analytic model for a specified date.
|
AnalyticModelWithVolatilityCubes(LocalDate referenceDate,
Map<String,Curve> curvesMap,
Map<String,VolatilitySurface> volatilitySurfaceMap,
Map<String,VolatilityCube> volatilityCubeMap)
Create an analytic model for the specified reference date, together with curves as well as volatility surfaces and cubes, each with their specific name.
|
| Modifier and Type | Method and Description |
|---|---|
VolatilityCubeModel |
addVolatilityCube(String volatilityCubeName,
VolatilityCube volatilityCube)
Add a reference to the given volatility cube to this model under the name provided.
|
VolatilityCubeModel |
addVolatilityCube(VolatilityCube volatilityCube)
Add a reference to the given volatility cube to this model.
|
AnalyticModelWithVolatilityCubes |
clone() |
VolatilityCube |
getVolatilityCube(String name)
Get a volatility cube by a given name.
|
Set<String> |
getVolatilityCubeNames()
Return a Set view of all volatility cubes of this model.
|
Map<String,VolatilityCube> |
getVolatilityCubes()
Returns an unmodifiable map of all volatility cubes in the model.
|
String |
toString() |
addCurve, addCurve, addCurves, addCurves, addVolatilitySurface, addVolatilitySurfaces, addVolatilitySurfaces, getCloneForParameter, getCurve, getCurves, getDiscountCurve, getForwardCurve, getReferenceDate, getVolatilitySurface, getVolatilitySurfaces, setCurve, setCurves, setVolatilitySurfaceequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddCurve, addCurves, addCurves, addVolatilitySurfaces, addVolatilitySurfaces, getCloneForParameter, getCurve, getCurves, getDiscountCurve, getForwardCurve, getVolatilitySurface, getVolatilitySurfaces, setCurve, setVolatilitySurfacepublic AnalyticModelWithVolatilityCubes()
public AnalyticModelWithVolatilityCubes(LocalDate referenceDate)
referenceDate - The reference date the curves of this model should match.public AnalyticModelWithVolatilityCubes(LocalDate referenceDate, Map<String,Curve> curvesMap, Map<String,VolatilitySurface> volatilitySurfaceMap, Map<String,VolatilityCube> volatilityCubeMap)
referenceDate - The reference date that should be used for all curves and surfaces of this model.curvesMap - A map containing all curves, together with their names they should have in the model.volatilitySurfaceMap - A map containing all volatility surfaces, together with their names they should have in the model.volatilityCubeMap - A map containing all volatility cubes, together with their names they should have in the model.public VolatilityCube getVolatilityCube(String name)
VolatilityCubeModelgetVolatilityCube in interface VolatilityCubeModelname - The name of the volatility cube.public VolatilityCubeModel addVolatilityCube(VolatilityCube volatilityCube)
VolatilityCubeModeladdVolatilityCube in interface VolatilityCubeModelvolatilityCube - The cube.public VolatilityCubeModel addVolatilityCube(String volatilityCubeName, VolatilityCube volatilityCube)
VolatilityCubeModeladdVolatilityCube in interface VolatilityCubeModelvolatilityCubeName - The name under which this cube is to known in the model.volatilityCube - The cube.public AnalyticModelWithVolatilityCubes clone()
clone in interface AnalyticModelclone in class AnalyticModelFromCurvesAndVolspublic String toString()
toString in class AnalyticModelFromCurvesAndVolspublic Set<String> getVolatilityCubeNames()
VolatilityCubeModelgetVolatilityCubeNames in interface VolatilityCubeModelpublic Map<String,VolatilityCube> getVolatilityCubes()
VolatilityCubeModelgetVolatilityCubes in interface VolatilityCubeModelCopyright © 2019. All rights reserved.