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
-
ATM(int, String, Bank, Container)
-
-
acceptEnvelope()
-
-
checkIfCashAvailable(Money)
-
-
dispenseCash(Money)
-
-
ejectCard()
-
-
getAmountEntry()
-
-
getMenuChoice(String, int, String[])
-
-
getPIN()
-
-
issueReceipt(int, int, String, Money, Money, Money)
-
-
number()
-
-
reEnterPIN()
-
-
reportTransactionFailure(String)
-
-
retainCard()
-
-
serviceCustomers(Money)
-
-
startupOperation()
-
ATM
public ATM(int number,
String location,
Bank bank,
Container container)
startupOperation
public synchronized Money startupOperation()
serviceCustomers
public void serviceCustomers(Money initialCash)
getPIN
public int getPIN()
getMenuChoice
public int getMenuChoice(String whatToChoose,
int numItems,
String items[])
getAmountEntry
public Money getAmountEntry()
checkIfCashAvailable
public boolean checkIfCashAvailable(Money amount)
dispenseCash
public void dispenseCash(Money amount)
acceptEnvelope
public boolean acceptEnvelope()
issueReceipt
public void issueReceipt(int cardNumber,
int serialNumber,
String description,
Money amount,
Money balance,
Money availableBalance)
reEnterPIN
public int reEnterPIN()
reportTransactionFailure
public boolean reportTransactionFailure(String explanation)
ejectCard
public void ejectCard()
retainCard
public void retainCard()
number
public int number()
All Packages Class Hierarchy This Package Previous Next Index