Class atm.ATM
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class atm.ATM

java.lang.Object
   |
   +----atm.ATM

public class ATM
extends Object

Constructor Index

 o ATM(int, String, Bank, Container)

Method Index

 o acceptEnvelope()
 o checkIfCashAvailable(Money)
 o dispenseCash(Money)
 o ejectCard()
 o getAmountEntry()
 o getMenuChoice(String, int, String[])
 o getPIN()
 o issueReceipt(int, int, String, Money, Money, Money)
 o number()
 o reEnterPIN()
 o reportTransactionFailure(String)
 o retainCard()
 o serviceCustomers(Money)
 o startupOperation()

Constructors

 o ATM
  public ATM(int number,
             String location,
             Bank bank,
             Container container)

Methods

 o startupOperation
  public synchronized Money startupOperation()
 o serviceCustomers
  public void serviceCustomers(Money initialCash)
 o getPIN
  public int getPIN()
 o getMenuChoice
  public int getMenuChoice(String whatToChoose,
                           int numItems,
                           String items[])
 o getAmountEntry
  public Money getAmountEntry()
 o checkIfCashAvailable
  public boolean checkIfCashAvailable(Money amount)
 o dispenseCash
  public void dispenseCash(Money amount)
 o acceptEnvelope
  public boolean acceptEnvelope()
 o issueReceipt
  public void issueReceipt(int cardNumber,
                           int serialNumber,
                           String description,
                           Money amount,
                           Money balance,
                           Money availableBalance)
 o reEnterPIN
  public int reEnterPIN()
 o reportTransactionFailure
  public boolean reportTransactionFailure(String explanation)
 o ejectCard
  public void ejectCard()
 o retainCard
  public void retainCard()
 o number
  public int number()

All Packages  Class Hierarchy  This Package  Previous  Next  Index