Index

A B C D E F G I L M N P R S T U W 
All Classes and Interfaces|All Packages|Serialized Form

A

Account - Class in src
Account class used to be a base for the three account sub categories saving, checking, and credit, used to reduce redudancy through inheritance and polymorphosm
Account() - Constructor for class src.Account
 
Account(int, double, Customer) - Constructor for class src.Account
 
accountHolder - Variable in class src.Account
 
accountHolder - Variable in class src.Transaction
 
accountList - Static variable in class src.RunBank
A dictionary that maps IDs to Customer objects.
accountNumber - Variable in class src.Account
account_number, balance and account_holder are all base information needed to have an account not including account specific requirements
AccountTest - Class in tst
This class is to test if the methods in Account work properly The methods with returns in Accounts are canDeposit, CanWithdraw, changeBalance and toString, .
AccountTest() - Constructor for class tst.AccountTest
 
addTransactionEntry(String) - Method in class src.Customer
 
addTransactionEntry(String) - Method in class src.Transaction
add an entry to the transaction log

B

balance - Variable in class src.Account
 

C

canDeposit(double) - Method in class src.Account
The Deposit should always be true for this method since you dont have a max amount of money you can have
canDeposit(double) - Method in class src.Credit
check if the deposit amount is more than what is being owed
canWithdraw(double) - Method in class src.Account
Checks if the withdrawl should be approved based on the uses balance
canWithdraw(double) - Method in class src.Credit
checks if you the amount will put the users credit total charge past the max amount
changeBalance(double) - Method in class src.Account
Changes the balance based on the amount given
changeBalance(double, Logger) - Method in class src.Credit
changes the balance based on the amount given
Checking - Class in src
Checking class extended from Account class to represent Checking Accounts
Checking() - Constructor for class src.Checking
 
Checking(int, double, Customer) - Constructor for class src.Checking
 
Credit - Class in src
Credit class that is extended off Account class to represent Credit Accounts
Credit() - Constructor for class src.Credit
 
Credit(int, double, Customer, double) - Constructor for class src.Credit
 
CreditTest - Class in tst
This class is to test if the methods in credit work properly.
CreditTest() - Constructor for class tst.CreditTest
 
CSVException - Exception Class in src
The Custom Exception class to be used in the Read and Update CSV Files
CSVException(String, Throwable) - Constructor for exception class src.CSVException
constructor used to when catching errors
Customer - Class in src
The Customer class represents a customer with multiple accounts.
Customer() - Constructor for class src.Customer
Default constructor for the Customer class.
Customer(Dictionary<String, Account>, int, String, String, String, String, String, int, int) - Constructor for class src.Customer
Constructs a Customer with specified account information and personal details.
customerList - Static variable in class src.RunBank
A dictionary that maps a combined key of first name and last name to a Customer object.

D

deposit(int, double) - Method in class src.Customer
Deposits or withdraws money into/from the specified account based on the account number.
deposit(String, double) - Method in class src.Customer
Deposits or withdraws money into/from the specified account.
displayAccount() - Method in class src.Account
displays account holder first and last name, account number, and balance
displayAccount() - Method in class src.Credit
prints the account holder first name, last name, account number, max, and balance
displayBalance() - Method in class src.Account
displays balance for the account with the account number ...

E

exit - Static variable in class src.RunBank
A flag indicating whether the customer wants to exit the application.

F

fileName - Variable in class src.Logger
The name of the file (without extension).
FileUsage - Interface in src
interface to be used by all classes that interact with Files
findAccountType(int) - Method in class src.Customer
Finds the type of account based on the account number.

G

getAccountHolder() - Method in class src.Account
 
getAccountNumber() - Method in class src.Account
 
getAccounts() - Method in class src.Customer
Returns the customer's accounts.
getAddress() - Method in class src.Person
Gets the address of the person.
getBalance() - Method in class src.Account
 
getBalance() - Method in class src.Customer
Returns the balance of the desired account.
getBalance(String) - Method in class src.Customer
Returns the balance of the account of the specified type.
getCreditScore() - Method in class src.Customer
Returns the customer's credit score.
getDOB() - Method in class src.Person
Gets the date of birth of the person.
getFirstName() - Method in class src.Person
Gets the first name of the person.
getId() - Method in class src.Customer
Returns the customer's unique ID.
getInstance() - Static method in class src.Logger
Allow other classes to access the static object
getLastName() - Method in class src.Person
Gets the last name of the person.
getMax() - Method in class src.Credit
 
