net.finmath.marketdata.model
Interface AnalyticModelInterface
-
- All Superinterfaces:
- java.lang.Cloneable, ModelInterface
- All Known Implementing Classes:
- AnalyticModel
public interface AnalyticModelInterface extends ModelInterface, java.lang.Cloneable
A collection of objects representing analytic valuations, i.e., curves and volatility surfaces.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method and Description AnalyticModelInterfaceaddCurve(java.lang.String name, CurveInterface curve)Add a reference to a given curve under a given name to this model.AnalyticModelInterfaceaddCurves(CurveInterface... curves)Create a new analytic model consisting of a clone of this one together with the given curves added.AnalyticModelInterfaceaddCurves(java.util.Set<CurveInterface> curves)Create a new analytic model consisting of a clone of this one together with the given curves added.AnalyticModelInterfaceaddVolatilitySurfaces(java.util.Set<AbstractVolatilitySurface> volatilitySurfaces)Create a new analytic model consisting of a clone of this one together with the given volatility surfaces added.AnalyticModelInterfaceaddVolatilitySurfaces(VolatilitySurfaceInterface... volatilitySurfaces)AnalyticModelInterfaceclone()AnalyticModelInterfacegetCloneForParameter(java.util.Map<ParameterObjectInterface,double[]> curvesParameterPairs)CurveInterfacegetCurve(java.lang.String name)Get a curve by a given curve name.DiscountCurveInterfacegetDiscountCurve(java.lang.String discountCurveName)ForwardCurveInterfacegetForwardCurve(java.lang.String forwardCurveName)VolatilitySurfaceInterfacegetVolatilitySurface(java.lang.String name)voidsetCurve(CurveInterface curve)Deprecated.voidsetVolatilitySurface(VolatilitySurfaceInterface volatilitySurface)Deprecated.
-
-
-
Method Detail
-
getCurve
CurveInterface getCurve(java.lang.String name)
Get a curve by a given curve name.- Parameters:
name- The name of the curve.- Returns:
- The curve with the corresponding name, given that it is part of this model, otherwise null is return.
-
addCurve
AnalyticModelInterface addCurve(java.lang.String name, CurveInterface curve)
Add a reference to a given curve under a given name to this model. It is not necessary that the name given agrees withcurve.getName(). This method comes in handy, if you like to create curve mappings.- Parameters:
name- Name under which the curve is known in the model.curve- The curve.- Returns:
- A clone of this model, containing the curves of this model which are not known under the given name and the new curve under the given name.
-
addCurves
AnalyticModelInterface addCurves(CurveInterface... curves)
Create a new analytic model consisting of a clone of this one together with the given curves added.- Parameters:
curves- The set of curves to add.- Returns:
- A new analytic model.
-
addCurves
AnalyticModelInterface addCurves(java.util.Set<CurveInterface> curves)
Create a new analytic model consisting of a clone of this one together with the given curves added.- Parameters:
curves- The list of curves to add.- Returns:
- A new analytic model.
-
setCurve
@Deprecated void setCurve(CurveInterface curve)
Deprecated.
-
getDiscountCurve
DiscountCurveInterface getDiscountCurve(java.lang.String discountCurveName)
-
getForwardCurve
ForwardCurveInterface getForwardCurve(java.lang.String forwardCurveName)
-
getVolatilitySurface
VolatilitySurfaceInterface getVolatilitySurface(java.lang.String name)
-
addVolatilitySurfaces
AnalyticModelInterface addVolatilitySurfaces(VolatilitySurfaceInterface... volatilitySurfaces)
-
addVolatilitySurfaces
AnalyticModelInterface addVolatilitySurfaces(java.util.Set<AbstractVolatilitySurface> volatilitySurfaces)
Create a new analytic model consisting of a clone of this one together with the given volatility surfaces added.- Parameters:
volatilitySurfaces- The list of volatility surfaces to add.- Returns:
- A new analytic model.
-
setVolatilitySurface
@Deprecated void setVolatilitySurface(VolatilitySurfaceInterface volatilitySurface)
Deprecated.
-
clone
AnalyticModelInterface clone()
-
getCloneForParameter
AnalyticModelInterface getCloneForParameter(java.util.Map<ParameterObjectInterface,double[]> curvesParameterPairs) throws java.lang.CloneNotSupportedException
- Throws:
java.lang.CloneNotSupportedException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG