public interface AnalyticModelInterface extends ModelInterface, Cloneable
Modifier and Type | Method and Description |
---|---|
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 |
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) |
AnalyticModelInterface |
clone() |
AnalyticModelInterface |
getCloneForParameter(Map<ParameterObjectInterface,double[]> curvesParameterPairs) |
CurveInterface |
getCurve(String name)
Get a curve by a given curve name.
|
DiscountCurveInterface |
getDiscountCurve(String discountCurveName) |
ForwardCurveInterface |
getForwardCurve(String forwardCurveName) |
VolatilitySurfaceInterface |
getVolatilitySurface(String name) |
void |
setCurve(CurveInterface curve)
Deprecated.
|
void |
setVolatilitySurface(VolatilitySurfaceInterface volatilitySurface)
Deprecated.
|
CurveInterface getCurve(String name)
name
- The name of the curve.AnalyticModelInterface addCurve(String name, CurveInterface curve)
curve.getName()
. This method comes in handy, if you like to create curve mappings.name
- Name under which the curve is known in the model.curve
- The curve.AnalyticModelInterface addCurves(CurveInterface... curves)
curves
- The set of curves to add.AnalyticModelInterface addCurves(Set<CurveInterface> curves)
curves
- The list of curves to add.@Deprecated void setCurve(CurveInterface curve)
DiscountCurveInterface getDiscountCurve(String discountCurveName)
ForwardCurveInterface getForwardCurve(String forwardCurveName)
VolatilitySurfaceInterface getVolatilitySurface(String name)
AnalyticModelInterface addVolatilitySurfaces(VolatilitySurfaceInterface... volatilitySurfaces)
AnalyticModelInterface addVolatilitySurfaces(Set<AbstractVolatilitySurface> volatilitySurfaces)
volatilitySurfaces
- The list of volatility surfaces to add.@Deprecated void setVolatilitySurface(VolatilitySurfaceInterface volatilitySurface)
AnalyticModelInterface clone()
AnalyticModelInterface getCloneForParameter(Map<ParameterObjectInterface,double[]> curvesParameterPairs) throws CloneNotSupportedException
CloneNotSupportedException
Copyright © 2015. All rights reserved.