Class ComposableUnitFloatingPeriod

java.lang.Object
org.drip.analytics.cashflow.ComposableUnitPeriod
org.drip.analytics.cashflow.ComposableUnitFloatingPeriod

public class ComposableUnitFloatingPeriod
extends ComposableUnitPeriod
ComposableUnitFloatingPeriod contains the Floating Cash Flow Periods' Composable Period Details. Currently it holds the Accrual Start Date, the Accrual End Date, the Fixing Date, the Spread over the Index, and the corresponding Reference Index Period.

Author:
Lakshmi Krishnamurthy
  • Constructor Details

    • ComposableUnitFloatingPeriod

      public ComposableUnitFloatingPeriod​(int iStartDate, int iEndDate, java.lang.String strTenor, ReferenceIndexPeriod rip, double dblSpread) throws java.lang.Exception
      The ComposableUnitFloatingPeriod Constructor
      Parameters:
      iStartDate - Accrual Start Date
      iEndDate - Accrual End Date
      strTenor - The Composable Period Tenor
      rip - The Reference Index Period
      dblSpread - The Floater Spread
      Throws:
      java.lang.Exception - Thrown if the Inputs are Invalid
  • Method Details

    • baseRate

      public double baseRate​(CurveSurfaceQuoteContainer csqc) throws java.lang.Exception
      Retrieve the Reference Rate for the Floating Period
      Specified by:
      baseRate in class ComposableUnitPeriod
      Parameters:
      csqc - The Market Curve and Surface
      Returns:
      The Reference Rate for the Floating Period
      Throws:
      java.lang.Exception - Thrown if the inputs are invalid
    • basis

      public double basis()
      Description copied from class: ComposableUnitPeriod
      Get the Period Coupon Basis
      Specified by:
      basis in class ComposableUnitPeriod
      Returns:
      The Period Coupon Basis
    • couponCurrency

      public java.lang.String couponCurrency()
      Description copied from class: ComposableUnitPeriod
      Get the Period Coupon Currency
      Specified by:
      couponCurrency in class ComposableUnitPeriod
      Returns:
      The Period Coupon Currency
    • referenceIndexPeriod

      public ReferenceIndexPeriod referenceIndexPeriod()
      Retrieve the Reference Index Period
      Returns:
      The Reference Index Period