public class CDSBasket extends BasketProduct
NULL_SER_STRING, VERSION
Constructor and Description |
---|
CDSBasket(byte[] ab)
BasketDefaultSwap de-serialization from input byte array
|
CDSBasket(JulianDate dtEffective,
JulianDate dtMaturity,
double dblCoupon,
Component[] aComp,
double[] adblWeight,
java.lang.String strName)
Construct a CDS Basket from the components and their weights
|
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 CDSBasket(JulianDate dtEffective, JulianDate dtMaturity, double dblCoupon, Component[] aComp, double[] adblWeight, java.lang.String strName) throws java.lang.Exception
dtEffective
- EffectivedtMaturity
- MaturitydblCoupon
- CouponaComp
- Array of componentsadblWeight
- Weights of the componentsstrName
- Name of the basketjava.lang.Exception
- Thrown if the inputs are invalidpublic CDSBasket(byte[] ab) throws java.lang.Exception
ab
- Byte Arrayjava.lang.Exception
- Thrown if BasketDefaultSwap cannot be properly de-serializedpublic 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