WebCab Bonds Demo
(J2EE Edition)

com.webcab.ejb.finance.interest
Interface DeveloperLocal

All Superinterfaces:
EJBLocalObject

public interface DeveloperLocal
extends EJBLocalObject

Local interface of Developer. This interface provides the same functionality as the Developer remote interface.

See Also:
Developer

Method Summary
 double sumArithmeticSeries(double firstTerm, double commonDifference, int numberOfTerms)
          Method sumArithmeticSeries(double, double, int) as defined in the Developer remote interface.
 double sumFiniteGeometricSeries(double firstTerm, double commonRatio, int numberOfTerms)
          Method sumFiniteGeometricSeries(double, double, int) as defined in the Developer remote interface.
 double sumInfiniteGeometricSeries(double firstTerm, double commonRatio)
          Method sumInfiniteGeometricSeries(double, double) as defined in the Developer remote interface.
 
Methods inherited from interface javax.ejb.EJBLocalObject
getEJBLocalHome, getPrimaryKey, isIdentical, remove
 

Method Detail

sumArithmeticSeries

public double sumArithmeticSeries(double firstTerm,
                                  double commonDifference,
                                  int numberOfTerms)
                           throws DeveloperDemoException
Method sumArithmeticSeries(double, double, int) as defined in the Developer remote interface.

Description copied from the Developer interface:

Returns the sum of a finite arithmetic series.

Parameters:
firstTerm - the first term of the series
commonDifference - the common difference between the terms of the arithmetic progression
numberOfTerms - the number of terms in the series
DeveloperDemoException
See Also:
Developer.sumArithmeticSeries(double, double, int)

sumFiniteGeometricSeries

public double sumFiniteGeometricSeries(double firstTerm,
                                       double commonRatio,
                                       int numberOfTerms)
                                throws DeveloperDemoException
Method sumFiniteGeometricSeries(double, double, int) as defined in the Developer remote interface.

Description copied from the Developer interface:

Returns the sum of a finite geometric series.

Parameters:
firstTerm - the first term of the geometric series
commonRatio - the common ratio of the terms within the series
numberOfTerms - the number of terms which the series contains
DeveloperDemoException
See Also:
sumInfiniteGeometricSeries(double, double), Developer.sumFiniteGeometricSeries(double, double, int)

sumInfiniteGeometricSeries

public double sumInfiniteGeometricSeries(double firstTerm,
                                         double commonRatio)
                                  throws DeveloperDemoException
Method sumInfiniteGeometricSeries(double, double) as defined in the Developer remote interface.

Description copied from the Developer interface:

Returns the sum of an infinite geometric series.
An infinite geometric series is an indefinite sum of terms and is denoted by:
S=a+aR2+aR3+...
where `...' denotes that the sum extends in a similar fashion indefinitely.

If the modulus (i.e. absolute value) of the common ratio (R above) is greater or equal to one then the series will diverge. The series can diverge in one of two ways:

Parameters:
firstTerm - the first term of the geometric series
commonRatio - the common ratio of the terms within the series
DeveloperDemoException
See Also:
sumFiniteGeometricSeries(double, double, int), Developer.sumInfiniteGeometricSeries(double, double)

WebCab Bonds Demo
(J2EE Edition)