Class implements the concept of fixed cash flow.
More...
#include <FixedCashFlow.hpp>
|
| FixedCashFlow (Date start, Date end, Date payment, double amount, double notional, bool notional_is_paid) |
| constructor More...
|
|
| FixedCashFlow (Date start, Date end, Date payment, double q, double notional, InterestRate rate, bool notional_is_paid) |
| constructor More...
|
|
virtual double | price (const SmartPointer< ir::Curve > &disc) override |
| discounts the cashflow More...
|
|
double | value (const SmartPointer< ir::Curve > &disc) override |
| prints discounted the cashflow More...
|
|
virtual Date | getDate () const override |
| returns payment date More...
|
|
virtual double | getNotional () const override |
| returns notional More...
|
|
virtual double | getCF () const override |
| returns CF More...
|
|
void | setCashFlow (double amount) override |
| sets new CF value More...
|
|
void | setCashFlow (double quote, const InterestRate &rate) override |
| calculates new CF value basing on quoting and interest rate provided More...
|
|
void | setCashFlow (const SmartPointer< ir::Curve > &) override |
| sets new CF value basing on interest rate curve More...
|
|
virtual void | addToCashFlow (double amount) |
| Increases CF by provided amount. More...
|
|
virtual void | addToCashFlow (double quote, InterestRate rate) |
| Increases CF by amount calculated using quote and rate provided. More...
|
|
virtual FixedCashFlow * | clone () const |
| virtual copy constructor More...
|
|
virtual | ~CashFlow () |
| destructor More...
|
|
|
template<class Archive > |
void | serialize (Archive &ar, const unsigned int) |
| interface used by Boost serialization library More...
|
|
Class implements the concept of fixed cash flow.
Fixed cash flow is predefined amount paid on predefined date. Usually fixed cash flow is determined by interest rate given and length of accrual period covering time interval between FixedCashFlow::accrual_start_ and FixedCashFlow::accrual_end_ date.
julian::FixedCashFlow::FixedCashFlow |
( |
Date |
start, |
|
|
Date |
end, |
|
|
Date |
payment, |
|
|
double |
amount, |
|
|
double |
notional, |
|
|
bool |
notional_is_paid |
|
) |
| |
constructor
Creates FixedCashFlow basing on provided dates and amount
julian::FixedCashFlow::FixedCashFlow |
( |
Date |
start, |
|
|
Date |
end, |
|
|
Date |
payment, |
|
|
double |
quote, |
|
|
double |
notional, |
|
|
InterestRate |
rate, |
|
|
bool |
notional_is_paid |
|
) |
| |
constructor
Creates FixedCashFlow basing on provided dates, interest rate and quoting
void julian::FixedCashFlow::addToCashFlow |
( |
double |
amount | ) |
|
|
virtual |
Increases CF by provided amount.
void julian::FixedCashFlow::addToCashFlow |
( |
double |
quote, |
|
|
InterestRate |
rate |
|
) |
| |
|
virtual |
Increases CF by amount calculated using quote and rate provided.
double julian::FixedCashFlow::getCF |
( |
| ) |
const |
|
overridevirtual |
Date julian::FixedCashFlow::getDate |
( |
| ) |
const |
|
overridevirtual |
double julian::FixedCashFlow::getNotional |
( |
| ) |
const |
|
overridevirtual |
discounts the cashflow
Method discount the cashflow on the curve valuation date.
Implements julian::CashFlow.
template<class Archive >
void julian::FixedCashFlow::serialize |
( |
Archive & |
ar, |
|
|
const unsigned |
int |
|
) |
| |
|
private |
interface used by Boost serialization library
void julian::FixedCashFlow::setCashFlow |
( |
double |
amount | ) |
|
|
overridevirtual |
void julian::FixedCashFlow::setCashFlow |
( |
double |
quote, |
|
|
const InterestRate & |
rate |
|
) |
| |
|
overridevirtual |
calculates new CF value basing on quoting and interest rate provided
Implements julian::CashFlow.
prints discounted the cashflow
Method calculates discounted cashflow on the curve valuation date and then prints it
Implements julian::CashFlow.
Overloads stream operator.
This overloaded operator enables to print the curve on the console.
Date julian::FixedCashFlow::accrual_end_ |
|
private |
Date determining the end of accrual period.
Date julian::FixedCashFlow::accrual_start_ |
|
private |
Date determining the beginning of accrual period.
double julian::FixedCashFlow::amount_ |
|
private |
Amount paid on payment_date_.
double julian::FixedCashFlow::notional_ |
|
private |
bool julian::FixedCashFlow::notional_is_paid_ |
|
private |
If true notional of CF is paid on payment date with accrued amount.
Date julian::FixedCashFlow::payment_date_ |
|
private |
Date on which the CF is paid.
The documentation for this class was generated from the following files:
- C:/Unix/home/OEM/jULIAN/src/instruments/FixedCashFlow.hpp
- C:/Unix/home/OEM/jULIAN/src/instruments/FixedCashFlow.cpp