public class AnalyticModel extends Object implements AnalyticModelInterface, Serializable, Cloneable
AnalyticModel
.Constructor and Description |
---|
AnalyticModel()
Create an empty analytic model.
|
AnalyticModel(AbstractRandomVariableFactory randomVariableFactory)
Create an empty analytic model using a given AbstractRandomVariableFactory for construction of result types.
|
AnalyticModel(AbstractRandomVariableFactory randomVariableFactory,
CurveInterface[] curves)
Create an analytic model with the given curves using a given AbstractRandomVariableFactory for construction of result types.
|
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,RandomVariableInterface[]> curveParameterPairs) |
CurveInterface |
getCurve(String name)
Get a curve by a given curve name.
|
Map<String,CurveInterface> |
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.
|
RandomVariableInterface |
getRandomVariableForConstant(double value) |
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.
|
String |
toString() |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDescriptor, getProductFromDesciptor
public AnalyticModel()
public AnalyticModel(AbstractRandomVariableFactory randomVariableFactory)
randomVariableFactory
- given AbstractRandomVariableFactory for construction of result types.public AnalyticModel(CurveInterface[] curves)
curves
- The vector of curves.public AnalyticModel(AbstractRandomVariableFactory randomVariableFactory, CurveInterface[] curves)
randomVariableFactory
- given AbstractRandomVariableFactory for construction of result types.curves
- The vector of curves.public AnalyticModel(Collection<CurveInterface> curves)
curves
- A collection of curves.public RandomVariableInterface getRandomVariableForConstant(double value)
getRandomVariableForConstant
in interface AnalyticModelInterface
public CurveInterface getCurve(String name)
AnalyticModelInterface
getCurve
in interface AnalyticModelInterface
name
- The name of the curve.public Map<String,CurveInterface> getCurves()
AnalyticModelInterface
getCurves
in interface AnalyticModelInterface
public AnalyticModelInterface addCurve(String name, CurveInterface curve)
AnalyticModelInterface
curve.getName()
. This method comes in handy, if you like to create curve mappings.addCurve
in interface AnalyticModelInterface
name
- Name under which the curve is known in the model.curve
- The curve.public AnalyticModelInterface addCurve(CurveInterface curve)
public AnalyticModelInterface addCurves(CurveInterface... curves)
AnalyticModelInterface
addCurves
in interface AnalyticModelInterface
curves
- The set of curves to add.public AnalyticModelInterface addCurves(Set<CurveInterface> curves)
AnalyticModelInterface
addCurves
in interface AnalyticModelInterface
curves
- 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)
AnalyticModelInterface
getDiscountCurve
in interface AnalyticModelInterface
discountCurveName
- The name of the requested curve.public ForwardCurveInterface getForwardCurve(String forwardCurveName)
AnalyticModelInterface
getForwardCurve
in interface AnalyticModelInterface
forwardCurveName
- The name of the requested curve.public VolatilitySurfaceInterface getVolatilitySurface(String name)
getVolatilitySurface
in interface AnalyticModelInterface
public AnalyticModelInterface addVolatilitySurface(VolatilitySurfaceInterface volatilitySurface)
public AnalyticModelInterface addVolatilitySurfaces(VolatilitySurfaceInterface... volatilitySurfaces)
addVolatilitySurfaces
in interface AnalyticModelInterface
public AnalyticModelInterface addVolatilitySurfaces(Set<AbstractVolatilitySurface> volatilitySurfaces)
AnalyticModelInterface
addVolatilitySurfaces
in interface AnalyticModelInterface
volatilitySurfaces
- The list of volatility surfaces to add.public AnalyticModel clone()
clone
in interface AnalyticModelInterface
clone
in class Object
public AnalyticModelInterface getCloneForParameter(Map<ParameterObjectInterface,RandomVariableInterface[]> curveParameterPairs) throws CloneNotSupportedException
getCloneForParameter
in interface AnalyticModelInterface
CloneNotSupportedException
Copyright © 2018. All rights reserved.