public class Period extends AbstractPeriod
| Constructor and Description |
|---|
Period(double periodStart,
double periodEnd,
double fixingDate,
double paymentDate,
AbstractNotional notional,
AbstractProductComponent index,
boolean couponFlow,
boolean notionalFlow,
boolean payer)
Create a simple period with notional and index (coupon) flow.
|
Period(double periodStart,
double periodEnd,
double fixingDate,
double paymentDate,
AbstractNotional notional,
AbstractProductComponent index,
double daycountFraction,
boolean couponFlow,
boolean notionalFlow,
boolean payer)
Create a simple period with notional and index (coupon) flow.
|
Period(double periodStart,
double periodEnd,
double fixingDate,
double paymentDate,
AbstractNotional notional,
AbstractProductComponent index,
double daycountFraction,
boolean couponFlow,
boolean notionalFlow,
boolean payer,
boolean isExcludeAccruedInterest)
Create a simple period with notional and index (coupon) flow.
|
Period(LocalDateTime referenceDate,
double periodStart,
double periodEnd,
double fixingDate,
double paymentDate,
AbstractNotional notional,
AbstractProductComponent index,
double daycountFraction,
boolean couponFlow,
boolean notionalFlow,
boolean payer,
boolean isExcludeAccruedInterest)
Create a simple period with notional and index (coupon) flow.
|
| Modifier and Type | Method and Description |
|---|---|
RandomVariable |
getCoupon(double evaluationTime,
LIBORModelMonteCarloSimulationModel model) |
RandomVariable |
getValue(double evaluationTime,
LIBORModelMonteCarloSimulationModel model)
This method returns the value random variable of the product within the specified model, evaluated at a given evalutationTime.
|
String |
toString() |
getCurrency, getDaycountFraction, getFixingDate, getIndex, getNotional, getPaymentDate, getPeriodEnd, getPeriodStart, getReferenceDate, queryUnderlyingsgetExecutor, getValuesgetFactorDrift, getValue, getValueForModifiedDatagetValue, getValue, getValues, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetValue, getValue, getValues, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedDatapublic Period(LocalDateTime referenceDate, double periodStart, double periodEnd, double fixingDate, double paymentDate, AbstractNotional notional, AbstractProductComponent index, double daycountFraction, boolean couponFlow, boolean notionalFlow, boolean payer, boolean isExcludeAccruedInterest)
referenceDate - The date corresponding to time \( t = 0 \).periodStart - The period start.periodEnd - The period end.fixingDate - The fixing date (as double).paymentDate - The payment date (as double).notional - The notional object relevant for this period.index - The index (used for coupon calculation) associated with this period.daycountFraction - The daycount fraction (coupon = index(fixingDate) * daycountFraction).couponFlow - If true, the coupon will be payed. Otherwise there will be not coupon flow.notionalFlow - If true, there will be a positive notional flow at period start (but only if peirodStart > evaluationTime) and a negative notional flow at period end (but only if periodEnd > evaluationTime). Otherwise there will be no notional flows.payer - If true, the period will be a payer period, i.e. notional and coupon at period end are payed (negative). Otherwise it is a receiver period.isExcludeAccruedInterest - If the true, the valuation will exclude accrued interest, if any.public Period(double periodStart,
double periodEnd,
double fixingDate,
double paymentDate,
AbstractNotional notional,
AbstractProductComponent index,
double daycountFraction,
boolean couponFlow,
boolean notionalFlow,
boolean payer,
boolean isExcludeAccruedInterest)
periodStart - The period start.periodEnd - The period end.fixingDate - The fixing date (as double).paymentDate - The payment date (as double).notional - The notional object relevant for this period.index - The index (used for coupon calculation) associated with this period.daycountFraction - The daycount fraction (coupon = index(fixingDate) * daycountFraction).couponFlow - If true, the coupon will be payed. Otherwise there will be not coupon flow.notionalFlow - If true, there will be a positive notional flow at period start (but only if peirodStart > evaluationTime) and a negative notional flow at period end (but only if periodEnd > evaluationTime). Otherwise there will be no notional flows.payer - If true, the period will be a payer period, i.e. notional and coupon at period end are payed (negative). Otherwise it is a receiver period.isExcludeAccruedInterest - If the true, the valuation will exclude accrued interest, if any.public Period(double periodStart,
double periodEnd,
double fixingDate,
double paymentDate,
AbstractNotional notional,
AbstractProductComponent index,
double daycountFraction,
boolean couponFlow,
boolean notionalFlow,
boolean payer)
periodStart - The period start.periodEnd - The period end.fixingDate - The fixing date (as double).paymentDate - The payment date (as double).notional - The notional object relevant for this period.index - The index (used for coupon calculation) associated with this period.daycountFraction - The daycount fraction (coupon = index(fixingDate) * daycountFraction).couponFlow - If true, the coupon will be payed. Otherwise there will be not coupon flow.notionalFlow - If true, there will be a positive notional flow at period start (but only if peirodStart > evaluationTime) and a negative notional flow at period end (but only if periodEnd > evaluationTime). Otherwise there will be no notional flows.payer - If true, the period will be a payer period, i.e. notional and coupon at period end are payed (negative). Otherwise it is a receiver period.public Period(double periodStart,
double periodEnd,
double fixingDate,
double paymentDate,
AbstractNotional notional,
AbstractProductComponent index,
boolean couponFlow,
boolean notionalFlow,
boolean payer)
periodStart - The period start.periodEnd - The period end.fixingDate - The fixing date (as double).paymentDate - The payment date (as double).notional - The notional object relevant for this period.index - The index (coupon) associated with this period.couponFlow - If true, the coupon will be payed. Otherwise there will be not coupon flow.notionalFlow - If true, there will be a positive notional flow at period start (but only if peirodStart > evaluationTime) and a negative notional flow at period end (but only if periodEnd > evaluationTime). Otherwise there will be no notional flows.payer - If true, the period will be a payer period, i.e. notional and coupon at period end are payed (negative). Otherwise it is a receiver period.public RandomVariable getValue(double evaluationTime, LIBORModelMonteCarloSimulationModel model) throws CalculationException
getValue in interface TermStructureMonteCarloProductgetValue in class AbstractPeriodevaluationTime - The time on which this products value should be observed.model - The model used to price the product.CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.public RandomVariable getCoupon(double evaluationTime, LIBORModelMonteCarloSimulationModel model) throws CalculationException
getCoupon in class AbstractPeriodCalculationExceptionpublic String toString()
toString in class AbstractPeriodCopyright © 2019. All rights reserved.