getName() - Method in class src.Person
Gets the full name of the person by combining the first and last names.
getPassword() - Method in class src.Customer
Returns the customer's password.
getPhoneNumber() - Method in class src.Person
Gets the phone number of the person.
getStartingBalance() - Method in class src.Account
 
getTransactions() - Method in class src.Customer
Returns the customer's transaction logs.

I

IDList - Static variable in class src.RunBank
 

L

lock - Variable in class src.Account
lock is a new feature to lock your account
lockAccount() - Method in class src.Account
method to immplement the functionality to lock your account.
log - Static variable in class src.RunBank
Logger instance for logging events within the class.
Logger - Class in src
The Files class provides methods to create a text file and write content to it.

M

main(String[]) - Static method in class src.RunBank
The entry point of the application.
mainMenu - Static variable in class src.RunBank
A flag indicating whether the customer wants to return to the main menu.

N

names - Static variable in class src.RunBank
List of names to maintain the order of the users, so that when the updatingCSVFile method is invoked, it can update the CSV file based on the order they were read

P

pay(Customer, int, int, double) - Method in class src.Customer
Transfers a payment from one account of the current customer to another account of a different customer.
pay(Customer, String, String, double) - Method in class src.Customer
Transfers a payment from the current customer's account to another account belonging to a different customer.
performConfidentialTransactions() - Method in interface src.TransactionsAccess
Performs a confidential transaction.
Person - Class in src
Represents a person with personal details such as name, date of birth, address, and phone number.
Person() - Constructor for class src.Person
Constructs a Person object with default values.
Person(String, String, String, String, String) - Constructor for class src.Person
Constructs a Person object with specified values for each attribute.

R

ReadCustomersFromCSVFile - Class in src
This class implements the FileUsage interface The class takes an input filePath and reads the CSV file given.
ReadCustomersFromCSVFile() - Constructor for class src.ReadCustomersFromCSVFile
 
RunBank - Class in src
Driver class containg User Interface and CSV conversion to create the bank system.
RunBank() - Constructor for class src.RunBank
 

S

Saving - Class in src
Saving class exteneded off Account class to represent Saving Account
Saving() - Constructor for class src.Saving
 
Saving(int, double, Customer) - Constructor for class src.Saving
 
setAccountHolder(Customer) - Method in class src.Account
 
setAccountNumber(int) - Method in class src.Account
 
setAccounts(Dictionary<String, Account>) - Method in class src.Customer
Sets the customer's accounts.
setAddress(String) - Method in class src.Person
Sets the address of the person.
setBalance(double) - Method in class src.Account
 
setCreditScore(int) - Method in class src.Customer
Sets the customer's credit score.
setCurrentBalance(Customer) - Method in class src.Transaction
sets the current balance is going to be used when settint the current balance dictionary.
setDOB(String) - Method in class src.Person
Sets the date of birth of the person.
setFirstName(String) - Method in class src.Person
Sets the first name of the person.
setId(int) - Method in class src.Customer
Sets the customer's unique ID.
setInformation(Customer) - Method in class src.Transaction
A setter to set all the information for the transaction.
setLastName(String) - Method in class src.Person
Sets the last name of the person.
setMax(double) - Method in class src.Credit
 
setPassword(int) - Method in class src.Customer
Sets the customer's password.
setPhoneNumber(String) - Method in class src.Person
Sets the phone number of the person.
setTransactions(Transaction) - Method in class src.Customer
Sets the customer's transactions log so that entries can be added.
setup() - Method in class tst.CreditTest
 
setUp() - Method in class tst.AccountTest
 
setUp(String) - Method in class src.Logger
Creates a new text file with the specified name.
src - package src
 
startingBalance - Variable in class src.Account
 

T

tearDown() - Method in class tst.AccountTest
 
tearDown() - Method in class tst.CreditTest
 
