ATM类图
2017-01-07 01:30:34 0 举报
ATM类图是一种用于描述自动取款机(ATM)系统的静态结构的工具。它展示了系统中的各个类、接口以及它们之间的关系。在ATM类图中,我们可以看到以下几个主要的组成部分: ATM类:这是整个系统的核心,负责处理与用户交互的各种操作,如查询余额、存款、取款等。 用户界面类:负责与用户进行交互,接收用户的输入并显示相关信息。 硬件接口类:负责与ATM机上的硬件设备进行通信,如打印机、读卡器等。 账户管理类:负责处理与用户账户相关的操作,如查询余额、转账等。 安全模块类:负责确保系统的安全性,如验证用户身份、加密敏感数据等。
作者其他创作
大纲/内容
ResetTransaction
+ run()
CheckingAccount
YTPE: int = 1balance: double
+ CheckingAccount(double)+ getBalance():return double+ setBalance(double)
AutoRepay
Request(请求的枚举变量)
AddInterest
Response(响应的枚举变量)
SavingAccount
period: Periodbalance: doubletime: long
ServerUI
- frame:JFrame - text:JTextArea
+ ServerUI()+ initialize()+ run()
Database
+ database:Database connection:Connectionstatement:Statementsql:Stringpstmt:PreparedStatementpstmt_account:PreparedStatementrs:ResultSet
+ YTPE: int = 1+ balance: double
+getBalance():return double- setBalance(double)
ATMServer
PORT:int = 18888MAX_THREADS:int = 100current_threads:intserver: ServerSocket
+ ATMServer()+ main(String[])
Thread
ATMServerThread
socket:Socket in:BufferedReader out:PrintWriter
+ ATMServerThread(Socket)+ Login()+ Register()+ Query()+ Deposit()+ Withdrawl()+ ChangePassword()+ Loan()+ UpdateTransaction(int)+ ChangeAccountType()+ Repay()+ run()
Account
User
- id: int- username: String- password: String- lock: int- loan: double- loantime: long- repay: double- require: double- transaction: int+ checkingAccountBalance: double+ HalfYearSavingAccount: ArrayList + OneYearSavingAccount: ArrayList + FiveYearSavingAccount: ArrayList
+getId():return int+ setId(int)+getUsername():return String+ setUsername(String)+getPasssword():return String+ setPassword(String)+getLock():return int+ setLock(int)+getLoan():return double+ setLoan(double)+getLoantime():return long+ setLoantime(long)+getRepay():return double+ setRepay(double)+getRequire():return double+ setRequire(double)+getTransaction():return int+ setTransaction(int)+getCheckingAccountBalance():return double+ setCheckingAccountBalance(double)+ getTotal():return double
AutoChangeAccountType
0 条评论
下一页