Class SwaptionSurfaceExpirySimpleMoneynessParameterMetadata
- java.lang.Object
-
- com.opengamma.strata.pricer.swaption.SwaptionSurfaceExpirySimpleMoneynessParameterMetadata
-
- All Implemented Interfaces:
ParameterMetadata,Serializable,org.joda.beans.Bean,org.joda.beans.ImmutableBean
public final class SwaptionSurfaceExpirySimpleMoneynessParameterMetadata extends Object implements ParameterMetadata, org.joda.beans.ImmutableBean, Serializable
Surface node metadata for a surface node for swaptions with a specific time to expiry and simple moneyness.This typically represents a node of swaption volatility surface parameterized by expiry and simple moneyness.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSwaptionSurfaceExpirySimpleMoneynessParameterMetadata.MetaThe meta-bean forSwaptionSurfaceExpirySimpleMoneynessParameterMetadata.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Pair<Double,Double>getIdentifier()Returns an object used to identify the parameter.StringgetLabel()Gets the label that describes the node.doublegetSimpleMoneyness()Gets the simple moneyness of the surface node.doublegetYearFraction()Gets the year fraction of the surface node.inthashCode()static SwaptionSurfaceExpirySimpleMoneynessParameterMetadata.Metameta()The meta-bean forSwaptionSurfaceExpirySimpleMoneynessParameterMetadata.SwaptionSurfaceExpirySimpleMoneynessParameterMetadata.MetametaBean()static SwaptionSurfaceExpirySimpleMoneynessParameterMetadataof(double yearFraction, double simpleMoneyness)Creates node metadata using swap convention, year fraction and simple moneyness.static SwaptionSurfaceExpirySimpleMoneynessParameterMetadataof(double yearFraction, double simpleMoneyness, String label)Creates node using swap convention, year fraction, simple moneyness and label.StringtoString()
-
-
-
Method Detail
-
of
public static SwaptionSurfaceExpirySimpleMoneynessParameterMetadata of(double yearFraction, double simpleMoneyness)
Creates node metadata using swap convention, year fraction and simple moneyness.- Parameters:
yearFraction- the year fractionsimpleMoneyness- the simple moneyness- Returns:
- node metadata
-
of
public static SwaptionSurfaceExpirySimpleMoneynessParameterMetadata of(double yearFraction, double simpleMoneyness, String label)
Creates node using swap convention, year fraction, simple moneyness and label.- Parameters:
yearFraction- the year fractionsimpleMoneyness- the simple moneynesslabel- the label to use- Returns:
- the metadata
-
getIdentifier
public Pair<Double,Double> getIdentifier()
Description copied from interface:ParameterMetadataReturns an object used to identify the parameter.A good choice of identifier is one that makes sense to the user and can easily be created as part of a scenario definition. For example, many nodes types are naturally identified by a tenor.
The identifier must satisfy the following criteria:
- It must be non-null
- It should be unique within a single data set
- It should have a sensible implementation of
hashCode()andequals().
- Specified by:
getIdentifierin interfaceParameterMetadata- Returns:
- an object used to uniquely identify the parameter within the data
-
meta
public static SwaptionSurfaceExpirySimpleMoneynessParameterMetadata.Meta meta()
The meta-bean forSwaptionSurfaceExpirySimpleMoneynessParameterMetadata.- Returns:
- the meta-bean, not null
-
metaBean
public SwaptionSurfaceExpirySimpleMoneynessParameterMetadata.Meta metaBean()
- Specified by:
metaBeanin interfaceorg.joda.beans.Bean
-
getYearFraction
public double getYearFraction()
Gets the year fraction of the surface node.This is the time to expiry that the node on the surface is defined as. There is not necessarily a direct relationship with a date from an underlying instrument.
- Returns:
- the value of the property
-
getSimpleMoneyness
public double getSimpleMoneyness()
Gets the simple moneyness of the surface node.This is defined as strike - forward.
- Returns:
- the value of the property
-
getLabel
public String getLabel()
Gets the label that describes the node.- Specified by:
getLabelin interfaceParameterMetadata- Returns:
- the value of the property, not empty
-
-