cscie160.project
Class Client

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--cscie160.project.Client
All Implemented Interfaces:
ATMListener, java.rmi.Remote, java.io.Serializable

public class Client
extends java.rmi.server.UnicastRemoteObject
implements ATMListener

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
Client()
           
 
Method Summary
static cscie160.project.AccountInfo getAccountInfo(int mAccountNum, int mAccountPin)
          | as suggested, helper method getAccountInfo that creates an AccountInfo object given the appropriate account information.
 void handleEvent(java.util.EventObject mTransaction)
          | as suggested, notification handler method of ATMListener prints out any TransactionNotifications it receives.
static void main(java.lang.String[] args)
          | main()
static void performTestEight(cscie160.project.ATM atm)
           
static void performTestFive(cscie160.project.ATM atm)
           
static void performTestFour(cscie160.project.ATM atm)
           
static void performTestNine(cscie160.project.ATM atm)
           
static void performTestOne(cscie160.project.ATM atm)
           
static void performTestSeven(cscie160.project.ATM atm)
           
static void performTestSix(cscie160.project.ATM atm)
           
static void performTestThree(cscie160.project.ATM atm)
           
static void performTestTwo(cscie160.project.ATM atm)
           
static void printBalances(cscie160.project.ATM atm)
           
static void testATM(cscie160.project.ATM atm)
           
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Client

public Client()
       throws java.rmi.RemoteException
Method Detail

testATM

public static void testATM(cscie160.project.ATM atm)

printBalances

public static void printBalances(cscie160.project.ATM atm)

performTestOne

public static void performTestOne(cscie160.project.ATM atm)

performTestTwo

public static void performTestTwo(cscie160.project.ATM atm)

performTestThree

public static void performTestThree(cscie160.project.ATM atm)

performTestFour

public static void performTestFour(cscie160.project.ATM atm)

performTestFive

public static void performTestFive(cscie160.project.ATM atm)

performTestSix

public static void performTestSix(cscie160.project.ATM atm)

performTestSeven

public static void performTestSeven(cscie160.project.ATM atm)

performTestEight

public static void performTestEight(cscie160.project.ATM atm)

performTestNine

public static void performTestNine(cscie160.project.ATM atm)

getAccountInfo

public static cscie160.project.AccountInfo getAccountInfo(int mAccountNum,
                                                          int mAccountPin)
| as suggested, helper method getAccountInfo that creates an AccountInfo object given the appropriate account information.

Returns:
AccountInfo wrapper object returned

handleEvent

public void handleEvent(java.util.EventObject mTransaction)
                 throws java.rmi.RemoteException
| as suggested, notification handler method of ATMListener prints out any TransactionNotifications it receives.

Specified by:
handleEvent in interface ATMListener
java.rmi.RemoteException

main

public static void main(java.lang.String[] args)
| main()