Package org.drip.market.otc
Class FloatFloatSwapConvention
java.lang.Object
org.drip.market.otc.FloatFloatSwapConvention
public class FloatFloatSwapConvention
extends java.lang.Object
FloatFloatSwapConvention contains the Details of the IBOR Float-Float Component of an OTC contact.
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description FloatFloatSwapConvention(java.lang.String strCurrency, java.lang.String strReferenceTenor, boolean bBasisOnDerivedStream, boolean bBasisOnDerivedComponent, boolean bIsDerivedCompoundedToReference, boolean bIsComponentPair, int iSpotLag)FloatFloatSwapConvention Constructor -
Method Summary
Modifier and Type Method Description booleanbasisOnDerivedComponent()Retrieve the Flag indicating whether the Basis is to be applied to the Derived or the Reference ComponentbooleanbasisOnDerivedStream()Retrieve the Flag indicating whether the Basis is to be applied to the Derived or the Reference StreambooleancomponentPair()Retrieve the Flag indicating whether the Float-Float Swap is a Component Pair of 2 Fix-Float SwapsComponentPaircreateFixFloatComponentPair(JulianDate dtSpot, java.lang.String strDerivedTenor, java.lang.String strMaturityTenor, double dblReferenceFixedCoupon, double dblDerivedFixedCoupon, double dblBasis, double dblNotional)Create an Instance of the Fix-Float Component PairFloatFloatComponentcreateFloatFloatComponent(JulianDate dtSpot, java.lang.String strDerivedTenor, java.lang.String strMaturityTenor, double dblBasis, double dblNotional)Create an Instance of the Float-Float Componentjava.lang.Stringcurrency()Retrieve the CurrencybooleanderivedCompoundedToReference()Retrieve the Flag indicating whether the Derived Periods are to be compounded onto the Reference Periodjava.lang.StringreferenceTenor()Retrieve the Reference TenorintspotLag()Retrieve the Spot LagMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
FloatFloatSwapConvention
public FloatFloatSwapConvention(java.lang.String strCurrency, java.lang.String strReferenceTenor, boolean bBasisOnDerivedStream, boolean bBasisOnDerivedComponent, boolean bIsDerivedCompoundedToReference, boolean bIsComponentPair, int iSpotLag) throws java.lang.ExceptionFloatFloatSwapConvention Constructor- Parameters:
strCurrency- The CurrencystrReferenceTenor- The Reference TenorbBasisOnDerivedStream- TRUE - Apply the Basis to the Derived StreambBasisOnDerivedComponent- TRUE - Apply the Basis to the Derived ComponentbIsDerivedCompoundedToReference- TRUE - The Derived Periods are Compounded onto the ReferencebIsComponentPair- TRUE - The Float-Float Swap is a Component Pair of 2 Fix-Float SwapsiSpotLag- Spot Lag- Throws:
java.lang.Exception- Thrown if the Inputs are Invalid
-
-
Method Details
-
currency
public java.lang.String currency()Retrieve the Currency- Returns:
- The Currency
-
referenceTenor
public java.lang.String referenceTenor()Retrieve the Reference Tenor- Returns:
- The Reference Tenor
-
basisOnDerivedStream
public boolean basisOnDerivedStream()Retrieve the Flag indicating whether the Basis is to be applied to the Derived or the Reference Stream- Returns:
- TRUE - The Basis is applied to the Derived Stream
-
basisOnDerivedComponent
public boolean basisOnDerivedComponent()Retrieve the Flag indicating whether the Basis is to be applied to the Derived or the Reference Component- Returns:
- TRUE - The Basis is applied to the Derived Component
-
derivedCompoundedToReference
public boolean derivedCompoundedToReference()Retrieve the Flag indicating whether the Derived Periods are to be compounded onto the Reference Period- Returns:
- TRUE - The Derived Periods are Compounded onto the Reference
-
componentPair
public boolean componentPair()Retrieve the Flag indicating whether the Float-Float Swap is a Component Pair of 2 Fix-Float Swaps- Returns:
- TRUE - The Float-Float Swap is a Component Pair of 2 Fix-Float Swaps
-
spotLag
public int spotLag()Retrieve the Spot Lag- Returns:
- The Spot Lag
-
createFloatFloatComponent
public FloatFloatComponent createFloatFloatComponent(JulianDate dtSpot, java.lang.String strDerivedTenor, java.lang.String strMaturityTenor, double dblBasis, double dblNotional)Create an Instance of the Float-Float Component- Parameters:
dtSpot- Spot DatestrDerivedTenor- The Derived TenorstrMaturityTenor- The Maturity TenordblBasis- BasisdblNotional- Notional- Returns:
- Instance of the Float-Float Component
-
createFixFloatComponentPair
public ComponentPair createFixFloatComponentPair(JulianDate dtSpot, java.lang.String strDerivedTenor, java.lang.String strMaturityTenor, double dblReferenceFixedCoupon, double dblDerivedFixedCoupon, double dblBasis, double dblNotional)Create an Instance of the Fix-Float Component Pair- Parameters:
dtSpot- Spot DatestrDerivedTenor- The Derived TenorstrMaturityTenor- The Maturity TenordblReferenceFixedCoupon- Fixed Coupon Rate for the Reference ComponentdblDerivedFixedCoupon- Fixed Coupon Rate for the Derived ComponentdblBasis- BasisdblNotional- Notional- Returns:
- Instance of the Fix-Float Component Pair
-