public abstract class AbstractPeriod extends AbstractProductComponent
| Constructor and Description |
|---|
AbstractPeriod(double periodStart,
double periodEnd,
double fixingDate,
double paymentDate,
AbstractNotional notional,
AbstractProductComponent index)
Initialize basic properties of the period using the idealized
daycount faction
periodEnd-periodStart. |
AbstractPeriod(double periodStart,
double periodEnd,
double fixingDate,
double paymentDate,
AbstractNotional notional,
AbstractProductComponent index,
double daycountFraction)
Initialize basic properties of the period.
|
AbstractPeriod(LocalDateTime referenceDate,
double periodStart,
double periodEnd,
double fixingDate,
double paymentDate,
AbstractNotional notional,
AbstractProductComponent index,
double daycountFraction)
Initialize basic properties of the period.
|
| Modifier and Type | Method and Description |
|---|---|
abstract RandomVariable |
getCoupon(double evaluationTime,
LIBORModelMonteCarloSimulationModel model) |
String |
getCurrency()
Returns the currency string of this product.
|
double |
getDaycountFraction() |
double |
getFixingDate() |
AbstractProductComponent |
getIndex() |
AbstractNotional |
getNotional() |
double |
getPaymentDate() |
double |
getPeriodEnd() |
double |
getPeriodStart() |
LocalDateTime |
getReferenceDate() |
abstract 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.
|
Set<String> |
queryUnderlyings()
Returns a set of underlying names referenced by this product component (i.e., required for valuation) or null if none.
|
String |
toString() |
getExecutor, 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 AbstractPeriod(LocalDateTime referenceDate, double periodStart, double periodEnd, double fixingDate, double paymentDate, AbstractNotional notional, AbstractProductComponent index, double daycountFraction)
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).public AbstractPeriod(double periodStart,
double periodEnd,
double fixingDate,
double paymentDate,
AbstractNotional notional,
AbstractProductComponent index,
double daycountFraction)
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).public AbstractPeriod(double periodStart,
double periodEnd,
double fixingDate,
double paymentDate,
AbstractNotional notional,
AbstractProductComponent index)
periodEnd-periodStart.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.public abstract RandomVariable getValue(double evaluationTime, LIBORModelMonteCarloSimulationModel model) throws CalculationException
TermStructureMonteCarloProductgetValue in interface TermStructureMonteCarloProductgetValue in class AbstractLIBORMonteCarloProductevaluationTime - 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 abstract RandomVariable getCoupon(double evaluationTime, LIBORModelMonteCarloSimulationModel model) throws CalculationException
CalculationExceptionpublic String getCurrency()
MonteCarloProductgetCurrency in interface MonteCarloProductgetCurrency in class AbstractMonteCarloProductpublic LocalDateTime getReferenceDate()
public double getPeriodStart()
public double getPeriodEnd()
public double getFixingDate()
public double getPaymentDate()
public AbstractNotional getNotional()
public AbstractProductComponent getIndex()
public double getDaycountFraction()
public Set<String> queryUnderlyings()
AbstractProductComponentqueryUnderlyings in class AbstractProductComponentpublic String toString()
toString in class AbstractMonteCarloProductCopyright © 2019. All rights reserved.