public class AnalyticModelFromCurvesAndVols extends Object implements AnalyticModel, Serializable, Cloneable
AnalyticModelFromCuvesAndVols.| Constructor and Description |
|---|
AnalyticModelFromCurvesAndVols()
Create an empty analytic model.
|
AnalyticModelFromCurvesAndVols(Collection<Curve> curves)
Create an analytic model with the given curves.
|
AnalyticModelFromCurvesAndVols(Curve[] curves)
Create an analytic model with the given curves.
|
AnalyticModelFromCurvesAndVols(LocalDate referenceDate)
Create an empty analytic model for a specified date.
|
AnalyticModelFromCurvesAndVols(LocalDate referenceDate,
Collection<Curve> curves)
Create an analytic model with the given curves for the specified reference date.
|
AnalyticModelFromCurvesAndVols(LocalDate referenceDate,
Curve[] curves)
Create an analytic model with the given curves for the specified reference date.
|
AnalyticModelFromCurvesAndVols(LocalDate referenceDate,
Map<String,Curve> curvesMap,
Map<String,VolatilitySurface> volatilitySurfaceMap)
Create an analytic model for the specified reference date, together with curves and volatility surfaces, each with their specific name.
|
| Modifier and Type | Method and Description |
|---|---|
AnalyticModel |
addCurve(Curve curve) |
AnalyticModel |
addCurve(String name,
Curve curve)
Add a reference to a given curve under a given name to this model.
|
AnalyticModel |
addCurves(Curve... curves)
Create a new analytic model consisting of a clone of this one together with the given curves added.
|
AnalyticModel |
addCurves(Set<Curve> curves)
Create a new analytic model consisting of a clone of this one together with the given curves added.
|
AnalyticModel |
addVolatilitySurface(VolatilitySurface volatilitySurface) |
AnalyticModel |
addVolatilitySurfaces(Set<VolatilitySurface> volatilitySurfaces)
Create a new analytic model consisting of a clone of this one together with the given volatility surfaces added.
|
AnalyticModel |
addVolatilitySurfaces(VolatilitySurface... volatilitySurfaces) |
AnalyticModelFromCurvesAndVols |
clone() |
AnalyticModel |
getCloneForParameter(Map<ParameterObject,double[]> curveParameterPairs) |
Curve |
getCurve(String name)
Get a curve by a given curve name.
|
Map<String,Curve> |
getCurves()
Returns an unmodifiable map of all curves.
|
DiscountCurve |
getDiscountCurve(String discountCurveName)
Returns a discount curve for a given name.
|
ForwardCurve |
getForwardCurve(String forwardCurveName)
Returns a forward curve for a given name.
|
LocalDate |
getReferenceDate()
Returns the reference date of the curves of this model.
|
VolatilitySurface |
getVolatilitySurface(String name)
Returns a volatility surface for a given name.
|
Map<String,VolatilitySurface> |
getVolatilitySurfaces()
Returns an unmodifiable map of all volatility surfaces.
|
void |
setCurve(Curve curve)
Deprecated.
This class will become immutable. Use addCurve instead.
|
void |
setCurves(Curve[] curves)
Deprecated.
This class will become immutable. Use addCurve instead.
|
void |
setVolatilitySurface(VolatilitySurface volatilitySurface)
Deprecated.
This class will become immutable. Use addVolatilitySurface instead.
|
String |
toString() |
public AnalyticModelFromCurvesAndVols()
public AnalyticModelFromCurvesAndVols(LocalDate referenceDate)
referenceDate - The reference date that should be used for all curves and surfaces of this model.public AnalyticModelFromCurvesAndVols(Curve[] curves)
curves - The vector of curves.public AnalyticModelFromCurvesAndVols(Collection<Curve> curves)
curves - A collection of curves.public AnalyticModelFromCurvesAndVols(LocalDate referenceDate, Curve[] curves)
referenceDate - The reference date that should be used for all curves and surfaces of this model.curves - The vector of curves.public AnalyticModelFromCurvesAndVols(LocalDate referenceDate, Collection<Curve> curves)
referenceDate - The reference date that should be used for all curves and surfaces of this model.curves - A collection of curves.public AnalyticModelFromCurvesAndVols(LocalDate referenceDate, Map<String,Curve> curvesMap, Map<String,VolatilitySurface> volatilitySurfaceMap)
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.public Curve getCurve(String name)
AnalyticModelgetCurve in interface AnalyticModelname - The name of the curve.public Map<String,Curve> getCurves()
AnalyticModelgetCurves in interface AnalyticModelpublic AnalyticModel addCurve(String name, Curve curve)
AnalyticModelcurve.getName(). This method comes in handy, if you like to create curve mappings.addCurve in interface AnalyticModelname - Name under which the curve is known in the model.curve - The curve.public AnalyticModel addCurve(Curve curve)
public AnalyticModel addCurves(Curve... curves)
AnalyticModeladdCurves in interface AnalyticModelcurves - The set of curves to add.public AnalyticModel addCurves(Set<Curve> curves)
AnalyticModeladdCurves in interface AnalyticModelcurves - The list of curves to add.@Deprecated public void setCurve(Curve curve)
setCurve in interface AnalyticModel@Deprecated public void setCurves(Curve[] curves)
curves - Array of curves to set.public DiscountCurve getDiscountCurve(String discountCurveName)
AnalyticModelgetDiscountCurve in interface AnalyticModeldiscountCurveName - The name of the requested curve.public ForwardCurve getForwardCurve(String forwardCurveName)
AnalyticModelgetForwardCurve in interface AnalyticModelforwardCurveName - The name of the requested curve.public VolatilitySurface getVolatilitySurface(String name)
AnalyticModelgetVolatilitySurface in interface AnalyticModelname - THe name of the requested surface.public Map<String,VolatilitySurface> getVolatilitySurfaces()
AnalyticModelgetVolatilitySurfaces in interface AnalyticModelpublic AnalyticModel addVolatilitySurface(VolatilitySurface volatilitySurface)
public AnalyticModel addVolatilitySurfaces(VolatilitySurface... volatilitySurfaces)
addVolatilitySurfaces in interface AnalyticModelpublic AnalyticModel addVolatilitySurfaces(Set<VolatilitySurface> volatilitySurfaces)
AnalyticModeladdVolatilitySurfaces in interface AnalyticModelvolatilitySurfaces - The list of volatility surfaces to add.@Deprecated public void setVolatilitySurface(VolatilitySurface volatilitySurface)
setVolatilitySurface in interface AnalyticModelpublic AnalyticModelFromCurvesAndVols clone()
clone in interface AnalyticModelclone in class Objectpublic AnalyticModel getCloneForParameter(Map<ParameterObject,double[]> curveParameterPairs) throws CloneNotSupportedException
getCloneForParameter in interface AnalyticModelCloneNotSupportedExceptionpublic LocalDate getReferenceDate()
Copyright © 2019. All rights reserved.