com::ftlabs::fisa::ContinuousCallSchedule Class Reference

#include <ContinuousCallSchedule.h>

Inheritance diagram for com::ftlabs::fisa::ContinuousCallSchedule:

com::ftlabs::fisa::DiscreteCallSchedule com::ftlabs::fisa::CallSchedule List of all members.

Public Member Functions

 ContinuousCallSchedule (const FISADate &maturityDate)
 Constructs a new ContinuousCallSchedule with 30 daysNotice and using today as the tradeDate.
 ContinuousCallSchedule (int daysNotice, const FISADate &maturityDate)
 Constructs a new ContinuousCallSchedule using the provided daysNotice and today as the tradeDate.
 ContinuousCallSchedule (const FISADate &tradeDate, int daysNotice, const FISADate &maturityDate)
 Constructs a new ContinuousCallSchedule using the provided tradeDate, daysNotice and maturityDate.
 ContinuousCallSchedule (const ContinuousCallSchedule &callSchedule)
virtual ~ContinuousCallSchedule (void)
ContinuousCallScheduleoperator= (const ContinuousCallSchedule &callSchedule)
virtual int getCount (void) const
 Get the number of calls in this schedule.
virtual const RedemptiongetCall (int index) const
virtual const RedemptiongetNextCall (void) const
 A convenience method to get the "next" call.
virtual const RedemptiongetNextPremiumCall (void) const
 A convenience method to get the "next" premium call.
virtual const RedemptiongetNextParCall (void) const
 A convenience method to get the "next" par call.
virtual void add (const Redemption &redemption)
 Add a redemption to this DiscreteCallSchedule.
virtual void setDaysNotice (int daysNotice)
 Set daysNotice.
virtual void setTradeDate (const FISADate &tradeDate)
 Set tradeDate.
virtual int getStartingIndex (void) const
 Returns the index of the first call that falls on or after the number of daysNotice from tradeDate.
RedemptiongetNextContinuousCall (void) const
 Returns a pointer to the next generated continuous call.

Private Member Functions

void generateNextContinuousCall (void) const
void clearContinuousCall (void)

Private Attributes

Redemption ** nextContinuousCall
bool * generatedCall
FISADate maturityDate

Constructor & Destructor Documentation

com::ftlabs::fisa::ContinuousCallSchedule::ContinuousCallSchedule ( const FISADate maturityDate  ) 

Constructs a new ContinuousCallSchedule with 30 daysNotice and using today as the tradeDate.

Parameters:
maturityDate The maturity date of the Security.

com::ftlabs::fisa::ContinuousCallSchedule::ContinuousCallSchedule ( int  daysNotice,
const FISADate maturityDate 
)

Constructs a new ContinuousCallSchedule using the provided daysNotice and today as the tradeDate.

Parameters:
daysNotice daysNotice
maturityDate The maturity date of the Security.

com::ftlabs::fisa::ContinuousCallSchedule::ContinuousCallSchedule ( const FISADate tradeDate,
int  daysNotice,
const FISADate maturityDate 
)

Constructs a new ContinuousCallSchedule using the provided tradeDate, daysNotice and maturityDate.

Parameters:
tradeDate tradeDate
daysNotice daysNotice
maturityDate The maturity date of the Security.

com::ftlabs::fisa::ContinuousCallSchedule::ContinuousCallSchedule ( const ContinuousCallSchedule callSchedule  ) 

virtual com::ftlabs::fisa::ContinuousCallSchedule::~ContinuousCallSchedule ( void   )  [virtual]


Member Function Documentation

ContinuousCallSchedule& com::ftlabs::fisa::ContinuousCallSchedule::operator= ( const ContinuousCallSchedule callSchedule  ) 

virtual int com::ftlabs::fisa::ContinuousCallSchedule::getCount ( void   )  const [virtual]

Get the number of calls in this schedule.

Returns:
The number of calls in this schedule.

Reimplemented from com::ftlabs::fisa::DiscreteCallSchedule.

virtual const Redemption* com::ftlabs::fisa::ContinuousCallSchedule::getCall ( int  index  )  const [virtual]

Reimplemented from com::ftlabs::fisa::DiscreteCallSchedule.

virtual const Redemption* com::ftlabs::fisa::ContinuousCallSchedule::getNextCall ( void   )  const [virtual]

A convenience method to get the "next" call.

Returns:
A pointer to the earliest call in this schedule, or 0 if a call doesn't exist in this schedule.

Reimplemented from com::ftlabs::fisa::DiscreteCallSchedule.

virtual const Redemption* com::ftlabs::fisa::ContinuousCallSchedule::getNextPremiumCall ( void   )  const [virtual]

A convenience method to get the "next" premium call.

Returns:
A pointer to the earliest premium call in this schedule, or 0 if a premium call doesn't exist in this schedule.

Reimplemented from com::ftlabs::fisa::DiscreteCallSchedule.

virtual const Redemption* com::ftlabs::fisa::ContinuousCallSchedule::getNextParCall ( void   )  const [virtual]

A convenience method to get the "next" par call.

Returns:
A pointer to the earliest par call in this schedule, or 0 if a par call doesn't exist in this schedule.

Reimplemented from com::ftlabs::fisa::DiscreteCallSchedule.

virtual void com::ftlabs::fisa::ContinuousCallSchedule::add ( const Redemption redemption  )  [virtual]

Add a redemption to this DiscreteCallSchedule.

Parameters:
redemption A call redemption.

Reimplemented from com::ftlabs::fisa::DiscreteCallSchedule.

virtual void com::ftlabs::fisa::ContinuousCallSchedule::setDaysNotice ( int  daysNotice  )  [virtual]

Set daysNotice.

Parameters:
daysNotice daysNotice

Reimplemented from com::ftlabs::fisa::DiscreteCallSchedule.

virtual void com::ftlabs::fisa::ContinuousCallSchedule::setTradeDate ( const FISADate tradeDate  )  [virtual]

Set tradeDate.

Parameters:
tradeDate tradeDate

Reimplemented from com::ftlabs::fisa::DiscreteCallSchedule.

virtual int com::ftlabs::fisa::ContinuousCallSchedule::getStartingIndex ( void   )  const [virtual]

Returns the index of the first call that falls on or after the number of daysNotice from tradeDate.

If there are no calls that are on or after daysNotice from the tradeDate, then getCount() is returned, which could be 0.

Returns:
Returns the index of the first call that falls on or after the number of daysNotice from tradeDate.

Reimplemented from com::ftlabs::fisa::DiscreteCallSchedule.

Redemption* com::ftlabs::fisa::ContinuousCallSchedule::getNextContinuousCall ( void   )  const

Returns a pointer to the next generated continuous call.

Returns:
A pointer to the next generated continuous call.

void com::ftlabs::fisa::ContinuousCallSchedule::generateNextContinuousCall ( void   )  const [private]

void com::ftlabs::fisa::ContinuousCallSchedule::clearContinuousCall ( void   )  [private]


Member Data Documentation

Redemption** com::ftlabs::fisa::ContinuousCallSchedule::nextContinuousCall [private]

bool* com::ftlabs::fisa::ContinuousCallSchedule::generatedCall [private]

FISADate com::ftlabs::fisa::ContinuousCallSchedule::maturityDate [private]


The documentation for this class was generated from the following file:
Generated on Tue Feb 5 03:50:22 2008 for FTLabs FISA (c++) by  doxygen 1.5.2