public class ComponentPair extends BasketProduct
Constructor and Description |
---|
ComponentPair(java.lang.String strName,
CalibratableComponent rcReference,
CalibratableComponent rcDerived,
FixingSetting fxFixingSetting)
ComponentPair constructor
|
Modifier and Type | Method and Description |
---|---|
Component[] |
components()
Return the Components in the Basket
|
CalibratableComponent |
derivedComponent()
Retrieve the Derived Component
|
LatentStateSegmentSpec |
derivedForwardSpec(ValuationParams valParams,
CurveSurfaceQuoteContainer mktParams,
double dblBasis,
boolean bBasisOnDerivedComponent,
boolean bBasisOnDerivedStream)
Generate the Derived Forward Latent State Segment Specification
|
LatentStateSegmentSpec |
derivedFundingForwardSpec(ValuationParams valParams,
CurveSurfaceQuoteContainer mktParams,
double dblReferenceComponentBasis,
boolean bBasisOnDerivedLeg,
double dblSwapRate)
Generate the Derived Funding/Forward Merged Latent State Segment Specification
|
java.lang.String |
fxCode()
Retrieve the FX Code
|
FixingSetting |
fxFixingSetting()
Retrieve the FX Fixing Setting
|
FXLabel[] |
fxLabel()
Get the Array of the FX Latent State Identifier Labels
|
int |
measureAggregationType(java.lang.String strMeasureName)
Retrieve the Aggregation Type for the specified Measure
|
java.lang.String |
name()
Return the basket name
|
CalibratableComponent |
referenceComponent()
Retrieve the Reference Component
|
CaseInsensitiveTreeMap<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 parameters
|
coupon, couponCurrency, couponPeriod, creditLabel, customScenarioMeasures, effective, firstCouponDate, forwardLabel, fundingLabel, initialNotional, maturity, measures, measureValue, notional, notional, payCurrency, principalCurrency, weights
public ComponentPair(java.lang.String strName, CalibratableComponent rcReference, CalibratableComponent rcDerived, FixingSetting fxFixingSetting) throws java.lang.Exception
strName
- The ComponentPair Instance NamercReference
- The Reference ComponentrcDerived
- The Derived ComponentfxFixingSetting
- FX Fixing Settingjava.lang.Exception
- Thrown if the Inputs are Invalidpublic CalibratableComponent referenceComponent()
public CalibratableComponent derivedComponent()
public FixingSetting fxFixingSetting()
public java.lang.String fxCode()
public LatentStateSegmentSpec derivedForwardSpec(ValuationParams valParams, CurveSurfaceQuoteContainer mktParams, double dblBasis, boolean bBasisOnDerivedComponent, boolean bBasisOnDerivedStream)
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)public LatentStateSegmentSpec derivedFundingForwardSpec(ValuationParams valParams, CurveSurfaceQuoteContainer mktParams, double dblReferenceComponentBasis, boolean bBasisOnDerivedLeg, double dblSwapRate)
valParams
- Valuation ParametersmktParams
- Market ParametersdblReferenceComponentBasis
- The Reference Component BasisbBasisOnDerivedLeg
- TRUE - Apply basis on the Derived LegdblSwapRate
- The Swap Ratepublic java.lang.String name()
BasketProduct
name
in interface BasketMarketParamRef
name
in class BasketProduct
public FXLabel[] fxLabel()
BasketMarketParamRef
fxLabel
in interface BasketMarketParamRef
fxLabel
in class BasketProduct
public Component[] components()
BasketProduct
components
in class BasketProduct
public int measureAggregationType(java.lang.String strMeasureName)
BasketProduct
measureAggregationType
in class BasketProduct
strMeasureName
- The Specified Measure Namepublic CaseInsensitiveTreeMap<java.lang.Double> value(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp)
BasketProduct
value
in class BasketProduct
valParams
- ValuationParamspricerParams
- PricerParamscsqs
- Market Parametersvcp
- Valuation Customization Parameters