Logo Search packages:      
Sourcecode: quantlib version File versions

QuantLib::Coupon Class Reference

#include <coupon.hpp>

Inheritance diagram for QuantLib::Coupon:

QuantLib::CashFlow QuantLib::Observable QuantLib::FixedRateCoupon QuantLib::FloatingRateCoupon QuantLib::IndexedCoupon QuantLib::ParCoupon QuantLib::InArrearIndexedCoupon QuantLib::UpFrontIndexedCoupon QuantLib::Short< ParCoupon >

List of all members.


Detailed Description

coupon accruing over a fixed period

This class implements part of the CashFlow interface but it is still abstract and provides derived classes with methods for accrual period calculations.

Definition at line 38 of file coupon.hpp.


Public Member Functions

 Coupon (Real nominal, const Date &paymentDate, const Date &accrualStartDate, const Date &accrualEndDate, const Date &refPeriodStart=Date(), const Date &refPeriodEnd=Date())
void notifyObservers ()
Visitability
virtual void accept (AcyclicVisitor &)
Inspectors
Integer accrualDays () const
 accrual period in days
const DateaccrualEndDate () const
 end of the accrual period
Time accrualPeriod () const
 accrual period as fraction of year
const DateaccrualStartDate () const
 start of the accrual period
virtual Real accruedAmount (const Date &) const =0
 accrued amount at the given date
virtual DayCounter dayCounter () const =0
 day counter for accrual calculation
Real nominal () const
virtual Rate rate () const =0
 accrued rate
CashFlow interface
virtual Real amount () const =0
 returns the amount of the cash flow
Partial CashFlow interface
Date date () const
 returns the date at which the cash flow is settled

Protected Attributes

Date accrualEndDate_
Date accrualStartDate_
Real nominal_
Date paymentDate_
Date refPeriodEnd_
Date refPeriodStart_

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index