com.ftlabs.fisa.calc
Class RYMMYFixedInterestRateCalculatorFactory

java.lang.Object
  extended by com.ftlabs.fisa.calc.RYMMYFixedInterestRateCalculatorFactory
All Implemented Interfaces:
FixedInterestRateCalculatorFactory

public class RYMMYFixedInterestRateCalculatorFactory
extends java.lang.Object
implements FixedInterestRateCalculatorFactory

A FixedInterestRateCalculatorFactory implementation that uses a compounding interest calculator if there are multiple periods remaining, and a simple interest calculater if there is a single period remaining.


Method Summary
 Calculator createCalculator(FISADate settlementDate, Redemption redemption, double parValue, double interestRate, DayCountBasis dayCountBasis, int interestFrequency, boolean eomAdjust, FISADate datedDate, FISADate firstInterestDate)
           
 Calculator createCalculator(FixedInterestRateSecurity security, FISADate settlementDate, Redemption redemption)
           
static RYMMYFixedInterestRateCalculatorFactory getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static RYMMYFixedInterestRateCalculatorFactory getInstance()

createCalculator

public Calculator createCalculator(FixedInterestRateSecurity security,
                                   FISADate settlementDate,
                                   Redemption redemption)
                            throws CalculationException
Specified by:
createCalculator in interface FixedInterestRateCalculatorFactory
Throws:
CalculationException

createCalculator

public Calculator createCalculator(FISADate settlementDate,
                                   Redemption redemption,
                                   double parValue,
                                   double interestRate,
                                   DayCountBasis dayCountBasis,
                                   int interestFrequency,
                                   boolean eomAdjust,
                                   FISADate datedDate,
                                   FISADate firstInterestDate)
                            throws CalculationException
Throws:
CalculationException