Class SabrParametersSwaptionVolatilities.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<SabrParametersSwaptionVolatilities>
-
- com.opengamma.strata.pricer.swaption.SabrParametersSwaptionVolatilities.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<SabrParametersSwaptionVolatilities>
- Enclosing class:
- SabrParametersSwaptionVolatilities
public static final class SabrParametersSwaptionVolatilities.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<SabrParametersSwaptionVolatilities>
The bean-builder forSabrParametersSwaptionVolatilities.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SabrParametersSwaptionVolatilitiesbuild()SabrParametersSwaptionVolatilities.Builderconvention(FixedFloatSwapConvention convention)Sets the swap convention that the volatilities are to be used for.SabrParametersSwaptionVolatilities.BuilderdataSensitivityAlpha(DoubleArray... dataSensitivityAlpha)Sets thedataSensitivityAlphaproperty in the builder from an array of objects.SabrParametersSwaptionVolatilities.BuilderdataSensitivityAlpha(List<DoubleArray> dataSensitivityAlpha)Sets the sensitivity of the Alpha parameters to the raw data used for calibration.SabrParametersSwaptionVolatilities.BuilderdataSensitivityBeta(DoubleArray... dataSensitivityBeta)Sets thedataSensitivityBetaproperty in the builder from an array of objects.SabrParametersSwaptionVolatilities.BuilderdataSensitivityBeta(List<DoubleArray> dataSensitivityBeta)Sets the sensitivity of the Beta parameters to the raw data used for calibration.SabrParametersSwaptionVolatilities.BuilderdataSensitivityNu(DoubleArray... dataSensitivityNu)Sets thedataSensitivityNuproperty in the builder from an array of objects.SabrParametersSwaptionVolatilities.BuilderdataSensitivityNu(List<DoubleArray> dataSensitivityNu)Sets the sensitivity of the Nu parameters to the raw data used for calibration.SabrParametersSwaptionVolatilities.BuilderdataSensitivityRho(DoubleArray... dataSensitivityRho)Sets thedataSensitivityRhoproperty in the builder from an array of objects.SabrParametersSwaptionVolatilities.BuilderdataSensitivityRho(List<DoubleArray> dataSensitivityRho)Sets the sensitivity of the Rho parameters to the raw data used for calibration.Objectget(String propertyName)SabrParametersSwaptionVolatilities.Buildername(SwaptionVolatilitiesName name)Sets the name.SabrParametersSwaptionVolatilities.Builderparameters(SabrInterestRateParameters parameters)Sets the SABR model parameters.SabrParametersSwaptionVolatilities.Builderset(String propertyName, Object newValue)SabrParametersSwaptionVolatilities.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()SabrParametersSwaptionVolatilities.BuildervaluationDateTime(ZonedDateTime valuationDateTime)Sets the valuation date-time.
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<SabrParametersSwaptionVolatilities>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<SabrParametersSwaptionVolatilities>
-
set
public SabrParametersSwaptionVolatilities.Builder set(String propertyName, Object newValue)
-
set
public SabrParametersSwaptionVolatilities.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<SabrParametersSwaptionVolatilities>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<SabrParametersSwaptionVolatilities>
-
build
public SabrParametersSwaptionVolatilities build()
-
name
public SabrParametersSwaptionVolatilities.Builder name(SwaptionVolatilitiesName name)
Sets the name.- Parameters:
name- the new value, not null- Returns:
- this, for chaining, not null
-
convention
public SabrParametersSwaptionVolatilities.Builder convention(FixedFloatSwapConvention convention)
Sets the swap convention that the volatilities are to be used for.- Parameters:
convention- the new value, not null- Returns:
- this, for chaining, not null
-
valuationDateTime
public SabrParametersSwaptionVolatilities.Builder valuationDateTime(ZonedDateTime valuationDateTime)
Sets the valuation date-time.The volatilities are calibrated for this date-time.
- Parameters:
valuationDateTime- the new value, not null- Returns:
- this, for chaining, not null
-
parameters
public SabrParametersSwaptionVolatilities.Builder parameters(SabrInterestRateParameters parameters)
Sets the SABR model parameters.Each model parameter of SABR model is a surface. The x-value of the surface is the expiry, as a year fraction. The y-value of the surface is the swap tenor, as a year fraction rounded to the month.
- Parameters:
parameters- the new value, not null- Returns:
- this, for chaining, not null
-
dataSensitivityAlpha
public SabrParametersSwaptionVolatilities.Builder dataSensitivityAlpha(List<DoubleArray> dataSensitivityAlpha)
Sets the sensitivity of the Alpha parameters to the raw data used for calibration.The order of the sensitivities have to be coherent with the surface parameter metadata.
- Parameters:
dataSensitivityAlpha- the new value- Returns:
- this, for chaining, not null
-
dataSensitivityAlpha
public SabrParametersSwaptionVolatilities.Builder dataSensitivityAlpha(DoubleArray... dataSensitivityAlpha)
Sets thedataSensitivityAlphaproperty in the builder from an array of objects.- Parameters:
dataSensitivityAlpha- the new value- Returns:
- this, for chaining, not null
-
dataSensitivityBeta
public SabrParametersSwaptionVolatilities.Builder dataSensitivityBeta(List<DoubleArray> dataSensitivityBeta)
Sets the sensitivity of the Beta parameters to the raw data used for calibration.The order of the sensitivities have to be coherent with the surface parameter metadata.
- Parameters:
dataSensitivityBeta- the new value- Returns:
- this, for chaining, not null
-
dataSensitivityBeta
public SabrParametersSwaptionVolatilities.Builder dataSensitivityBeta(DoubleArray... dataSensitivityBeta)
Sets thedataSensitivityBetaproperty in the builder from an array of objects.- Parameters:
dataSensitivityBeta- the new value- Returns:
- this, for chaining, not null
-
dataSensitivityRho
public SabrParametersSwaptionVolatilities.Builder dataSensitivityRho(List<DoubleArray> dataSensitivityRho)
Sets the sensitivity of the Rho parameters to the raw data used for calibration.The order of the sensitivities have to be coherent with the surface parameter metadata.
- Parameters:
dataSensitivityRho- the new value- Returns:
- this, for chaining, not null
-
dataSensitivityRho
public SabrParametersSwaptionVolatilities.Builder dataSensitivityRho(DoubleArray... dataSensitivityRho)
Sets thedataSensitivityRhoproperty in the builder from an array of objects.- Parameters:
dataSensitivityRho- the new value- Returns:
- this, for chaining, not null
-
dataSensitivityNu
public SabrParametersSwaptionVolatilities.Builder dataSensitivityNu(List<DoubleArray> dataSensitivityNu)
Sets the sensitivity of the Nu parameters to the raw data used for calibration.The order of the sensitivities have to be coherent with the surface parameter metadata.
- Parameters:
dataSensitivityNu- the new value- Returns:
- this, for chaining, not null
-
dataSensitivityNu
public SabrParametersSwaptionVolatilities.Builder dataSensitivityNu(DoubleArray... dataSensitivityNu)
Sets thedataSensitivityNuproperty in the builder from an array of objects.- Parameters:
dataSensitivityNu- the new value- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<SabrParametersSwaptionVolatilities>
-
-