public class SwapAnnuity extends AbstractAnalyticProduct implements AnalyticProduct
TimeDiscretization
.Constructor and Description 

SwapAnnuity(Schedule schedule,
String discountCurveName)
Creates a swap annuity for a given schedule and discount curve.

Modifier and Type  Method and Description 

static RandomVariable 
getSwapAnnuity(double evaluationTime,
Schedule schedule,
DiscountCurveInterface discountCurve,
AnalyticModel model)
Function to calculate an (idealized) swap annuity for a given schedule and discount curve.

static RandomVariable 
getSwapAnnuity(Schedule schedule,
DiscountCurveInterface discountCurve)
Function to calculate an (idealized) swap annuity for a given schedule and discount curve.

static RandomVariable 
getSwapAnnuity(Schedule schedule,
ForwardCurveInterface forwardCurve)
Function to calculate an (idealized) single curve swap annuity for a given schedule and forward curve.

static RandomVariable 
getSwapAnnuity(TimeDiscretization tenor,
DiscountCurveInterface discountCurve)
Function to calculate an (idealized) swap annuity for a given schedule and discount curve.

static RandomVariable 
getSwapAnnuity(TimeDiscretization tenor,
ForwardCurveInterface forwardCurve)
Function to calculate an (idealized) single curve swap annuity for a given schedule and forward curve.

RandomVariable 
getValue(double evaluationTime,
AnalyticModel model)
Return the valuation of the product using the given model.

String 
toString() 
getValue, getValue
public RandomVariable getValue(double evaluationTime, AnalyticModel model)
AnalyticProduct
AnalyticModel
.getValue
in interface AnalyticProduct
evaluationTime
 The evaluation time as double. Cash flows prior and including this time are not considered.model
 The model under which the product is valued.public static RandomVariable getSwapAnnuity(TimeDiscretization tenor, DiscountCurveInterface discountCurve)
tenor
 The schedule discretization, i.e., the period start and end dates. End dates are considered payment dates and start of the next period.discountCurve
 The discount curve.public static RandomVariable getSwapAnnuity(TimeDiscretization tenor, ForwardCurveInterface forwardCurve)
tenor
 The schedule discretization, i.e., the period start and end dates. End dates are considered payment dates and start of the next period.forwardCurve
 The forward curve.public static RandomVariable getSwapAnnuity(Schedule schedule, DiscountCurveInterface discountCurve)
getSwapAnnuity(double, Schedule, DiscountCurveInterface, AnalyticModel)
.schedule
 The schedule discretization, i.e., the period start and end dates. End dates are considered payment dates and start of the next period.discountCurve
 The discount curve.public static RandomVariable getSwapAnnuity(Schedule schedule, ForwardCurveInterface forwardCurve)
getSwapAnnuity(double, Schedule, DiscountCurveInterface, AnalyticModel)
.schedule
 The schedule discretization, i.e., the period start and end dates. End dates are considered payment dates and start of the next period.forwardCurve
 The forward curve.public static RandomVariable getSwapAnnuity(double evaluationTime, Schedule schedule, DiscountCurveInterface discountCurve, AnalyticModel model)
evaluationTime
 The evaluation time as double. Cash flows prior and including this time are not considered.schedule
 The schedule discretization, i.e., the period start and end dates. End dates are considered payment dates and start of the next period.discountCurve
 The discount curve.model
 The model, needed only in case the discount curve evaluation depends on an additional curve.Copyright © 2019. All rights reserved.