public abstract class BasketProduct extends java.lang.Object implements BasketMarketParamRef
Constructor and Description |
---|
BasketProduct() |
Modifier and Type | Method and Description |
---|---|
abstract Component[] |
components()
Return the Components in the Basket
|
double |
coupon(int iDate,
CurveSurfaceQuoteContainer csqs)
Retrieve the basket product's coupon amount at the given date
|
java.lang.String[] |
couponCurrency()
Get the Coupon Currency
|
java.util.List<CompositePeriod> |
couponPeriod()
Get the basket product's coupon periods
|
CreditLabel[] |
creditLabel()
Get the Array of Credit Curve Latent State Identifier Labels
|
CaseInsensitiveTreeMap<java.lang.Double> |
customScenarioMeasures(ValuationParams valParams,
CreditPricerParams pricerParams,
ScenarioMarketParams mpc,
java.lang.String strCustomScenName,
ValuationCustomizationParams vcp,
CaseInsensitiveTreeMap<java.lang.Double> mapBase)
Compute Basket's Custom Scenario Measures
|
JulianDate |
effective()
Returns the effective date of the basket product
|
JulianDate |
firstCouponDate()
Get the first coupon date
|
ForwardLabel[] |
forwardLabel()
Get the Array of Forward Curve Latent State Labels
|
FundingLabel[] |
fundingLabel()
Get the Array of Funding Curve Latent State Labels
|
FXLabel[] |
fxLabel()
Get the Array of the FX Latent State Identifier Labels
|
double |
initialNotional()
Return the initial notional of the basket product
|
JulianDate |
maturity()
Return the maturity date of the basket product
|
abstract int |
measureAggregationType(java.lang.String strMeasureName)
Retrieve the Aggregation Type for the specified Measure
|
BasketMeasures |
measures(ValuationParams valParams,
CreditPricerParams pricerParams,
ScenarioMarketParams mpc,
ValuationCustomizationParams vcp)
Generate a full list of the basket product measures for the set of scenario market parameters present
in the org.drip.param.definition.MarketParams
|
double |
measureValue(ValuationParams valParams,
CreditPricerParams pricerParams,
CurveSurfaceQuoteContainer csqs,
ValuationCustomizationParams vcp,
java.lang.String strMeasure)
Calculate the value of the given basket product measure
|
abstract java.lang.String |
name()
Return the basket name
|
double |
notional(int iDate)
Retrieve the notional at the given date
|
double |
notional(int iDate1,
int iDate2)
Retrieve the time-weighted notional between 2 given dates
|
java.lang.String[] |
payCurrency()
Get the Pay Currency
|
java.lang.String[] |
principalCurrency()
Get the Principal Currency
|
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
|
double[] |
weights()
Retrieve the component Weights
|
public abstract java.lang.String name()
name
in interface BasketMarketParamRef
public abstract Component[] components()
public abstract int measureAggregationType(java.lang.String strMeasureName)
strMeasureName
- The Specified Measure Namepublic double[] weights()
public java.lang.String[] couponCurrency()
BasketMarketParamRef
couponCurrency
in interface BasketMarketParamRef
public java.lang.String[] payCurrency()
BasketMarketParamRef
payCurrency
in interface BasketMarketParamRef
public java.lang.String[] principalCurrency()
BasketMarketParamRef
principalCurrency
in interface BasketMarketParamRef
public CreditLabel[] creditLabel()
BasketMarketParamRef
creditLabel
in interface BasketMarketParamRef
public ForwardLabel[] forwardLabel()
BasketMarketParamRef
forwardLabel
in interface BasketMarketParamRef
public FundingLabel[] fundingLabel()
BasketMarketParamRef
fundingLabel
in interface BasketMarketParamRef
public FXLabel[] fxLabel()
BasketMarketParamRef
fxLabel
in interface BasketMarketParamRef
public double initialNotional() throws java.lang.Exception
java.lang.Exception
- Thrown if inputs are invalidpublic double notional(int iDate) throws java.lang.Exception
iDate
- JulianDatejava.lang.Exception
- Thrown if inputs are invalidpublic double notional(int iDate1, int iDate2) throws java.lang.Exception
iDate1
- JulianDate firstiDate2
- JulianDate secondjava.lang.Exception
- Thrown if inputs are invalidpublic double coupon(int iDate, CurveSurfaceQuoteContainer csqs) throws java.lang.Exception
iDate
- JulianDatecsqs
- Market Parametersjava.lang.Exception
- Thrown if coupon cannot be calculatedpublic JulianDate effective()
public JulianDate maturity()
public java.util.List<CompositePeriod> couponPeriod()
public JulianDate firstCouponDate()
public CaseInsensitiveTreeMap<java.lang.Double> value(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp)
valParams
- ValuationParamspricerParams
- PricerParamscsqs
- Market Parametersvcp
- Valuation Customization Parameterspublic double measureValue(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp, java.lang.String strMeasure) throws java.lang.Exception
valParams
- ValuationParamspricerParams
- PricerParamscsqs
- Market Parametersvcp
- Valuation Customization ParametersstrMeasure
- Measure Stringjava.lang.Exception
- Thrown if the measure cannot be calculatedpublic BasketMeasures measures(ValuationParams valParams, CreditPricerParams pricerParams, ScenarioMarketParams mpc, ValuationCustomizationParams vcp)
valParams
- ValuationParamspricerParams
- PricerParamsmpc
- org.drip.param.definition.MarketParamsvcp
- Valuation Customization Parameterspublic CaseInsensitiveTreeMap<java.lang.Double> customScenarioMeasures(ValuationParams valParams, CreditPricerParams pricerParams, ScenarioMarketParams mpc, java.lang.String strCustomScenName, ValuationCustomizationParams vcp, CaseInsensitiveTreeMap<java.lang.Double> mapBase)
valParams
- Valuation ParameterspricerParams
- Pricer Parametersmpc
- Market Parameters ContainerstrCustomScenName
- Custom Scenario Namevcp
- Valuation Customization ParametersmapBase
- Map of Base Measures