B C D G I M 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

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.

D

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

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.

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

main(String[]) - Static method in class Bank
Run the simulation by creating and then visiting a new Bank.

R

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 G I M R V W