Package org.drip.product.fx
Class ComponentPair
java.lang.Object
org.drip.product.definition.BasketProduct
org.drip.product.fx.ComponentPair
- All Implemented Interfaces:
BasketMarketParamRef
public class ComponentPair extends BasketProduct
ComponentPair contains the implementation of the dual cross currency components. It is composed of
two different Rates Components - one each for each currency.
- Module = Product Core Module
- Library = Fixed Income Analytics
- Project = Product Components/Baskets for Credit, FRA, FX, Govvie, Rates, and Option AssetClasses
- Package = FX Forwards, Cross Currency Swaps
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description ComponentPair(java.lang.String strName, CalibratableComponent rcReference, CalibratableComponent rcDerived, FixingSetting fxFixingSetting)ComponentPair constructor -
Method Summary
Modifier and Type Method Description Component[]components()Return the Components in the BasketCalibratableComponentderivedComponent()Retrieve the Derived ComponentLatentStateSegmentSpecderivedForwardSpec(ValuationParams valParams, CurveSurfaceQuoteContainer mktParams, double dblBasis, boolean bBasisOnDerivedComponent, boolean bBasisOnDerivedStream)Generate the Derived Forward Latent State Segment SpecificationLatentStateSegmentSpecderivedFundingForwardSpec(ValuationParams valParams, CurveSurfaceQuoteContainer mktParams, double dblReferenceComponentBasis, boolean bBasisOnDerivedLeg, double dblSwapRate)Generate the Derived Funding/Forward Merged Latent State Segment Specificationjava.lang.StringfxCode()Retrieve the FX CodeFixingSettingfxFixingSetting()Retrieve the FX Fixing SettingFXLabel[]fxLabel()Get the Array of the FX Latent State Identifier LabelsintmeasureAggregationType(java.lang.String strMeasureName)Retrieve the Aggregation Type for the specified Measurejava.lang.Stringname()Return the basket nameCalibratableComponentreferenceComponent()Retrieve the Reference ComponentCaseInsensitiveTreeMap<java.lang.Double>value(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp)Generate a full list of the basket product measures for the full input set of market parametersMethods inherited from class org.drip.product.definition.BasketProduct
coupon, couponCurrency, couponPeriod, creditLabel, customScenarioMeasures, effective, firstCouponDate, forwardLabel, fundingLabel, initialNotional, maturity, measures, measureValue, notional, notional, payCurrency, principalCurrency, weightsMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ComponentPair
public ComponentPair(java.lang.String strName, CalibratableComponent rcReference, CalibratableComponent rcDerived, FixingSetting fxFixingSetting) throws java.lang.ExceptionComponentPair constructor- Parameters:
strName- The ComponentPair Instance NamercReference- The Reference ComponentrcDerived- The Derived ComponentfxFixingSetting- FX Fixing Setting- Throws:
java.lang.Exception- Thrown if the Inputs are Invalid
-
-
Method Details
-
referenceComponent
Retrieve the Reference Component- Returns:
- The Reference Component
-
derivedComponent
Retrieve the Derived Component- Returns:
- The Derived Component
-
fxFixingSetting
Retrieve the FX Fixing Setting- Returns:
- The FX Fixing Setting
-
fxCode
public java.lang.String fxCode()Retrieve the FX Code- Returns:
- The FX Code
-
derivedForwardSpec
public LatentStateSegmentSpec derivedForwardSpec(ValuationParams valParams, CurveSurfaceQuoteContainer mktParams, double dblBasis, boolean bBasisOnDerivedComponent, boolean bBasisOnDerivedStream)Generate the Derived Forward Latent State Segment Specification- Parameters:
valParams- Valuation ParametersmktParams- Market ParametersdblBasis- The Basis on either the Reference Component or the Derived ComponentbBasisOnDerivedComponent- TRUE - Apply the Basis on the Derived ComponentbBasisOnDerivedStream- TRUE - Apply the Basis on the Derived Stream (FALSE - Reference Stream)- Returns:
- The Derived Forward Latent State Segment Specification
-
derivedFundingForwardSpec
public LatentStateSegmentSpec derivedFundingForwardSpec(ValuationParams valParams, CurveSurfaceQuoteContainer mktParams, double dblReferenceComponentBasis, boolean bBasisOnDerivedLeg, double dblSwapRate)Generate the Derived Funding/Forward Merged Latent State Segment Specification- Parameters:
valParams- Valuation ParametersmktParams- Market ParametersdblReferenceComponentBasis- The Reference Component BasisbBasisOnDerivedLeg- TRUE - Apply basis on the Derived LegdblSwapRate- The Swap Rate- Returns:
- The Derived Forward/Funding Latent State Segment Specification
-
name
public java.lang.String name()Description copied from class:BasketProductReturn the basket name- Specified by:
namein interfaceBasketMarketParamRef- Specified by:
namein classBasketProduct- Returns:
- Name of the basket product
-
fxLabel
Description copied from interface:BasketMarketParamRefGet the Array of the FX Latent State Identifier Labels- Specified by:
fxLabelin interfaceBasketMarketParamRef- Overrides:
fxLabelin classBasketProduct- Returns:
- The Array of the FX Latent State Identifier Labels
-
components
Description copied from class:BasketProductReturn the Components in the Basket- Specified by:
componentsin classBasketProduct- Returns:
- Components in the Basket
-
measureAggregationType
public int measureAggregationType(java.lang.String strMeasureName)Description copied from class:BasketProductRetrieve the Aggregation Type for the specified Measure- Specified by:
measureAggregationTypein classBasketProduct- Parameters:
strMeasureName- The Specified Measure Name- Returns:
- The Aggregation Type
-
value
public CaseInsensitiveTreeMap<java.lang.Double> value(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp)Description copied from class:BasketProductGenerate a full list of the basket product measures for the full input set of market parameters- Overrides:
valuein classBasketProduct- Parameters:
valParams- ValuationParamspricerParams- PricerParamscsqs- Market Parametersvcp- Valuation Customization Parameters- Returns:
- Map of measure name and value
-