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 BasketCalibratableComponent
derivedComponent()
Retrieve the Derived ComponentLatentStateSegmentSpec
derivedForwardSpec(ValuationParams valParams, CurveSurfaceQuoteContainer mktParams, double dblBasis, boolean bBasisOnDerivedComponent, boolean bBasisOnDerivedStream)
Generate the Derived Forward Latent State Segment SpecificationLatentStateSegmentSpec
derivedFundingForwardSpec(ValuationParams valParams, CurveSurfaceQuoteContainer mktParams, double dblReferenceComponentBasis, boolean bBasisOnDerivedLeg, double dblSwapRate)
Generate the Derived Funding/Forward Merged Latent State Segment Specificationjava.lang.String
fxCode()
Retrieve the FX CodeFixingSetting
fxFixingSetting()
Retrieve the FX Fixing SettingFXLabel[]
fxLabel()
Get the Array of the FX Latent State Identifier Labelsint
measureAggregationType(java.lang.String strMeasureName)
Retrieve the Aggregation Type for the specified Measurejava.lang.String
name()
Return the basket nameCalibratableComponent
referenceComponent()
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, weights
Methods 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:BasketProduct
Return the basket name- Specified by:
name
in interfaceBasketMarketParamRef
- Specified by:
name
in classBasketProduct
- Returns:
- Name of the basket product
-
fxLabel
Description copied from interface:BasketMarketParamRef
Get the Array of the FX Latent State Identifier Labels- Specified by:
fxLabel
in interfaceBasketMarketParamRef
- Overrides:
fxLabel
in classBasketProduct
- Returns:
- The Array of the FX Latent State Identifier Labels
-
components
Description copied from class:BasketProduct
Return the Components in the Basket- Specified by:
components
in classBasketProduct
- Returns:
- Components in the Basket
-
measureAggregationType
public int measureAggregationType(java.lang.String strMeasureName)Description copied from class:BasketProduct
Retrieve the Aggregation Type for the specified Measure- Specified by:
measureAggregationType
in 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:BasketProduct
Generate a full list of the basket product measures for the full input set of market parameters- Overrides:
value
in classBasketProduct
- Parameters:
valParams
- ValuationParamspricerParams
- PricerParamscsqs
- Market Parametersvcp
- Valuation Customization Parameters- Returns:
- Map of measure name and value
-