public class FixedStream extends RatesComponent
NULL_SER_STRING, VERSION
Constructor and Description |
---|
FixedStream(byte[] ab)
FixedStream de-serialization from input byte array
|
FixedStream(double dblEffective,
double dblMaturity,
double dblCoupon,
int iFreq,
java.lang.String strCouponDC,
java.lang.String strAccrualDC,
boolean bFullStub,
DateAdjustParams dapEffective,
DateAdjustParams dapMaturity,
DateAdjustParams dapPeriodStart,
DateAdjustParams dapPeriodEnd,
DateAdjustParams dapAccrualStart,
DateAdjustParams dapAccrualEnd,
DateAdjustParams dapPay,
FactorSchedule notlSchedule,
double dblNotional,
java.lang.String strIR,
java.lang.String strCalendar)
Full-featured instantiation of the Fixed Stream instance
|
Modifier and Type | Method and Description |
---|---|
WengertJacobian |
calcPVDFMicroJack(ValuationParams valParams,
PricerParams pricerParams,
ComponentMarketParams mktParams,
QuotingParams quotingParams)
Compute the micro-Jacobian of the PV to the DF
|
WengertJacobian |
calcQuoteDFMicroJack(java.lang.String strQuote,
ValuationParams valParams,
PricerParams pricerParams,
ComponentMarketParams mktParams,
QuotingParams quotingParams)
Compute the micro-Jacobian of the given measure to the DF
|
Serializer |
deserialize(byte[] ab)
De-serialize from a byte array.
|
CashSettleParams |
getCashSettleParams()
Gets the component cash settlement parameters
|
java.lang.String |
getComponentName()
Gets the component name
|
double |
getCoupon(double dblValue,
ComponentMarketParams mktParams)
Gets the component's coupon at the given date
|
java.util.List<CouponPeriod> |
getCouponPeriod()
Gets the component's coupon periods
|
java.lang.String |
getCreditCurveName()
Gets the credit curve name
|
java.lang.String |
getEDSFCurveName()
Gets the EDSF curve name
|
JulianDate |
getEffectiveDate()
Get the Effective Date
|
java.lang.String |
getFieldDelimiter()
Returns the Field Delimiter String
|
JulianDate |
getFirstCouponDate()
Get the First Coupon Date
|
double |
getInitialNotional()
Gets the Initial Notional for the Component
|
java.lang.String |
getIRCurveName()
Gets the IR curve name
|
JulianDate |
getMaturityDate()
Get the Maturity Date
|
java.util.Set<java.lang.String> |
getMeasureNames()
Retrieves the ordered set of the measure names whose values will be calculated
|
double |
getNotional(double dblDate)
Gets the Notional for the Component at the given date
|
double |
getNotional(double dblDate1,
double dblDate2)
Gets the time-weighted Notional for the Component between 2 dates
|
java.lang.String |
getObjectTrailer()
Returns the Object Trailer String
|
java.lang.String |
getPrimaryCode()
Return the primary code
|
java.lang.String |
getRatesForwardCurveName()
Gets the component name
|
java.lang.String |
getTreasuryCurveName()
Gets the treasury curve name
|
static void |
main(java.lang.String[] astrArgs) |
byte[] |
serialize()
Serialize into a byte array.
|
boolean |
setCurves(java.lang.String strIR,
java.lang.String strIRTSY,
java.lang.String strCC)
Sets the component's IR, treasury, and credit curve names
|
void |
setPrimaryCode(java.lang.String strCode)
Sets the component's primary code
|
CaseInsensitiveTreeMap<java.lang.Double> |
value(ValuationParams valParams,
PricerParams pricerParams,
ComponentMarketParams mktParams,
QuotingParams quotingParams)
Generates a full list of the component measures for the full input set of market parameters
|
getSecondaryCode
calcCustomScenarioMeasures, calcMeasures, calcMeasureValue
getCollectionKeyValueDelimiter, getCollectionMultiLevelKeyDelimiter, getCollectionRecordDelimiter
public FixedStream(double dblEffective, double dblMaturity, double dblCoupon, int iFreq, java.lang.String strCouponDC, java.lang.String strAccrualDC, boolean bFullStub, DateAdjustParams dapEffective, DateAdjustParams dapMaturity, DateAdjustParams dapPeriodStart, DateAdjustParams dapPeriodEnd, DateAdjustParams dapAccrualStart, DateAdjustParams dapAccrualEnd, DateAdjustParams dapPay, FactorSchedule notlSchedule, double dblNotional, java.lang.String strIR, java.lang.String strCalendar) throws java.lang.Exception
dblEffective
- Effective DatedblMaturity
- Maturity DatedblCoupon
- Fixed CouponiFreq
- Frequency of the Fixed Coupon StreamstrCouponDC
- Fixed Coupon Day CountstrAccrualDC
- Fixed Coupon Accrual Day CountbFullStub
- TRUE => Front Stub is fulldapEffective
- => Effective Date DAPdapMaturity
- => Maturity Date DAPdapPeriodStart
- => Period Start Date DAPdapPeriodEnd
- => Period End Date DAPdapAccrualStart
- => Accrual Start Date DAPdapAccrualEnd
- => Accrual End Date DAPdapPay
- => Pay Date DAPnotlSchedule
- => Notional ScheduledblNotional
- => Notional AmountstrIR
- => IR CurvestrCalendar
- => Calendarjava.lang.Exception
- Thrown if the inputs are invalidpublic FixedStream(byte[] ab) throws java.lang.Exception
ab
- Byte Arrayjava.lang.Exception
- Thrown if FixedStream cannot be properly de-serializedpublic java.lang.String getPrimaryCode()
CalibratableComponent
getPrimaryCode
in class CalibratableComponent
public void setPrimaryCode(java.lang.String strCode)
CalibratableComponent
setPrimaryCode
in class CalibratableComponent
strCode
- Primary Codepublic java.lang.String getComponentName()
ComponentMarketParamRef
public java.lang.String getTreasuryCurveName()
ComponentMarketParamRef
public java.lang.String getEDSFCurveName()
ComponentMarketParamRef
public double getInitialNotional()
Component
getInitialNotional
in class Component
public double getNotional(double dblDate) throws java.lang.Exception
Component
getNotional
in class Component
dblDate
- Double date inputjava.lang.Exception
- Thrown if Notional cannot be computedpublic double getNotional(double dblDate1, double dblDate2) throws java.lang.Exception
Component
getNotional
in class Component
dblDate1
- Double date firstdblDate2
- Double date secondjava.lang.Exception
- Thrown if Notional cannot be computedpublic boolean setCurves(java.lang.String strIR, java.lang.String strIRTSY, java.lang.String strCC)
Component
public double getCoupon(double dblValue, ComponentMarketParams mktParams) throws java.lang.Exception
Component
public java.lang.String getIRCurveName()
ComponentMarketParamRef
public java.lang.String getRatesForwardCurveName()
ComponentMarketParamRef
public java.lang.String getCreditCurveName()
ComponentMarketParamRef
public JulianDate getEffectiveDate()
Component
getEffectiveDate
in class Component
public JulianDate getMaturityDate()
Component
getMaturityDate
in class Component
public JulianDate getFirstCouponDate()
Component
getFirstCouponDate
in class Component
public java.util.List<CouponPeriod> getCouponPeriod()
Component
getCouponPeriod
in class Component
public CashSettleParams getCashSettleParams()
Component
getCashSettleParams
in class Component
public CaseInsensitiveTreeMap<java.lang.Double> value(ValuationParams valParams, PricerParams pricerParams, ComponentMarketParams mktParams, QuotingParams quotingParams)
Component
public java.util.Set<java.lang.String> getMeasureNames()
Component
getMeasureNames
in class Component
public WengertJacobian calcPVDFMicroJack(ValuationParams valParams, PricerParams pricerParams, ComponentMarketParams mktParams, QuotingParams quotingParams)
CalibratableComponent
calcPVDFMicroJack
in class CalibratableComponent
valParams
- Valuation ParameterspricerParams
- Pricer ParametersmktParams
- Component Market ParametersquotingParams
- Component Quoting Parameterspublic WengertJacobian calcQuoteDFMicroJack(java.lang.String strQuote, ValuationParams valParams, PricerParams pricerParams, ComponentMarketParams mktParams, QuotingParams quotingParams)
CalibratableComponent
calcQuoteDFMicroJack
in class CalibratableComponent
strQuote
- Quote NamevalParams
- Valuation ParameterspricerParams
- Pricer ParametersmktParams
- Component Market ParametersquotingParams
- Component Quoting Parameterspublic java.lang.String getFieldDelimiter()
Serializer
getFieldDelimiter
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 final void main(java.lang.String[] astrArgs) throws java.lang.Exception
java.lang.Exception