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
|
Component[] |
getComponents()
Return the Components in the Basket
|
java.lang.String |
getFieldDelimiter()
Returns the Field Delimiter String
|
java.lang.String |
getName()
Return the basket name
|
java.lang.String |
getObjectTrailer()
Returns the Object Trailer String
|
static void |
main(java.lang.String[] astrArgs) |
byte[] |
serialize()
Serialize into a byte array.
|
calcCustomScenarioMeasures, calcMeasures, calcMeasureValue, getComponentCreditCurveNames, getComponentIRCurveNames, getCoupon, getCouponPeriod, getEffectiveDate, getFirstCouponDate, getInitialNotional, getMaturityDate, getNotional, getNotional, getWeights, value
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 Component[] getComponents()
BasketProduct
getComponents
in class BasketProduct
public 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