B C D F G H I M N R 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.

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.
getIssuingBank() - Method in class BankAccount
Get the bank that issued this account.
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.

H

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

I

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

newMonth() - Method in class BankAccount
Action to take when a new month starts.
newMonth() - Method in class CheckingAccount
Action to take when a new month starts.
newMonth() - Method in class FeeAccount
Action to take when a new month starts.
newMonth() - Method in class RegularAccount
Action to take when a new month starts.
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.

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 V W