public class SwapLeg extends AbstractLIBORMonteCarloProduct
| Constructor and Description |
|---|
SwapLeg(ScheduleInterface legSchedule,
AbstractNotional notional,
AbstractIndex index,
double spread,
boolean isNotionalExchanged)
Creates a swap leg.
|
SwapLeg(ScheduleInterface legSchedule,
AbstractNotional notional,
AbstractIndex index,
double spread,
boolean couponFlow,
boolean isNotionalExchanged,
boolean isNotionalAccruing)
Creates a swap leg.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getFactorDrift, getValue, getValueForModifiedData, getValuesgetCurrency, getValue, getValue, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, toStringpublic SwapLeg(ScheduleInterface legSchedule, AbstractNotional notional, AbstractIndex index, double spread, boolean couponFlow, boolean isNotionalExchanged, boolean isNotionalAccruing)
legSchedule - Schedule of the leg.notional - The notional.index - The index.spread - Fixed spread on the forward or fix rate.couponFlow - If true, the coupon is payed. If false, the coupon is not payed, but may still be part of an accruing notional, see isNotionalAccruing.isNotionalExchanged - If true, the leg will pay notional at the beginning of the swap and receive notional at the end of the swap.isNotionalAccruing - If true, the notional is accruing, that is, the notional of a period is given by the notional of the previous period, accrued with the coupon of the previous period.public SwapLeg(ScheduleInterface legSchedule, AbstractNotional notional, AbstractIndex index, double spread, boolean isNotionalExchanged)
legSchedule - Schedule of the leg.notional - The notional.index - The index.spread - Fixed spread on the forward or fix rate.isNotionalExchanged - If true, the leg will pay notional at the beginning of the swap and receive notional at the end of the swap.public 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.Copyright © 2017. All rights reserved.