com.ibm.websphere.samples.technologysamples.ejb.stateless.basiccalculatorejb
Interface BasicCalculator

All Superinterfaces:
javax.ejb.EJBObject, java.rmi.Remote

public interface BasicCalculator
extends javax.ejb.EJBObject

Remote interface for the BasicCalculator stateless session bean.


Method Summary
 double makeDifference(double operand1, double operand2)
          Perform the subtraction operation on the operands and return the result
 double makeProduct(double operand1, double operand2)
          Perform the multiplication operation on the operands and return the result
 double makeQuotient(double operand1, double operand2)
          Perform the division operation on the operands and return the result
 double makeSum(double operand1, double operand2)
          Perform the addition operation on the operands and return the result
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

makeSum

double makeSum(double operand1,
               double operand2)
               throws java.rmi.RemoteException
Perform the addition operation on the operands and return the result

Parameters:
operand1 - A number to perform this mathematical operation on
operand2 - Another number to perform this mathematical operation on
Returns:
The result of adding operand1 and operand2
Throws:
java.rmi.RemoteException - If there is a remote communication failure

makeDifference

double makeDifference(double operand1,
                      double operand2)
                      throws java.rmi.RemoteException
Perform the subtraction operation on the operands and return the result

Parameters:
operand1 - A number to perform this mathematical operation on
operand2 - Another number to perform this mathematical operation on
Returns:
The result of subtracting operand1 and operand2
Throws:
java.rmi.RemoteException - If there is a remote communication failure

makeProduct

double makeProduct(double operand1,
                   double operand2)
                   throws java.rmi.RemoteException
Perform the multiplication operation on the operands and return the result

Parameters:
operand1 - A number to perform this mathematical operation on
operand2 - Another number to perform this mathematical operation on
Returns:
The result of multiplying operand1 and operand2
Throws:
java.rmi.RemoteException - If there is a remote communication failure

makeQuotient

double makeQuotient(double operand1,
                    double operand2)
                    throws java.rmi.RemoteException
Perform the division operation on the operands and return the result

Parameters:
operand1 - A number to perform this mathematical operation on
operand2 - Another number to perform this mathematical operation on
Returns:
The result of dividing operand1 and operand2
Throws:
java.rmi.RemoteException - If there is a remote communication failure