first commit

This commit is contained in:
Ali Can Zeybek
2025-01-09 20:02:51 +03:00
commit 72514365eb
55 changed files with 1285 additions and 0 deletions

66
Code/ATM.java Normal file
View File

@@ -0,0 +1,66 @@
import java.sql.Time;
public class ATM {
private int minimumAmount;
private int maximumAmount;
private int limitTimeForOperation;
/**
*
* @param password
*/
public String verify(String password) {
// TODO - implement ATM.verify
throw new UnsupportedOperationException();
}
/**
*
* @param accountNum
*/
public void readAccountNum(int accountNum) {
// TODO - implement ATM.readAccountNum
throw new UnsupportedOperationException();
}
public Message checkAvailabilityOfCashInATM() {
// TODO - implement ATM.checkAvailabilityOfCashInATM
throw new UnsupportedOperationException();
}
public Message verifyInputAmount() {
// TODO - implement ATM.verifyInputAmount
throw new UnsupportedOperationException();
}
public Time checkTime() {
// TODO - implement ATM.checkTime
throw new UnsupportedOperationException();
}
public int getMinimumAmount() {
return minimumAmount;
}
public int getMaximumAmount() {
return maximumAmount;
}
public int getLimitTimeForOperation() {
return limitTimeForOperation;
}
public void setMinimumAmount(int minimumAmount) {
this.minimumAmount = minimumAmount;
}
public void setMaximumAmount(int maximumAmount) {
this.maximumAmount = maximumAmount;
}
public void setLimitTimeForOperation(int limitTimeForOperation) {
this.limitTimeForOperation = limitTimeForOperation;
}
}

32
Code/Account.java Normal file
View File

@@ -0,0 +1,32 @@
public class Account {
private int account_number;
private String password;
private double balance;
private int accountType;
public int getAccount_number() {
return account_number;
}
public String getPassword() {
return password;
}
public double getBalance() {
return balance;
}
public int getAccountType() {
return accountType;
}
public void setAccount_number(int account_number) {
this.account_number = account_number;
}
public void setPassword(String password) {
this.password = password;
}
public void setBalance(double balance) {
this.balance = balance;
}
public void setAccountType(int accountType) {
this.accountType = accountType;
}
}

18
Code/AccountType.java Normal file
View File

@@ -0,0 +1,18 @@
public class AccountType {
private int typeID;
private String typeName;
public void setTypeID(int typeID) {
this.typeID = typeID;
}
public void setTypeName(String typeName) {
this.typeName = typeName;
}
public int getTypeID() {
return typeID;
}
public String getTypeName() {
return typeName;
}
}

View File

@@ -0,0 +1,2 @@
public class AdministrativeStaff extends Employee {
}

1
Code/Balances.java Normal file
View File

@@ -0,0 +1 @@
public class Balances extends Class {}

2
Code/Bank.java Normal file
View File

@@ -0,0 +1,2 @@
public class Bank {
}

2
Code/Branch.java Normal file
View File

@@ -0,0 +1,2 @@
public class Branch {
}

17
Code/Card.java Normal file
View File

@@ -0,0 +1,17 @@
public class Card {
private int number;
/**
*
* @param number
*/
public Card(int number) {
this.number = number;
}
public int getNumber() {
return this.number;
}
}

37
Code/CardReader.java Normal file
View File

@@ -0,0 +1,37 @@
public class CardReader {
private ATM atm;
/**
*
* @param atm
*/
public CardReader(ATM atm) {
this.atm = atm;
throw new UnsupportedOperationException();
}
public Card readCard() {
// TODO - implement CardReader.readCard
throw new UnsupportedOperationException();
}
public void ejectCard() {
// TODO - implement CardReader.ejectCard
throw new UnsupportedOperationException();
}
public void retainCard() {
// TODO - implement CardReader.retainCard
throw new UnsupportedOperationException();
}
public ATM getAtm() {
return atm;
}
public void setAtm(ATM atm) {
this.atm = atm;
}
}

47
Code/CashDispenser.java Normal file
View File

