cscie160.project.atm
Interface ATM

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
ATMImpl

public interface ATM
extends java.rmi.Remote

By David Cheung

CSCIE160 project

Due: 05-16-2001

ATM Interface

Provides the interface to interact with the ATMImpl class and the client side.

Added transfer function to support transfer.


Method Summary
 void addCallBack(ATMListener aListener)
           
 void deposit(AccountInfo anAccount, float amount)
           
 float getBalance(AccountInfo anAccount)
           
 void transfer(AccountInfo fromAccount, AccountInfo toAccount, float amount)
           
 void withdraw(AccountInfo anAccount, float amount)
           
 

Method Detail

deposit

public void deposit(AccountInfo anAccount,
                    float amount)
             throws java.rmi.RemoteException,
                    UnpermittedTransactionException,
                    SecurityInvalidPinException

withdraw

public void withdraw(AccountInfo anAccount,
                     float amount)
              throws java.rmi.RemoteException,
                     UnpermittedTransactionException,
                     OverdrawnException,
                     SecurityInvalidPinException

getBalance

public float getBalance(AccountInfo anAccount)
                 throws java.rmi.RemoteException,
                        UnpermittedTransactionException,
                        SecurityInvalidPinException

transfer

public void transfer(AccountInfo fromAccount,
                     AccountInfo toAccount,
                     float amount)
              throws java.rmi.RemoteException,
                     UnpermittedTransactionException,
                     OverdrawnException,
                     SecurityInvalidPinException

addCallBack

public void addCallBack(ATMListener aListener)
                 throws java.rmi.RemoteException