IndexedCoupon Class Reference

#include <indexedcoupon.hpp>

Inheritance diagram for IndexedCoupon:

Inheritance graph
[legend]
List of all members.

Detailed Description

base indexed coupon class

Warning:
This class does not perform any date adjustment, i.e., the start and end date passed upon construction should be already rolled to a business day.


Public Member Functions

 IndexedCoupon (double nominal, const Date &paymentDate, const Handle< Indexes::Xibor > &index, const Date &startDate, const Date &endDate, int fixingDays, Spread spread=0.0, const Date &refPeriodStart=Date(), const Date &refPeriodEnd=Date(), const DayCounter &dayCounter=DayCounter())
CashFlow interface
double amount () const
 returns the amount of the cash flow

Coupon interface
DayCounter dayCounter () const
 day counter for accrual calculation

FloatingRateCoupon interface
Rate fixing () const
Inspectors
const Handle< Indexes::Xibor > & index () const
Observer interface
void update ()
Visitability
virtual void accept (Patterns::Visitor &)


Member Function Documentation

double amount  )  const [virtual]
 

returns the amount of the cash flow

Note:
The amount is not discounted, i.e., it is the actual amount paid at the cash flow date.

Implements CashFlow.

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.


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

QuantLib.org
QuantLib
Hosted by
SourceForge.net Logo
Documentation generated by
doxygen