public class AnalyticModel extends Object implements AnalyticModelInterface, Cloneable
AnalyticModel.| Constructor and Description |
|---|
AnalyticModel()
Create an empty analytic model.
|
AnalyticModel(Collection<CurveInterface> curves)
Create an analytic model with the given curves.
|
AnalyticModel(CurveInterface[] curves)
Create an analytic model with the given curves.
|
| Modifier and Type | Method and Description |
|---|---|
AnalyticModelInterface |
addCurve(CurveInterface curve) |
AnalyticModelInterface |
addCurve(String name,
CurveInterface curve)
Add a reference to a given curve under a given name to this model.
|
AnalyticModelInterface |
addCurves(CurveInterface... curves)
Create a new analytic model consisting of a clone of this one together with the given curves added.
|
AnalyticModelInterface |
addCurves(Set<CurveInterface> curves)
Create a new analytic model consisting of a clone of this one together with the given curves added.
|
AnalyticModelInterface |
addVolatilitySurface(VolatilitySurfaceInterface volatilitySurface) |
AnalyticModelInterface |
addVolatilitySurfaces(Set<AbstractVolatilitySurface> volatilitySurfaces)
Create a new analytic model consisting of a clone of this one together with the given volatility surfaces added.
|
AnalyticModelInterface |
addVolatilitySurfaces(VolatilitySurfaceInterface... volatilitySurfaces) |
AnalyticModel |
clone() |
AnalyticModelInterface |
getCloneForParameter(Map<ParameterObjectInterface,double[]> curveParameterPairs) |
CurveInterface |
getCurve(String name)
Get a curve by a given curve name.
|
DiscountCurveInterface |
getDiscountCurve(String discountCurveName)
Returns a discount curve for a given name.
|
ForwardCurveInterface |
getForwardCurve(String forwardCurveName)
Returns a forward curve for a given name.
|
VolatilitySurfaceInterface |
getVolatilitySurface(String name) |
void |
setCurve(CurveInterface curve)
Deprecated.
This class will become immutable. Use addCurve instead.
|
void |
setCurves(CurveInterface[] curves)
Deprecated.
This class will become immutable. Use addCurve instead.
|
void |
setVolatilitySurface(VolatilitySurfaceInterface volatilitySurface)
Deprecated.
This class will become immutable. Use addVolatilitySurface instead.
|
String |
toString() |
public AnalyticModel()
public AnalyticModel(CurveInterface[] curves)
curves - The vector of curves.public AnalyticModel(Collection<CurveInterface> curves)
curves - A collection of curves.public CurveInterface getCurve(String name)
AnalyticModelInterfacegetCurve in interface AnalyticModelInterfacename - The name of the curve.public AnalyticModelInterface addCurve(String name, CurveInterface curve)
AnalyticModelInterfacecurve.getName(). This method comes in handy, if you like to create curve mappings.addCurve in interface AnalyticModelInterfacename - Name under which the curve is known in the model.curve - The curve.public AnalyticModelInterface addCurve(CurveInterface curve)
public AnalyticModelInterface addCurves(CurveInterface... curves)
AnalyticModelInterfaceaddCurves in interface AnalyticModelInterfacecurves - The set of curves to add.public AnalyticModelInterface addCurves(Set<CurveInterface> curves)
AnalyticModelInterfaceaddCurves in interface AnalyticModelInterfacecurves - The list of curves to add.@Deprecated public void setCurve(CurveInterface curve)
setCurve in interface AnalyticModelInterface@Deprecated public void setCurves(CurveInterface[] curves)
curves - Array of curves to set.public DiscountCurveInterface getDiscountCurve(String discountCurveName)
AnalyticModelInterfacegetDiscountCurve in interface AnalyticModelInterfacediscountCurveName - The name of the requested curve.public ForwardCurveInterface getForwardCurve(String forwardCurveName)
AnalyticModelInterfacegetForwardCurve in interface AnalyticModelInterfaceforwardCurveName - The name of the requested curve.public VolatilitySurfaceInterface getVolatilitySurface(String name)
getVolatilitySurface in interface AnalyticModelInterfacepublic AnalyticModelInterface addVolatilitySurface(VolatilitySurfaceInterface volatilitySurface)
public AnalyticModelInterface addVolatilitySurfaces(VolatilitySurfaceInterface... volatilitySurfaces)
addVolatilitySurfaces in interface AnalyticModelInterfacepublic AnalyticModelInterface addVolatilitySurfaces(Set<AbstractVolatilitySurface> volatilitySurfaces)
AnalyticModelInterfaceaddVolatilitySurfaces in interface AnalyticModelInterfacevolatilitySurfaces - The list of volatility surfaces to add.@Deprecated public void setVolatilitySurface(VolatilitySurfaceInterface volatilitySurface)
setVolatilitySurface in interface AnalyticModelInterfacepublic AnalyticModel clone()
clone in interface AnalyticModelInterfaceclone in class Objectpublic AnalyticModelInterface getCloneForParameter(Map<ParameterObjectInterface,double[]> curveParameterPairs) throws CloneNotSupportedException
getCloneForParameter in interface AnalyticModelInterfaceCloneNotSupportedExceptionCopyright © 2017. All rights reserved.