com::ftlabs::fisa::DayCountBasis_Act_365_JP Class Reference

Implementation of the Act/365_JP (Japanese) DayCountBasis. More...

#include <DayCountBasis.h>

Inheritance diagram for com::ftlabs::fisa::DayCountBasis_Act_365_JP:

com::ftlabs::fisa::DayCountBasis List of all members.

Public Member Functions

double calculateDaysInPeriod (const FISADate &previousCouponDate, const FISADate &nextCouponDate, int interestFrequency, bool eomAdjust) const
 Calculate the total number of days in a coupon period according to Japanese day count conventions.
double calculateDaysAccrued (const FISADate &previousCouponDate, const FISADate &nextCouponDate, const FISADate &settlementDate, int interestFrequency, bool eomAdjust) const
 Calculate the number of days accrued within a coupon period according to Japanese day count conventions.
double calculateDaysRemaining (const FISADate &previousCouponDate, const FISADate &nextCouponDate, const FISADate &settlementDate, int interestFrequency, bool eomAdjust) const
 Calculate the number of days remaining in a coupon period according to Japanese day count conventions.
double calculateDays (const FISADate &earlierDate, const FISADate &laterDate, int interestFrequency, bool eomAdjust) const
 Calculate the number of days between two dates according to Japanese day count conventions.
int getDaysInYear (const FISADate &date) const
 Calculate the number of days for a given year.
const std::string & getName (void) const

Private Member Functions

 DayCountBasis_Act_365_JP (void)
 ~DayCountBasis_Act_365_JP (void)

Static Private Attributes

static const std::string name

Friends

class DayCountBasis

Detailed Description

Implementation of the Act/365_JP (Japanese) DayCountBasis.


Constructor & Destructor Documentation

com::ftlabs::fisa::DayCountBasis_Act_365_JP::DayCountBasis_Act_365_JP ( void   )  [private]

com::ftlabs::fisa::DayCountBasis_Act_365_JP::~DayCountBasis_Act_365_JP ( void   )  [private]


Member Function Documentation

double com::ftlabs::fisa::DayCountBasis_Act_365_JP::calculateDaysInPeriod ( const FISADate previousCouponDate,
const FISADate nextCouponDate,
int  interestFrequency,
bool  eomAdjust 
) const [virtual]

Calculate the total number of days in a coupon period according to Japanese day count conventions.

Parameters:
previousCouponDate the previous coupon date.
nextCouponDate the next coupon date.
interestFrequency the interestFrequency.
eomAdjust determines whether the end of month adjustment rule is used.

Returns:
the number of days within the given period.

Implements com::ftlabs::fisa::DayCountBasis.

double com::ftlabs::fisa::DayCountBasis_Act_365_JP::calculateDaysAccrued ( const FISADate previousCouponDate,
const FISADate nextCouponDate,
const FISADate settlementDate,
int  interestFrequency,
bool  eomAdjust 
) const [virtual]

Calculate the number of days accrued within a coupon period according to Japanese day count conventions.

Parameters:
previousCouponDate the previous coupon date.
nextCouponDate the next coupon date.
settlementDate the date on which settlement occurs.
interestFrequency the interestFrequency.
eomAdjust determines whether the end of month adjustment rule is used.

Returns:
the number of days accrued within the given period.

Implements com::ftlabs::fisa::DayCountBasis.

double com::ftlabs::fisa::DayCountBasis_Act_365_JP::calculateDaysRemaining ( const FISADate previousCouponDate,
const FISADate nextCouponDate,
const FISADate settlementDate,
int  interestFrequency,
bool  eomAdjust 
) const [virtual]

Calculate the number of days remaining in a coupon period according to Japanese day count conventions.

Parameters:
previousCouponDate the previous coupon date.
nextCouponDate the next coupon date.
settlementDate the date on which settlement occurs.
interestFrequency the interestFrequency.
eomAdjust determines whether the end of month adjustment rule is used.

Returns:
the number of days remaining in the given period.

Implements com::ftlabs::fisa::DayCountBasis.

double com::ftlabs::fisa::DayCountBasis_Act_365_JP::calculateDays ( const FISADate earlierDate,
const FISADate laterDate,
int  interestFrequency,
bool  eomAdjust 
) const [virtual]

Calculate the number of days between two dates according to Japanese day count conventions.

Parameters:
earlierDate The starting date of the period.
laterDate The ending date of the period.
interestFrequency the interestFrequency.
eomAdjust determines whether the end of month adjustment rule is used.

Returns:
the number of days within the specified period.

Implements com::ftlabs::fisa::DayCountBasis.

int com::ftlabs::fisa::DayCountBasis_Act_365_JP::getDaysInYear ( const FISADate date  )  const [virtual]

Calculate the number of days for a given year.

Parameters:
date The date for which the number of days per year will be returned.
Returns:
The number of days for a given year.

Implements com::ftlabs::fisa::DayCountBasis.

const std::string& com::ftlabs::fisa::DayCountBasis_Act_365_JP::getName ( void   )  const [virtual]

Returns Act/365_JP for this implementation.

Implements com::ftlabs::fisa::DayCountBasis.


Friends And Related Function Documentation

friend class DayCountBasis [friend]


Member Data Documentation

const std::string com::ftlabs::fisa::DayCountBasis_Act_365_JP::name [static, private]


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