Module net.finmath.lib
Package net.finmath.modelling.descriptor
Class InterestRateSwaptionProductDescriptor
- java.lang.Object
-
- net.finmath.modelling.descriptor.InterestRateSwaptionProductDescriptor
-
- All Implemented Interfaces:
InterestRateProductDescriptor,ProductDescriptor
public class InterestRateSwaptionProductDescriptor extends Object implements InterestRateProductDescriptor
Product descriptor for an interest rate swaption.- Author:
- Christian Fries, Roland Bachl
-
-
Constructor Summary
Constructors Constructor Description InterestRateSwaptionProductDescriptor(InterestRateSwapProductDescriptor swap, LocalDate excerciseDate, double strikeRate)Construct the descriptor of a swaption from the descriptor of a swap plus option parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalDategetExcerciseDate()Return the exercise date of the option.doublegetStrikeRate()Return the strike rate of the option.InterestRateSwapProductDescriptorgetUnderlyingSwap()Return the descriptor of the underlying swap.Stringname()Return the name of the model represented by this descriptor.Integerversion()Return the version of the model description.
-
-
-
Constructor Detail
-
InterestRateSwaptionProductDescriptor
public InterestRateSwaptionProductDescriptor(InterestRateSwapProductDescriptor swap, LocalDate excerciseDate, double strikeRate)
Construct the descriptor of a swaption from the descriptor of a swap plus option parameters.- Parameters:
swap- Descriptor of the underlying swap.excerciseDate- Exercise date of the option as abolute LocalDate.strikeRate- Strike rate of the option.
-
-
Method Detail
-
version
public Integer version()
Description copied from interface:ProductDescriptorReturn the version of the model description.- Specified by:
versionin interfaceProductDescriptor- Returns:
- Version number.
-
name
public String name()
Description copied from interface:ProductDescriptorReturn the name of the model represented by this descriptor.- Specified by:
namein interfaceProductDescriptor- Returns:
- Name of the model.
-
getUnderlyingSwap
public InterestRateSwapProductDescriptor getUnderlyingSwap()
Return the descriptor of the underlying swap.- Returns:
- THe swap descriptor.
-
getExcerciseDate
public LocalDate getExcerciseDate()
Return the exercise date of the option.- Returns:
- The exercise date as absolute LocalDate.
-
getStrikeRate
public double getStrikeRate()
Return the strike rate of the option.- Returns:
- The strike rate.
-
-