@@ -0,0 +1,47 @@
public class CashDispenser {
private Log log;
private Money cashOnHand;
/**
*
* @param log
*/
public CashDispenser(Log log) {
// TODO - implement CashDispenser.CashDispenser
throw new UnsupportedOperationException();
}
/**
*
* @param initialCash
*/
public void setInitialCash(Money initialCash) {
// TODO - implement CashDispenser.setInitialCash
throw new UnsupportedOperationException();
}
/**
*
* @param amount
*/
public boolean checkCashOnHand(Money amount) {
// TODO - implement CashDispenser.checkCashOnHand
throw new UnsupportedOperationException();
}
/**
*
* @param amount
*/
public void dispenseCash(Money amount) {
// TODO - implement CashDispenser.dispenseCash
throw new UnsupportedOperationException();
}
public void putCash() {
// TODO - implement CashDispenser.putCash
throw new UnsupportedOperationException();
}
}

2
Code/Class.java Normal file
View File

@@ -0,0 +1,2 @@
public class Class {
}

18
Code/Customer.java Normal file
View File

@@ -0,0 +1,18 @@
public class Customer extends Person {
private int ID_Number;
public int getID_Number() {
return ID_Number;
}
public int getAccount_number() {
return account_number;
}
public void setID_Number(int iD_Number) {
ID_Number = iD_Number;
}
public void setAccount_number(int account_number) {
this.account_number = account_number;
}
private int account_number;
}

32
Code/DatabaseProxy.java Normal file
View File

@@ -0,0 +1,32 @@
public class DatabaseProxy {
/**
*
* @param accountNum
*/
public String selectPasswordByAccountNum(int accountNum) {
// TODO - implement DatabaseProxy.selectPasswordByAccountNum
throw new UnsupportedOperationException();
}
public void minusBalance() {
// TODO - implement DatabaseProxy.minusBalance
throw new UnsupportedOperationException();
}
public void plusBalance() {
// TODO - implement DatabaseProxy.plusBalance
throw new UnsupportedOperationException();
}
public int createNewAccount() {
// TODO - implement DatabaseProxy.createNewAccount
throw new UnsupportedOperationException();
}
public void checkTheBalance() {
// TODO - implement DatabaseProxy.checkTheBalance
throw new UnsupportedOperationException();
}
}

28
Code/Deposit.java Normal file
View File

@@ -0,0 +1,28 @@
public class Deposit extends Transaction {
private int to;
private Money amount;
/**
*
* @param atm
* @param session
* @param card
* @param pin
*/
public Deposit(ATM atm, Session session, Card card, int pin) {
// TODO - implement Deposit.Deposit
throw new UnsupportedOperationException();
}
public Message getSpecificsFromCustomer() {
// TODO - implement Deposit.getSpecificsFromCustomer
throw new UnsupportedOperationException();
}
public Receipt completeTransaction() {
// TODO - implement Deposit.completeTransaction
throw new UnsupportedOperationException();
}
}

45
Code/Display.java Normal file
View File

@@ -0,0 +1,45 @@
public class Display {
public Display() {
// TODO - implement Display.Display
throw new UnsupportedOperationException();
}
/**
*
* @param message
*/
public void display(String message) {
// TODO - implement Display.display
throw new UnsupportedOperationException();
}
/**
*
* @param prompt
*/
public int readPIN(String prompt) {
// TODO - implement Display.readPIN
throw new UnsupportedOperationException();
}
/**
*
* @param prompt
* @param menu
*/
public int readMenuChoice(String prompt, String[] menu) {
// TODO - implement Display.readMenuChoice
throw new UnsupportedOperationException();
}
/**
*
* @param prompt
*/
public Money readAmount(String prompt) {
// TODO - implement Display.readAmount
throw new UnsupportedOperationException();
}
}

27
Code/Employee.java Normal file
View File

@@ -0,0 +1,27 @@
import java.util.Date;
public class Employee extends Person {
private int employeeID;
private Date joined;
public int getEmployeeID() {
return employeeID;
}
public void setEmployeeID(int employeeID) {
this.employeeID = employeeID;
}
public Date getJoined() {
return joined;
}
public void setJoined(Date joined) {
this.joined = joined;
}
public int getCategory() {
return Category;
}
public void setCategory(int category) {
Category = category;
}
private int Category;
}

View File

