public class AnalyticModelFromCurvesAndVols extends Object implements AnalyticModel, Serializable, Cloneable
AnalyticModelFromCuvesAndVols.| Constructor and Description |
|---|
AnalyticModelFromCurvesAndVols()
Create an empty analytic model.
|
AnalyticModelFromCurvesAndVols(AbstractRandomVariableFactory randomVariableFactory)
Create an empty analytic model using a given AbstractRandomVariableFactory for construction of result types.
|
AnalyticModelFromCurvesAndVols(AbstractRandomVariableFactory randomVariableFactory,
Curve[] curves)
Create an analytic model with the given curves using a given AbstractRandomVariableFactory for construction of result types.
|
AnalyticModelFromCurvesAndVols(Collection<Curve> curves)
Create an analytic model with the given curves.
|
AnalyticModelFromCurvesAndVols(Curve[] curves)
Create an analytic model with the given curves.
|
| 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,RandomVariable[]> curveParameterPairs) |
Curve |
getCurve(String name)
Get a curve by a given curve name.
|
Map<String,Curve> |
getCurves()
Returns an unmodifiable map of all curves.
|
DiscountCurveInterface |
getDiscountCurve(String discountCurveName)
Returns a discount curve for a given name.
|
ForwardCurveInterface |
getForwardCurve(String forwardCurveName)
Returns a forward curve for a given name.
|
RandomVariable |
getRandomVariableForConstant(double value) |
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.
|
String |
toString() |
public AnalyticModelFromCurvesAndVols()
public AnalyticModelFromCurvesAndVols(AbstractRandomVariableFactory randomVariableFactory)
randomVariableFactory - given AbstractRandomVariableFactory for construction of result types.public AnalyticModelFromCurvesAndVols(Curve[] curves)
curves - The vector of curves.public AnalyticModelFromCurvesAndVols(AbstractRandomVariableFactory randomVariableFactory, Curve[] curves)
randomVariableFactory - given AbstractRandomVariableFactory for construction of result types.curves - The vector of curves.public AnalyticModelFromCurvesAndVols(Collection<Curve> curves)
curves - A collection of curves.public RandomVariable getRandomVariableForConstant(double value)
getRandomVariableForConstant in interface AnalyticModelpublic 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 DiscountCurveInterface getDiscountCurve(String discountCurveName)
AnalyticModelgetDiscountCurve in interface AnalyticModeldiscountCurveName - The name of the requested curve.public ForwardCurveInterface 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.public AnalyticModelFromCurvesAndVols clone()
clone in interface AnalyticModelclone in class Objectpublic AnalyticModel getCloneForParameter(Map<ParameterObject,RandomVariable[]> curveParameterPairs) throws CloneNotSupportedException
getCloneForParameter in interface AnalyticModelCloneNotSupportedExceptionCopyright © 2019. All rights reserved.