Package org.drip.product.creator
Class SingleStreamComponentBuilder
java.lang.Object
org.drip.product.creator.SingleStreamComponentBuilder
public class SingleStreamComponentBuilder
extends java.lang.Object
SingleStreamComponentBuilder contains the suite of helper functions for creating the Futures
product and product pack from the parameters/codes/byte array streams. It also contains function to
construct EDF codes and the EDF product from code.
- Module = Product Core Module
- Library = Fixed Income Analytics
- Project = Product Components/Baskets for Credit, FRA, FX, Govvie, Rates, and Option AssetClasses
- Package = Streams and Products Construction Utilities
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description SingleStreamComponentBuilder() -
Method Summary
Modifier and Type Method Description static SingleStreamComponentDeposit(JulianDate dtEffective, JulianDate dtMaturity, ForwardLabel fri)Create a Deposit Product from the Effective and the Maturity Dates, and the Forward Labelstatic FRAStandardComponentForwardRateFutures(JulianDate dtSpot, ForwardLabel fri)Create a Forward Rate Futures Product Instance from the Spot Date and the Forward Labelstatic java.lang.StringForwardRateFuturesCode(java.lang.String strPrefix, int iEffectiveDate)Construct the Forward Rate Futures Code given a Effective Datestatic SingleStreamComponent[]ForwardRateFuturesPack(JulianDate dtSpot, int iNumContract, java.lang.String strCurrency)Generate a Forward Rate Futures Pack corresponding to the Specified Number of Contractsstatic FRAMarketComponentFRAMarket(JulianDate dtForwardStart, ForwardLabel forwardLabel, double dblStrike)Create a FRA Market Component Instance from the Spot Date, the Forward Label, and the Strikestatic FRAStandardComponentFRAStandard(JulianDate dtForwardStart, ForwardLabel forwardLabel, double dblStrike)Create a Standard FRA from the Spot Date, the Forward Label, and the StrikeMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SingleStreamComponentBuilder
public SingleStreamComponentBuilder()
-
-
Method Details
-
ForwardRateFuturesCode
public static java.lang.String ForwardRateFuturesCode(java.lang.String strPrefix, int iEffectiveDate)Construct the Forward Rate Futures Code given a Effective Date- Parameters:
strPrefix- The Forward Rate Futures Code PrefixiEffectiveDate- Double representing the Effective JulianDate- Returns:
- The Forward Rate Futures Code
-
ForwardRateFuturesPack
public static SingleStreamComponent[] ForwardRateFuturesPack(JulianDate dtSpot, int iNumContract, java.lang.String strCurrency)Generate a Forward Rate Futures Pack corresponding to the Specified Number of Contracts- Parameters:
dtSpot- Spot Date specifying the Contract IssueiNumContract- Number of ContractsstrCurrency- Contract Currency String- Returns:
- Array of Forward Rate Futures
-
Deposit
public static final SingleStreamComponent Deposit(JulianDate dtEffective, JulianDate dtMaturity, ForwardLabel fri)Create a Deposit Product from the Effective and the Maturity Dates, and the Forward Label- Parameters:
dtEffective- Effective datedtMaturity- Maturityfri- The Floating Rate Index- Returns:
- Deposit product
-
FRAStandard
public static final FRAStandardComponent FRAStandard(JulianDate dtForwardStart, ForwardLabel forwardLabel, double dblStrike)Create a Standard FRA from the Spot Date, the Forward Label, and the Strike- Parameters:
dtForwardStart- Forward Start DateforwardLabel- The Floating Rate IndexdblStrike- Futures Strike- Returns:
- The Standard FRA Instance
-
FRAMarket
public static final FRAMarketComponent FRAMarket(JulianDate dtForwardStart, ForwardLabel forwardLabel, double dblStrike)Create a FRA Market Component Instance from the Spot Date, the Forward Label, and the Strike- Parameters:
dtForwardStart- Forward Start DateforwardLabel- The Floating Rate IndexdblStrike- Futures Strike- Returns:
- The Futures Product
-
ForwardRateFutures
Create a Forward Rate Futures Product Instance from the Spot Date and the Forward Label- Parameters:
dtSpot- Spot Datefri- The Floating Rate Index- Returns:
- The Forward Rate Futures Product Instance
-