org.cocome.tradingsystem.external.impl
Class BankImpl
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.cocome.tradingsystem.external.impl.BankImpl
- All Implemented Interfaces:
- java.io.Serializable, java.rmi.Remote, Bank
public class BankImpl
- extends java.rmi.server.UnicastRemoteObject
- implements Bank
Very basic implementation of the bank
- Author:
- Yannick Welsch
- See Also:
- Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
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 |
BankImpl
public BankImpl()
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
debitCard
public Debit debitCard(TransactionID id)
- Description copied from interface:
Bank
- Used to debit an bank account
- Specified by:
debitCard
in interface Bank
- Parameters:
id
- The corresponding TransactionID
- Returns:
validateCard
public TransactionID validateCard(java.lang.String cardInformation,
int cardnumber)
- Description copied from interface:
Bank
- Used to validate a credit card
- Specified by:
validateCard
in interface Bank
- Returns:
main
public static void main(java.lang.String[] args)
throws java.rmi.RemoteException,
java.lang.InterruptedException
- Throws:
java.rmi.RemoteException
java.lang.InterruptedException