public abstract class AbstractPeriod extends AbstractProductComponent
executor| 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.
|
| Modifier and Type | Method and Description |
|---|---|
abstract RandomVariableInterface |
getCoupon(LIBORModelMonteCarloSimulationInterface model) |
String |
getCurrency()
Returns the currency string of this notional.
|
double |
getDaycountFraction() |
double |
getFixingDate() |
AbstractProductComponent |
getIndex() |
AbstractNotional |
getNotional() |
double |
getPaymentDate() |
double |
getPeriodEnd() |
double |
getPeriodStart() |
abstract RandomVariableInterface |
getValue(double evaluationTime,
LIBORModelMonteCarloSimulationInterface 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() |
getValuesgetFactorDrift, getValue, getValueForModifiedDatagetValue, getValue, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedDatapublic 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 RandomVariableInterface getValue(double evaluationTime, LIBORModelMonteCarloSimulationInterface model) throws CalculationException
AbstractLIBORMonteCarloProductgetValue 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 RandomVariableInterface getCoupon(LIBORModelMonteCarloSimulationInterface model) throws CalculationException
CalculationExceptionpublic String getCurrency()
AbstractMonteCarloProductgetCurrency in class AbstractMonteCarloProductpublic 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 © 2017. All rights reserved.