cscie160.hw5
Class ATMFactoryImpl
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--cscie160.hw5.ATMFactoryImpl
- All Implemented Interfaces:
- ATMFactory, java.rmi.Remote, java.io.Serializable
- public class ATMFactoryImpl
- extends java.rmi.server.UnicastRemoteObject
- implements ATMFactory
- See Also:
- Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Method Summary |
void |
deposit(int mAccountNum,
float mAmount)
|
Methods for transferring Client ATM requests to the ATM |
cscie160.hw5.ATM |
getATM()
|
Passes to the client a reference to the ATM |
float |
getBalance(int mAccountNum)
|
void |
withdraw(int mAccountNum,
float mAmount)
|
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 |
ATMFactoryImpl
public ATMFactoryImpl()
throws java.rmi.RemoteException
- |
Constructor.
getATM
public cscie160.hw5.ATM getATM()
throws java.rmi.RemoteException
- |
Passes to the client a reference to the ATM
- Specified by:
getATM
in interface ATMFactory
java.rmi.RemoteException
deposit
public void deposit(int mAccountNum,
float mAmount)
throws java.rmi.RemoteException,
ATMException
- |
Methods for transferring Client ATM requests to the ATM
java.rmi.RemoteException
ATMException
withdraw
public void withdraw(int mAccountNum,
float mAmount)
throws java.rmi.RemoteException,
ATMException
java.rmi.RemoteException
ATMException
getBalance
public float getBalance(int mAccountNum)
throws java.rmi.RemoteException,
ATMException
java.rmi.RemoteException
ATMException