public class SwapLeg extends AbstractLIBORMonteCarloProduct
| Constructor and Description |
|---|
SwapLeg(Schedule legSchedule,
AbstractNotional[] notionals,
AbstractIndex index,
double[] spreads,
boolean couponFlow,
boolean isNotionalExchanged)
Creates a swap leg.
|
SwapLeg(Schedule legSchedule,
AbstractNotional notional,
AbstractIndex index,
double spread,
boolean isNotionalExchanged)
Creates a swap leg.
|
SwapLeg(Schedule legSchedule,
AbstractNotional notional,
AbstractIndex index,
double spread,
boolean couponFlow,
boolean isNotionalExchanged,
boolean isNotionalAccruing)
Creates a swap leg.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getFactorDrift, getValue, getValueForModifiedData, getValuesgetCurrency, getValue, getValue, getValues, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCurrency, getValue, getValue, getValues, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedDatapublic SwapLeg(Schedule legSchedule, AbstractNotional notional, AbstractIndex index, double spread, boolean couponFlow, boolean isNotionalExchanged, boolean isNotionalAccruing)
legSchedule - ScheduleFromPeriods 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(Schedule legSchedule, AbstractNotional[] notionals, AbstractIndex index, double[] spreads, boolean couponFlow, boolean isNotionalExchanged)
legSchedule - ScheduleFromPeriods of the leg.notionals - An array of notionals for each period in the schedule.index - The index.spreads - Fixed spreads 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.public SwapLeg(Schedule legSchedule, AbstractNotional notional, AbstractIndex index, double spread, boolean isNotionalExchanged)
legSchedule - ScheduleFromPeriods 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 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.Copyright © 2019. All rights reserved.