public class AccruingNotional extends Object implements AbstractNotional
| Constructor and Description |
|---|
AccruingNotional(AbstractNotional previousPeriodNotional,
AbstractPeriod previousPeriod)
Creates a notion where the notional of the period start is calculated as
the notional of the previous period's period end and the notional at period end
is calculated as being accrued via getCoupon on the current period.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCurrency()
Returns the currency string of this notional.
|
RandomVariable |
getNotionalAtPeriodEnd(AbstractPeriod period,
LIBORModelMonteCarloSimulationModel model)
Calculates the notional at the end of a period, given a period.
|
RandomVariable |
getNotionalAtPeriodStart(AbstractPeriod period,
LIBORModelMonteCarloSimulationModel model)
Calculates the notional at the start of a period, given a period.
|
public AccruingNotional(AbstractNotional previousPeriodNotional, AbstractPeriod previousPeriod)
previousPeriodNotional - The notional of the previous period.previousPeriod - The previous period.public String getCurrency()
AbstractNotionalgetCurrency in interface AbstractNotionalpublic RandomVariable getNotionalAtPeriodStart(AbstractPeriod period, LIBORModelMonteCarloSimulationModel model) throws CalculationException
AbstractNotionalgetNotionalAtPeriodStart in interface AbstractNotionalperiod - Period.model - The model against we are evaluation.CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.public RandomVariable getNotionalAtPeriodEnd(AbstractPeriod period, LIBORModelMonteCarloSimulationModel model) throws CalculationException
AbstractNotionalgetNotionalAtPeriodEnd in interface AbstractNotionalperiod - Period.model - The model against we are evaluation.CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.Copyright © 2019. All rights reserved.