testChangeBalanceDecimalValuePayOffCreditDebtFail() - Method in class tst.CreditTest
test the changeBalance function in Credit to see if paying off debt for a decimal valued amount that is greater than balance, will fail
testChangeBalanceDecimalValuePayOffCreditDebtPass() - Method in class tst.CreditTest
test the changeBalance function in Credit to see if paying off debt for a decimal valued amount that is less than or equal to balance, will pass
testChangeBalanceDecimalValuesFail() - Method in class tst.AccountTest
test the changeBalance function in Account to see if withdraw of a decimal valued number without sufficient funds, will fail
testChangeBalanceDecimalValuesFail() - Method in class tst.CreditTest
test the changeBalance function in Credit to see if withdraw of a decimal valued number with a diffrence of balance and amount is greater than max, will fail
testChangeBalanceDecimalValuesPass() - Method in class tst.AccountTest
test the changeBalance function in Account to see if withdraw of a decimal valued number with sufficient funds, will pass
testChangeBalanceDecimalValuesPass() - Method in class tst.CreditTest
test the changeBalance function in Credit to see if withdraw of a decimal valued number with a diffrence of balance and amount is less than or equal to max, will pass
testChangeBalanceDeposit() - Method in class tst.AccountTest
test the changeBalance function in Account to see if deposits will pass
testChangeBalanceNegativeInfinity() - Method in class tst.AccountTest
test the changeBalance function in Account to see if withdraw is to large, will it fail
testChangeBalanceNegativeInfinity() - Method in class tst.CreditTest
test the changeBalance function in Credit to see if withdraw is to large, will it fail
testChangeBalanceWholeValueFail() - Method in class tst.AccountTest
test the changeBalance function in Account to see if withdraw of a whole number without sufficient funds, will fail
testChangeBalanceWholeValuePass() - Method in class tst.AccountTest
test the changeBalance function in Account to see if withdraw of a whole number with sufficient funds, will pass
testChangeBalanceWholeValuePayOffCreditDebtFail() - Method in class tst.CreditTest
test the changeBalance function in Credit to see if paying off debt with a whole valued amount that is greater than balance, will fail
testChangeBalanceWholeValuePayOffCreditDebtPass() - Method in class tst.CreditTest
test the changeBalance function in Credit to see if paying off debt for a whole valued amount that is less than or equal to balance, will pass
testChangeBalanceWholeValuesFail() - Method in class tst.CreditTest
test the changeBalance function in Credit to see if withdraw of a whole valued number with a diffrence of balance and amount is greater than max, will fail
testChangeBalanceWholeValuesPass() - Method in class tst.CreditTest
test the changeBalance function in Credit to see if withdraw of a whole valued number with a diffrence of balance and amount is less than or equal to max, will pass
testChangeBalanceZero() - Method in class tst.AccountTest
test the changeBalance function in Account to see if withdraw is nothing, will it pass
testChangeBalanceZero() - Method in class tst.CreditTest
test the changeBalance function in Credit to see if withdraw is nothing, will it pass
TestSuite - Class in tst
test suite that acts as the center hub to run the test classes AccountTest class and CreditTest class.
TestSuite() - Constructor for class tst.TestSuite
 
testToString() - Method in class tst.AccountTest
test the toString function in Account to see if the String it returns is correct
testWithdrawFalse() - Method in class tst.CreditTest
 
testWithdrawTrue() - Method in class tst.CreditTest
 
titles - Static variable in class src.RunBank
titles for the updated CSV file(first line)
toString() - Method in class src.Account
 
toString() - Method in class src.Person
 
Transaction - Class in src
this class holds the transaction log of all the users and also customer data needed for generating a bank statment for a user
Transaction() - Constructor for class src.Transaction
 
TransactionsAccess - Interface in src
Represents an interface for accessing and performing confidential transactions.
transfer(int, int, double) - Method in class src.Customer
Transfers money from one account to another within the same customer.
transfer(String, String, double) - Method in class src.Customer
Transfers money from one account to another within the same customer.
transferHelper(String, String, int, int, double) - Static method in class src.RunBank
Facilitates a transfer or payment transaction between accounts by customer names and account numbers.
transferHelper(String, String, String, String, double) - Static method in class src.RunBank
Facilitates a transfer or payment transaction between accounts by customer names and account types.
tst - package tst
 

U

unlockAccount() - Method in class src.Account
method to immplement the functionality to unlock your account.
UpdateCSVFile - Class in src
this file implements the FileUsage interface this fille takes an filePath as input and writes down/ updates the file with the updated current information of each customer the format is dependent on the format of the input CSV file
UpdateCSVFile() - Constructor for class src.UpdateCSVFile
 
Use(String) - Method in interface src.FileUsage
abstract class to be used by classes that implement this inteface the input is a string that specifies the file path that is going to be "Used".
Use(String) - Method in class src.Logger
Writes the provided input to the file.
Use(String) - Method in class src.ReadCustomersFromCSVFile
In this method every input line read is converted into Customer with fully set attributes and Account attributes.
Use(String) - Method in class src.UpdateCSVFile
Update the CSV File with the new entries and any altered entry that happened throughout the life cycle of the program.

W

withdraw(int, double) - Method in class src.Customer
Withdraws money from the specified account based on the account number.
withdraw(String, double) - Method in class src.Customer
Withdraws money from the specified account.
A B C D E F G I L M N P R S T U W 
All Classes and Interfaces|All Packages|Serialized Form