@@ -0,0 +1,18 @@
public class EmployeeCategory {
private int categoryID;
private String categoryName;
public int getCategoryID() {
return categoryID;
}
public void setCategoryID(int categoryID) {
this.categoryID = categoryID;
}
public String getCategoryName() {
return categoryName;
}
public void setCategoryName(String categoryName) {
this.categoryName = categoryName;
}
}

35
Code/Inquiry.java Normal file
View File

@@ -0,0 +1,35 @@
public class Inquiry extends Transaction {
private int from;
public int getFrom() {
return from;
}
public void setFrom(int from) {
this.from = from;
}
/**
*
* @param atm
* @param session
* @param card
* @param pin
*/
public Inquiry(ATM atm, Session session, Card card, int pin) {
// TODO - implement Inquiry.Inquiry
throw new UnsupportedOperationException();
}
public Message getSpecificsFromCustomer() {
// TODO - implement Inquiry.getSpecificsFromCustomer
throw new UnsupportedOperationException();
}
public Receipt completeTransaction() {
// TODO - implement Inquiry.completeTransaction
throw new UnsupportedOperationException();
}
}

40
Code/Log.java Normal file
View File

@@ -0,0 +1,40 @@
public class Log {
public Log() {
// TODO - implement Log.Log
throw new UnsupportedOperationException();
}
/**
*
* @param message
*/
public void logSend(Message message) {
// TODO - implement Log.logSend
throw new UnsupportedOperationException();
}
/**
*
* @param status
*/
public void logResponse(Status status) {
// TODO - implement Log.logResponse
throw new UnsupportedOperationException();
}
/**
*
* @param amount
*/
public void logCashDispensed(Money amount) {
// TODO - implement Log.logCashDispensed
throw new UnsupportedOperationException();
}
public void logEnvelopeAccepted() {
// TODO - implement Log.logEnvelopeAccepted
throw new UnsupportedOperationException();
}
}

2
Code/Message.java Normal file
View File

@@ -0,0 +1,2 @@
public class Message {
}

3
Code/Money.java Normal file
View File

@@ -0,0 +1,3 @@
public class Money extends Class {
}

54
Code/NetworkToBank.java Normal file
View File

@@ -0,0 +1,54 @@
import java.net.InetAddress;
public class NetworkToBank {
private Log log;
private InetAddress bankAddress;
/**
*
* @param log
* @param bankAddress
*/
public NetworkToBank(Log log, InetAddress bankAddress) {
// TODO - implement NetworkToBank.NetworkToBank
throw new UnsupportedOperationException();
}
public void openConnection() {
// TODO - implement NetworkToBank.openConnection
throw new UnsupportedOperationException();
}
public void closeConnection() {
// TODO - implement NetworkToBank.closeConnection
throw new UnsupportedOperationException();
}
/**
*
* @param message
* @param balances
*/
public Status sendMessage(Message message, Balances balances) {
// TODO - implement NetworkToBank.sendMessage
throw new UnsupportedOperationException();
}
public Log getLog() {
return log;
}
public void setLog(Log log) {
this.log = log;
}
public InetAddress getBankAddress() {
return bankAddress;
}
public void setBankAddress(InetAddress bankAddress) {
this.bankAddress = bankAddress;
}
}

2
Code/OperationStaff.java Normal file
View File

@@ -0,0 +1,2 @@
public class OperationStaff extends Employee {
}

19
Code/OperatorPanel.java Normal file
View File

@@ -0,0 +1,19 @@
public class OperatorPanel {
private ATM atm;
/**
*
* @param atm
*/
public OperatorPanel(ATM atm) {
// TODO - implement OperatorPanel.OperatorPanel
throw new UnsupportedOperationException();
}
public Money getInitialCash() {
// TODO - implement OperatorPanel.getInitialCash
throw new UnsupportedOperationException();
}
}

46
Code/Person.java Normal file
View File

