Module net.finmath.lib
Package net.finmath.singleswaprate.model
Class AnalyticModelWithVolatilityCubes
java.lang.Object
net.finmath.marketdata.model.AnalyticModelFromCurvesAndVols
net.finmath.singleswaprate.model.AnalyticModelWithVolatilityCubes
- All Implemented Interfaces:
Serializable,Cloneable,AnalyticModel,Model,VolatilityCubeModel
public class AnalyticModelWithVolatilityCubes
extends AnalyticModelFromCurvesAndVols
implements VolatilityCubeModel, Cloneable
Implementation of
VolatilityCubeModel based on AnalyticModelFromCurvesAndVols.- Author:
- Christian Fries, Roland Bachl
- See Also:
- Serialized Form
-
Constructor Summary
ConstructorsConstructorDescriptionCreate 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. -
Method Summary
Modifier and TypeMethodDescriptionaddVolatilityCube(String volatilityCubeName, VolatilityCube volatilityCube)Add a reference to the given volatility cube to this model under the name provided.addVolatilityCube(VolatilityCube volatilityCube)Add a reference to the given volatility cube to this model.clone()getVolatilityCube(String name)Get a volatility cube by a given name.Return a Set view of all volatility cubes of this model.Returns an unmodifiable map of all volatility cubes in the model.toString()Methods inherited from class net.finmath.marketdata.model.AnalyticModelFromCurvesAndVols
addCurve, addCurve, addCurves, addCurves, addVolatilitySurface, addVolatilitySurfaces, addVolatilitySurfaces, getCloneForParameter, getCurve, getCurves, getDiscountCurve, getForwardCurve, getReferenceDate, getVolatilitySurface, getVolatilitySurfacesMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.finmath.marketdata.model.AnalyticModel
addCurve, addCurves, addCurves, addVolatilitySurfaces, addVolatilitySurfaces, getCloneForParameter, getCurve, getCurves, getDiscountCurve, getForwardCurve, getVolatilitySurface, getVolatilitySurfaces
-
Constructor Details
-
AnalyticModelWithVolatilityCubes
public AnalyticModelWithVolatilityCubes()Create an empty analytic model. -
AnalyticModelWithVolatilityCubes
Create an empty analytic model for a specified date.- Parameters:
referenceDate- The reference date the curves of this model should match.
-
AnalyticModelWithVolatilityCubes
public 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.- Parameters:
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.
-
-
Method Details
-
getVolatilityCube
Description copied from interface:VolatilityCubeModelGet a volatility cube by a given name.- Specified by:
getVolatilityCubein interfaceVolatilityCubeModel- Parameters:
name- The name of the volatility cube.- Returns:
- The cube with the corresponding name, given that it is part of this model, otherwise null is return.
-
addVolatilityCube
Description copied from interface:VolatilityCubeModelAdd a reference to the given volatility cube to this model.- Specified by:
addVolatilityCubein interfaceVolatilityCubeModel- Parameters:
volatilityCube- The cube.- Returns:
- A clone of this model, with the given cube added or overwritten.
-
addVolatilityCube
public VolatilityCubeModel addVolatilityCube(String volatilityCubeName, VolatilityCube volatilityCube)Description copied from interface:VolatilityCubeModelAdd a reference to the given volatility cube to this model under the name provided.- Specified by:
addVolatilityCubein interfaceVolatilityCubeModel- Parameters:
volatilityCubeName- The name under which this cube is to known in the model.volatilityCube- The cube.- Returns:
- A clone of this model, with the given cube added or overwritten under the name provided.
-
clone
- Specified by:
clonein interfaceAnalyticModel- Overrides:
clonein classAnalyticModelFromCurvesAndVols
-
toString
- Overrides:
toStringin classAnalyticModelFromCurvesAndVols
-
getVolatilityCubeNames
Description copied from interface:VolatilityCubeModelReturn a Set view of all volatility cubes of this model.- Specified by:
getVolatilityCubeNamesin interfaceVolatilityCubeModel- Returns:
- The set containing all names of volatility cubes referenced in this model.
-
getVolatilityCubes
Description copied from interface:VolatilityCubeModelReturns an unmodifiable map of all volatility cubes in the model.- Specified by:
getVolatilityCubesin interfaceVolatilityCubeModel- Returns:
- Map of all volatility cubes.
-