B C D F G H I M N R S T V W

B

Bank - class Bank.
A Bank object simulates the behavior of a simple bank/ATM.
Bank(String, Terminal) - Constructor for class Bank
Construct a Bank with the given name and Terminal.
BankAccount - class BankAccount.
A BankAccount object has private fields to keep track of its current balance, the number of transactions performed and the Bank in which it is an account, and and public methods to access those fields appropriately.
BankAccount(int, Bank) - Constructor for class BankAccount
Construct a BankAccount with the given initial balance and issuing Bank.

C

CheckingAccount - class CheckingAccount.
A CheckingAccount is a BankAccount with one new feature: the ability to cash a check by calling the honorCheck method.
CheckingAccount(int, Bank) - Constructor for class CheckingAccount
Constructs a CheckingAccount with the given initial balance and issuing Bank.
countTransaction() - Method in class Bank
Increment by one the count of transactions, for this bank.
countTransaction() - Method in class BankAccount
Increment by 1 the count of transactions, for this account and for the issuing Bank.
countTransaction() - Method in class FeeAccount
The way a transaction is counted for a FeeAccount: it levies a transaction fee as well as counting the transaction.
countTransaction() - Method in class SavingsAccount
Increment count of transactions, for this account for this Month and in total and for the issuing Bank, by one.

D

deposit(int) - Method in class BankAccount
Deposit the given amount, increasing this BankAccount's balance and the issuing Bank's balance.

F

FeeAccount - class FeeAccount.
A FeeAccount is a BankAccount with one new feature: the user is charged for each transaction.
FeeAccount(int, Bank) - Constructor for class FeeAccount
Constructor, accepting an initial balance and issuing Bank.

G

getBalance() - Method in class Bank
Get the current bank balance.
getBalance() - Method in class BankAccount
Get the current balance.
getCheckFee() - Method in class Bank
The charge this bank levies for cashing a check.
getInterestRate() - Method in class Bank
The current interest rate on savings.
getIssuingBank() - Method in class BankAccount
The bank that issued this account.
getMaxFreeTransactions() - Method in class Bank
The number of free transactions per month.
getMonthlyCharge() - Method in class Bank
The charge this bank levies each month.
getNumberOfAccounts() - Method in class Bank
Get the current number of open accounts.
getTransactionCount() - Method in class Bank
Get the number of transactions performed by this bank.
getTransactionCount() - Method in class BankAccount
Get the number of transactions performed by this account.
getTransactionFee() - Method in class Bank
The charge this bank levies for a transaction.
getTransactionFee() - Method in class BankAccount
Get transaction fee.
getTransactionFee() - Method in class FeeAccount
The Bank's transaction fee.
getTransactionFee() - Method in class SavingsAccount
Override getTransactionFee() to return a non-zero fee after the appropriate number of free monthly transactions.

H

honorCheck(int) - Method in class CheckingAccount
Honor a check: Charge the account the appropriate fee and withdraw the amount.

I

InsufficientFundsException - exception InsufficientFundsException.
Thrown when there is an attempt to spend money that is not there.
InsufficientFundsException(String) - Constructor for class InsufficientFundsException
Construct an InsufficientFundsException with a String description.
InsufficientFundsException() - Constructor for class InsufficientFundsException
Construct an InsufficientFundsException with no description.
incrementBalance(int) - Method in class Bank
Increment bank balance by given amount.
incrementBalance(int) - Method in class BankAccount
Increment account balance by given amount.

M

Month - class Month.
The Month class implements an object that keeps track of the month of the year.
Month() - Constructor for class Month
Month constructor constructs a Month object initialized to the current month and year.
main(String[]) - Static method in class Bank
Run the simulation by creating and then visiting a new Bank.
main(String[]) - Static method in class Month
For unit testing.

N

NegativeAmountException - exception NegativeAmountException.
Thrown when attempting to work with a negative amount.
NegativeAmountException() - Constructor for class NegativeAmountException
 
newMonth() - Method in class BankAccount
Action to take when a new month starts.
newMonth() - Method in class CheckingAccount
Nothing special happens to a CheckingAccount on the first day of the month.
newMonth() - Method in class FeeAccount
A FeeAccount incurs a monthly charge.
newMonth() - Method in class RegularAccount
Action to take when a new month starts.
newMonth() - Method in class SavingsAccount
A SavingsAccount earns interest each month.
next() - Method in class Month
Advance to next month.

R

RegularAccount - class RegularAccount.
A RegularAccount is a BankAccount that has no special behavior.
RegularAccount(int, Bank) - Constructor for class RegularAccount
Construct a BankAccount with the given initial balance and issuing Bank.
requestBalance() - Method in class BankAccount
Request for balance.

S

SavingsAccount - class SavingsAccount.
A SavingsAccount is a BankAccount that bears interest.
SavingsAccount(int, Bank) - Constructor for class SavingsAccount
Constructor, accepting an initial balance.

T

toString() - Method in class Month
How a Month is displayed as a String - for example, "Jan, 2003".

V

visit() - Method in class Bank
Simulates interaction with a Bank.

W

withdraw(int) - Method in class BankAccount
Withdraw the given amount, decreasing this BankAccount's balance and the issuing Bank's balance.

B C D F G H I M N R S T V W