@@ -0,0 +1,46 @@
public class Person {
private String givenName;
private String middleName;
private String familyName;
private int gender;
private String homeAddress;
public String getGivenName() {
return givenName;
}
public void setGivenName(String givenName) {
this.givenName = givenName;
}
public String getMiddleName() {
return middleName;
}
public void setMiddleName(String middleName) {
this.middleName = middleName;
}
public String getFamilyName() {
return familyName;
}
public void setFamilyName(String familyName) {
this.familyName = familyName;
}
public int getGender() {
return gender;
}
public void setGender(int gender) {
this.gender = gender;
}
public String getHomeAddress() {
return homeAddress;
}
public void setHomeAddress(String homeAddress) {
this.homeAddress = homeAddress;
}
public int getPhoneNumber() {
return phoneNumber;
}
public void setPhoneNumber(int phoneNumber) {
this.phoneNumber = phoneNumber;
}
private int phoneNumber;
}

2
Code/Receipt.java Normal file
View File

@@ -0,0 +1,2 @@
public class Receipt {
}

17
Code/ReceiptPrinter.java Normal file
View File

@@ -0,0 +1,17 @@
public class ReceiptPrinter {
public ReceiptPrinter() {
// TODO - implement ReceiptPrinter.ReceiptPrinter
throw new UnsupportedOperationException();
}
/**
*
* @param receipt
*/
public void printReceipt(Receipt receipt) {
// TODO - implement ReceiptPrinter.printReceipt
throw new UnsupportedOperationException();
}
}

2
Code/Session.java Normal file
View File

@@ -0,0 +1,2 @@
public class Session extends Class {
}

1
Code/Status.java Normal file
View File

@@ -0,0 +1 @@
public class Status extends Class {}

2
Code/TechnicalStaff.java Normal file
View File

@@ -0,0 +1,2 @@
public class TechnicalStaff extends Employee {
}

8
Code/TicketMachine.java Normal file
View File

@@ -0,0 +1,8 @@
public class TicketMachine {
public int getNumber() {
// TODO - implement TicketMachine.getNumber
throw new UnsupportedOperationException();
}
}

32
Code/Transaction.java Normal file
View File

@@ -0,0 +1,32 @@
public class Transaction {
protected ATM atm;
protected Session session;
protected Card card;
protected int pin;
public ATM getAtm() {
return atm;
}
public void setAtm(ATM atm) {
this.atm = atm;
}
public Session getSession() {
return session;
}
public void setSession(Session session) {
this.session = session;
}
public Card getCard() {
return card;
}
public void setCard(Card card) {
this.card = card;
}
public int getPin() {
return pin;
}
public void setPin(int pin) {
this.pin = pin;
}
}

53
Code/Transfer.java Normal file
View File

@@ -0,0 +1,53 @@
public class Transfer extends Transaction {
private int from;
private int to;
private Money amount;
/**
*
* @param atm
* @param session
* @param card
* @param pin
*/
public Transfer(ATM atm, Session session, Card card, int pin) {
// TODO - implement Transfer.Transfer
throw new UnsupportedOperationException();
}
public Message getSpecificsFromCustomer() {
// TODO - implement Transfer.getSpecificsFromCustomer
throw new UnsupportedOperationException();
}
public Receipt completeTransaction() {
// TODO - implement Transfer.completeTransaction
throw new UnsupportedOperationException();
}
public int getFrom() {
return from;
}
public void setFrom(int from) {
this.from = from;
}
public int getTo() {
return to;
}
public void setTo(int to) {
this.to = to;
}
public Money getAmount() {
return amount;
}
public void setAmount(Money amount) {
this.amount = amount;
}
}

44
Code/Withdrawal.java Normal file
View File

@@ -0,0 +1,44 @@
public class Withdrawal extends Transaction {
private int from;
private Money amount;
/**
*
* @param atm
* @param session
* @param card
* @param pin
*/
public Withdrawal(ATM atm, Session session, Card card, int pin) {
// TODO - implement Withdrawal.Withdrawal
throw new UnsupportedOperationException();
}
public int getFrom() {
return from;
}
public void setFrom(int from) {
this.from = from;
}
public Money getAmount() {
return amount;
}
public void setAmount(Money amount) {
this.amount = amount;
}
public Message getSpecificsFromCustomer() {
// TODO - implement Withdrawal.getSpecificsFromCustomer
throw new UnsupportedOperationException();
}
public Receipt completeTransaction() {
// TODO - implement Withdrawal.completeTransaction
throw new UnsupportedOperationException();
}
}