Rechercher une page de manuel
QuantLib_FloatingRateCoupon
Langue: en
Version: 381725 (fedora - 01/12/10)
Section: 3 (Bibliothèques de fonctions)
NAME
QuantLib::FloatingRateCoupon -base floating-rate coupon class
SYNOPSIS
#include <ql/cashflows/floatingratecoupon.hpp>
Inherits QuantLib::Coupon, and QuantLib::Observer.
Inherited by AverageBMACoupon, CappedFlooredCoupon, CmsCoupon, DigitalCoupon, IborCoupon, OvernightIndexedCoupon, RangeAccrualFloatersCoupon, and SubPeriodsCoupon.
Public Member Functions
FloatingRateCoupon (const Date &paymentDate, Real nominal, const Date &startDate, const Date &endDate, Natural fixingDays, const boost::shared_ptr< InterestRateIndex > &index, Real gearing=1.0, Spread spread=0.0, const Date &refPeriodStart=Date(), const Date &refPeriodEnd=Date(), const DayCounter &dayCounter=DayCounter(), bool isInArrears=false)
void setPricer (const boost::shared_ptr< FloatingRateCouponPricer > &)
boost::shared_ptr< FloatingRateCouponPricer > pricer () const
CashFlow interface
Real amount () const
Coupon interface
Rate rate () const
Real price (const Handle< YieldTermStructure > &discountingCurve) const
DayCounter dayCounter () const
Real accruedAmount (const Date &) const
Inspectors
const boost::shared_ptr< InterestRateIndex > & index () const
floating index
Natural fixingDays () const
fixing days
virtual Date fixingDate () const
fixing date
Real gearing () const
index gearing, i.e. multiplicative coefficient for the index
Spread spread () const
spread paid over the fixing of the underlying index
virtual Rate indexFixing () const
fixing of the underlying index
virtual Rate convexityAdjustment () const
convexity adjustment
virtual Rate adjustedFixing () const
convexity-adjusted fixing
bool isInArrears () const
whether or not the coupon fixes in arrears
Observer interface
void update ()
Visitability
virtual void accept (AcyclicVisitor &)
Protected Member Functions
Rate convexityAdjustmentImpl (Rate fixing) const
convexity adjustment for the given index fixing
Protected Attributes
boost::shared_ptr< InterestRateIndex > index_
DayCounter dayCounter_
Natural fixingDays_
Real gearing_
Spread spread_
bool isInArrears_
boost::shared_ptr< FloatingRateCouponPricer > pricer_
Detailed Description
base floating-rate coupon class
Member Function Documentation
void update () [virtual]This method must be implemented in derived classes. An instance of Observer does not call this method directly: instead, it will be called by the observables the instance registered with when they need to notify any changes.
Implements Observer.
Reimplemented in CappedFlooredCoupon, and DigitalCoupon.
Author
Generated automatically by Doxygen for QuantLib from the source code.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre