7#ifndef COM_FTLABS_FISA_REDEMPTION_H
8#define COM_FTLABS_FISA_REDEMPTION_H
11#include "InterestFrequency.h"
36 bool _isDaysNoticeSet;
110 const FISADate &lastInterestDate,
int daysNotice);
117 bool operator==(
const Redemption &redemption )
const;
118 bool operator!=(
const Redemption &redemption )
const;
119 bool operator<(
const Redemption &redemption )
const;
120 bool operator>(
const Redemption &redemption )
const;
121 bool operator<=(
const Redemption &redemption )
const;
122 bool operator>=(
const Redemption &redemption )
const;
246 bool isEmpty(
void )
const;
This class represents a calendar date, and includes methods to determine synchronicity as well as met...
Definition: FISADate.h:27
This class defines all of the supported interest frequencies.
Definition: InterestFrequency.h:24
A class to represent any redemption date and rate.
Definition: Redemption.h:29
Redemption(void)
This will initialize a Redemption with an empty date, a value of 0.0, a null lastInterestDate and wil...
Definition: Redemption.cpp:8
void clearDaysNotice()
Clears the daysNotice allowing this Redemption to use the daysNotice set for the CallSchedule.
Definition: Redemption.cpp:193
void setDaysNotice(int daysNotice)
Set the daysNotice for this Redemption, which when set will be used to override the daysNotice used f...
Definition: Redemption.cpp:184
const FISADate * getLastInterestDate(void) const
Get the last interest date, which would be the interest date just prior to redemption.
Definition: Redemption.cpp:151
const FISADate * generateLastInterestDate(const FISADate &synchronizeDate, const InterestFrequency &interestFrequency, bool eomAdjust)
Generates a date that would be the interest/dividend date just prior to redemption....
Definition: Redemption.cpp:198
const FISADate & getDate(void) const
Get the redemption date.
Definition: Redemption.cpp:131
bool isDaysNoticeSet() const
Determine if the daysNotice is set.
Definition: Redemption.cpp:189
void setLastInterestDate(const FISADate *lastInterestDate)
Set or clear the last interest date, which would be the interest date just prior to redemption.
Definition: Redemption.cpp:157
double getValue(void) const
Get the redemption value.
Definition: Redemption.cpp:141
int getDaysNotice() const
Get the daysNotice for this Redemption.
Definition: Redemption.cpp:180
void setDate(const FISADate &date)
Set the redemption date.
Definition: Redemption.cpp:136
void setValue(double value)
Set the redemption value.
Definition: Redemption.cpp:146