FloatingCashFlow.hpp
Go to the documentation of this file.
27 FloatingCashFlow(Date acc_start, Date acc_end, Date fix_start, Date fix_end, Date payment, double n, double additive_margin, double multiplicative_margin, bool notional_is_paid);
Class implements the general concept of CF understand as certain amount paid on predefined date...
Definition: CashFlow.hpp:22
File contains definition of cash flow class.
double amount_
Amount paid on payment_date_.
Definition: FloatingCashFlow.hpp:53
Date fixing_start_
Date of fixings the benchmark rate.
Definition: FloatingCashFlow.hpp:47
Date accrual_start_
Date determining the beginning of accrual period.
Definition: FloatingCashFlow.hpp:45
Definition: cadHoliday.cpp:3
double additive_margin_
Margin added to benchmark date.
Definition: FloatingCashFlow.hpp:54
void serialize(Archive &ar, const unsigned int)
interface used by Boost serialization library
Definition: FloatingCashFlow.hpp:63
virtual double getCF() const
returns CF
Definition: FloatingCashFlow.cpp:96
virtual FloatingCashFlow * clone() const
virtual copy constructor
Definition: FloatingCashFlow.cpp:52
virtual Date getDate() const
returns payment date
Definition: FloatingCashFlow.cpp:30
Date accrual_end_
Date determining the end of accrual period.
Definition: FloatingCashFlow.hpp:46
double value(const SmartPointer< ir::Curve > &disc)
prints discounted cashflows
Definition: FloatingCashFlow.cpp:38
friend std::ostream & operator<<(std::ostream &, FloatingCashFlow &)
Overloads stream operator.
Definition: FloatingCashFlow.cpp:89
double multiplicative_margin_
Margin multiplying to benchmark date.
Definition: FloatingCashFlow.hpp:55
virtual double getNotional() const
returns notional
Definition: FloatingCashFlow.cpp:102
Class implements the concept of floating cash flow.
Definition: FloatingCashFlow.hpp:24
double notional_
Notional of the CF.
Definition: FloatingCashFlow.hpp:52
void setCashFlow(double amount)
sets the cash flow
Definition: FloatingCashFlow.cpp:58
Date payment_date_
Date on which the CF is paid.
Definition: FloatingCashFlow.hpp:50
The class implements the concept of interest rate.
Definition: interestRate.hpp:25
bool notional_is_paid_
If true notional of CF is paid on payment date with accrued amount.
Definition: FloatingCashFlow.hpp:57
Date fixing_end_
Benchmark rate maturity date.
Definition: FloatingCashFlow.hpp:48
virtual double price(const SmartPointer< ir::Curve > &disc)
discounts the cashflow
Definition: FloatingCashFlow.cpp:22