#include <MaturingSecurity.h>
Inheritance diagram for com::ftlabs::fisa::MaturingSecurity:

Public Member Functions | |
| virtual | ~MaturingSecurity (void) |
| const Redemption & | getMaturity (void) const |
| Get the maturity Redemption. | |
| const FISADate & | getMaturityDate (void) const |
| A convenience method to get the maturity date bound to the maturity Redemption. | |
| void | setMaturity (const Redemption &maturity) |
| Set the maturity Redemption. | |
| void | setMaturity (const FISADate &maturityDate, double redemptionValue) |
| Sets maturity to a new Redemption object for the given maturityDate and redemptionValue. | |
| void | setMaturity (const FISADate &maturityDate) |
| Sets maturity to a new Redemption object for the given maturityDate with a default redemption value of 100.0. | |
| virtual std::auto_ptr< com::ftlabs::fisa::calc::QuoteAnalytics > | createQuoteAnalytics (const com::ftlabs::fisa::calc::Quote "e, const FISADate &settlementDate, const HolidaySchedule *holidaySchedule=0) const throw ( com::ftlabs::fisa::calc::CalculationException ) |
| Create a new Calculator for this Security and provided settlementDate. The maturity Redemption will be used with this settlementDate to create a new Calculator. | |
| virtual int | getRedemptionCount (void) |
| Get the number of Redemptions set for this Security, including any calls and maturity. | |
| virtual const Redemption * | getRedemption (int index) |
| Get a pointer to the Redemption at the specified index. | |
Protected Member Functions | |
| MaturingSecurity (const Market &market, const Security::ClassID &classID) | |
| MaturingSecurity (const MaturingSecurity &security) | |
| MaturingSecurity & | operator= (const MaturingSecurity &security) |
| virtual const com::ftlabs::fisa::calc::Calculator * | createCalculatorImpl (const FISADate &settlementDate, const HolidaySchedule *holidaySchedule=0) const throw ( com::ftlabs::fisa::calc::CalculationException ) |
| Create a new Calculator pointer to be used for this Security and provided settlementDate. The maturity Redemption will be used with this settlementDate to create a new Calculator. | |
Private Attributes | |
| Redemption | maturity |
| com::ftlabs::fisa::MaturingSecurity::MaturingSecurity | ( | const Market & | market, | |
| const Security::ClassID & | classID | |||
| ) | [protected] |
| com::ftlabs::fisa::MaturingSecurity::MaturingSecurity | ( | const MaturingSecurity & | security | ) | [protected] |
| virtual com::ftlabs::fisa::MaturingSecurity::~MaturingSecurity | ( | void | ) | [virtual] |
| MaturingSecurity& com::ftlabs::fisa::MaturingSecurity::operator= | ( | const MaturingSecurity & | security | ) | [protected] |
| const Redemption& com::ftlabs::fisa::MaturingSecurity::getMaturity | ( | void | ) | const |
| const FISADate& com::ftlabs::fisa::MaturingSecurity::getMaturityDate | ( | void | ) | const |
A convenience method to get the maturity date bound to the maturity Redemption.
| void com::ftlabs::fisa::MaturingSecurity::setMaturity | ( | const Redemption & | maturity | ) |
| void com::ftlabs::fisa::MaturingSecurity::setMaturity | ( | const FISADate & | maturityDate, | |
| double | redemptionValue | |||
| ) |
Sets maturity to a new Redemption object for the given maturityDate and redemptionValue.
| maturityDate | The date o which this security is to mature. | |
| redemptionValue | the redemption value at maturity |
| void com::ftlabs::fisa::MaturingSecurity::setMaturity | ( | const FISADate & | maturityDate | ) |
Sets maturity to a new Redemption object for the given maturityDate with a default redemption value of 100.0.
| maturityDate | The date on which this security is to mature. |
| virtual std::auto_ptr<com::ftlabs::fisa::calc::QuoteAnalytics> com::ftlabs::fisa::MaturingSecurity::createQuoteAnalytics | ( | const com::ftlabs::fisa::calc::Quote & | quote, | |
| const FISADate & | settlementDate, | |||
| const HolidaySchedule * | holidaySchedule = 0 | |||
| ) | const throw ( com::ftlabs::fisa::calc::CalculationException ) [virtual] |
Create a new Calculator for this Security and provided settlementDate. The maturity Redemption will be used with this settlementDate to create a new Calculator.
| settlementDate | The binding settlementDate for which all calculations will be run. | |
| holidaySchedule | A pointer to a HolidaySchedule to be used for calculating True Yield. If 0, only weekend days will be used for cash flow date adjustments. |
Implements com::ftlabs::fisa::Security.
Reimplemented in com::ftlabs::fisa::MaturingCallableSecurity.
| virtual int com::ftlabs::fisa::MaturingSecurity::getRedemptionCount | ( | void | ) | [virtual] |
Get the number of Redemptions set for this Security, including any calls and maturity.
Implements com::ftlabs::fisa::Security.
Reimplemented in com::ftlabs::fisa::MaturingCallableSecurity.
| virtual const Redemption* com::ftlabs::fisa::MaturingSecurity::getRedemption | ( | int | index | ) | [virtual] |
Get a pointer to the Redemption at the specified index.
| index | The index of the Redemption to return. A valid index would be from 0 through getRedemptionCount() - 1. |
Implements com::ftlabs::fisa::Security.
Reimplemented in com::ftlabs::fisa::MaturingCallableSecurity.
| virtual const com::ftlabs::fisa::calc::Calculator* com::ftlabs::fisa::MaturingSecurity::createCalculatorImpl | ( | const FISADate & | settlementDate, | |
| const HolidaySchedule * | holidaySchedule = 0 | |||
| ) | const throw ( com::ftlabs::fisa::calc::CalculationException ) [protected, virtual] |
Create a new Calculator pointer to be used for this Security and provided settlementDate. The maturity Redemption will be used with this settlementDate to create a new Calculator.
| settlementDate | The binding settlementDate for which all calculations will be run. | |
| holidaySchedule | A pointer to a HolidaySchedule to be used for calculating True Yield. If 0, only weekend days will be used for cash flow date adjustments. |
Implements com::ftlabs::fisa::Security.
Reimplemented in com::ftlabs::fisa::DiscountSecurity, and com::ftlabs::fisa::InflationIndexedSecurity.
1.5.2