public class BondBasket extends BasketProduct
NULL_SER_STRING, VERSION
Constructor and Description |
---|
BondBasket(byte[] ab)
BondBasket de-serialization from input byte array
|
BondBasket(java.lang.String strName,
Bond[] aBond,
double[] adblWeights,
JulianDate dtEffective,
double dblNotional)
BondBasket constructor
|
Modifier and Type | Method and Description |
---|---|
Serializer |
deserialize(byte[] ab)
De-serialize from a byte array.
|
java.lang.String |
getCollectionRecordDelimiter()
Returns the Collection Record Delimiter String
|
java.util.Set<java.lang.String> |
getComponentCreditCurveNames()
Retrieve the set of the component credit curve names
|
java.util.Set<java.lang.String> |
getComponentIRCurveNames()
Retrieve the set of the component IR curve names
|
double |
getCoupon(double dblDate,
BasketMarketParams bmp)
Retrieves the basket product's coupon amount at the given date
|
java.util.List<CouponPeriod> |
getCouponPeriod()
Gets the basket product's coupon periods
|
JulianDate |
getEffectiveDate()
Returns the effective date of the basket product
|
java.lang.String |
getFieldDelimiter()
Returns the Field Delimiter String
|
JulianDate |
getFirstCouponDate()
Gets the first coupon date
|
double |
getInitialNotional()
Returns the initial notional of the basket product
|
JulianDate |
getMaturityDate()
Returns the maturity date of the basket product
|
java.lang.String |
getName()
Returns the basket name
|
double |
getNotional(double dblDate)
Retrieves the notional at the given date
|
double |
getNotional(double dblDate1,
double dblDate2)
Retrieves the time-weighted notional between 2 given dates
|
int |
getNumberofComponents()
Returns the number of components in the basket
|
java.lang.String |
getObjectTrailer()
Returns the Object Trailer String
|
static void |
main(java.lang.String[] astrArgs) |
byte[] |
serialize()
Serialize into a byte array.
|
java.util.Map<java.lang.String,java.lang.Double> |
value(ValuationParams valParams,
PricerParams pricerParams,
BasketMarketParams bmp,
QuotingParams quotingParams)
Generates a full list of the basket product measures for the full input set of market parameters
|
calcCustomScenarioMeasures, calcMeasures, calcMeasureValue
getCollectionKeyValueDelimiter, getCollectionMultiLevelKeyDelimiter
public BondBasket(byte[] ab) throws java.lang.Exception
ab
- Byte Arrayjava.lang.Exception
- Thrown if BondBasket cannot be properly de-serializedpublic BondBasket(java.lang.String strName, Bond[] aBond, double[] adblWeights, JulianDate dtEffective, double dblNotional) throws java.lang.Exception
strName
- BondBasket NameaBond
- Component bondsadblWeights
- Component Bond weightsdtEffective
- Effective datedblNotional
- Basket Notionaljava.lang.Exception
- Thrown if inputs are invalidpublic java.lang.String getName()
BasketProduct
getName
in class BasketProduct
public int getNumberofComponents()
BasketProduct
getNumberofComponents
in class BasketProduct
public double getInitialNotional()
BasketProduct
getInitialNotional
in class BasketProduct
public JulianDate getEffectiveDate()
BasketProduct
getEffectiveDate
in class BasketProduct
public JulianDate getMaturityDate()
BasketProduct
getMaturityDate
in class BasketProduct
public JulianDate getFirstCouponDate()
BasketProduct
getFirstCouponDate
in class BasketProduct
public java.util.List<CouponPeriod> getCouponPeriod()
BasketProduct
getCouponPeriod
in class BasketProduct
public java.util.Set<java.lang.String> getComponentIRCurveNames()
BasketMarketParamRef
public java.util.Set<java.lang.String> getComponentCreditCurveNames()
BasketMarketParamRef
public double getNotional(double dblDate) throws java.lang.Exception
BasketProduct
getNotional
in class BasketProduct
dblDate
- Double JulianDatejava.lang.Exception
- Thrown if inputs are invalidpublic double getNotional(double dblDate1, double dblDate2) throws java.lang.Exception
BasketProduct
getNotional
in class BasketProduct
dblDate1
- Double JulianDate firstdblDate2
- Double JulianDate second
; @return Notionaljava.lang.Exception
- Thrown if inputs are invalidpublic double getCoupon(double dblDate, BasketMarketParams bmp) throws java.lang.Exception
BasketProduct
getCoupon
in class BasketProduct
dblDate
- Double JulianDatebmp
- Basket Market Parametersjava.lang.Exception
- Thrown if coupon cannot be calculatedpublic java.util.Map<java.lang.String,java.lang.Double> value(ValuationParams valParams, PricerParams pricerParams, BasketMarketParams bmp, QuotingParams quotingParams)
BasketProduct
value
in class BasketProduct
valParams
- ValuationParamspricerParams
- PricerParamsbmp
- BasketMarketParamsquotingParams
- Quoting Parameterspublic java.lang.String getFieldDelimiter()
Serializer
getFieldDelimiter
in class Serializer
public java.lang.String getCollectionRecordDelimiter()
Serializer
getCollectionRecordDelimiter
in class Serializer
public java.lang.String getObjectTrailer()
Serializer
getObjectTrailer
in class Serializer
public byte[] serialize()
Serializer
serialize
in class Serializer
public Serializer deserialize(byte[] ab)
Serializer
deserialize
in class Serializer
public static void main(java.lang.String[] astrArgs) throws java.lang.Exception
java.lang.Exception