FixedCashFlow.hpp
Go to the documentation of this file.
virtual Date getDate() const override
returns payment date
Definition: FixedCashFlow.cpp:51
Class implements the general concept of CF understand as certain amount paid on predefined date...
Definition: CashFlow.hpp:22
void serialize(Archive &ar, const unsigned int)
interface used by Boost serialization library
Definition: FixedCashFlow.hpp:65
File contains definition of cash flow class.
friend std::ostream & operator<<(std::ostream &, FixedCashFlow &)
Overloads stream operator.
Definition: FixedCashFlow.cpp:114
Definition: cadHoliday.cpp:3
double value(const SmartPointer< ir::Curve > &disc) override
prints discounted the cashflow
Definition: FixedCashFlow.cpp:68
virtual double getCF() const override
returns CF
Definition: FixedCashFlow.cpp:57
Date accrual_end_
Date determining the end of accrual period.
Definition: FixedCashFlow.hpp:56
Date payment_date_
Date on which the CF is paid.
Definition: FixedCashFlow.hpp:57
virtual FixedCashFlow * clone() const
virtual copy constructor
Definition: FixedCashFlow.cpp:45
Date accrual_start_
Date determining the beginning of accrual period.
Definition: FixedCashFlow.hpp:55
virtual void addToCashFlow(double amount)
Increases CF by provided amount.
Definition: FixedCashFlow.cpp:94
double notional_
Notional of the CF.
Definition: FixedCashFlow.hpp:58
double amount_
Amount paid on payment_date_.
Definition: FixedCashFlow.hpp:59
virtual double price(const SmartPointer< ir::Curve > &disc) override
discounts the cashflow
Definition: FixedCashFlow.cpp:39
void setCashFlow(const SmartPointer< ir::Curve > &) override
sets new CF value basing on interest rate curve
Definition: FixedCashFlow.hpp:37
The class implements the concept of interest rate.
Definition: interestRate.hpp:25
Class implements the concept of fixed cash flow.
Definition: FixedCashFlow.hpp:21
bool notional_is_paid_
If true notional of CF is paid on payment date with accrued amount.
Definition: FixedCashFlow.hpp:61
virtual double getNotional() const override
returns notional
Definition: FixedCashFlow.cpp:106
void setCashFlow(double amount) override
sets new CF value
Definition: FixedCashFlow.cpp:88