Professional Documents
Culture Documents
- id: int
- name: String
- dob: Day
- gender: String
- phone: String
- address: String
- email: String
+ Person()
+ Person(id: int, name: String, dob: Day, gender: String, phone: String, address: String, email: String)
+ input(): void
+ output(): void
Extends
Extends
Day
Employee Student
- date: int
- roll: String - static school: String - month: int
- startDate: Day - faculty: String - year: int
- salary: double - major: String
- class: String
+ Day()
+ Day(date: int, month: int, year: int)
+ Employee() + Student() + static isLeapYear(year: int): boolean
+ Employee(roll: String, startDate: Day, salary, double) + Student(faculty: String, major: String, class: String) + static numOfDays(month: int, year: int): int
+ input(): void + input(): void + static isValidDay(date: int, month: int, year: int): boolean
+ output(): void + output(): void + static output(): void
Library
- bookMan: BookManagement
- employeeMan: EmployeeManagement
- studentMan: StudentManagement
- borrowAndReturn: BorrowAndReturn EmployeeManagement StudentManagement Bill
- employees: Employee[] - students: Student[] BorrowAndReturn
- book: Book[]
- static bills: Bill[] - student: Student
- employee: Employee
- borrowDay: Day
+ EmployeeManagement() + StudentManagement() - returnDay: Day
+ input(): void + input(): void - price: double
+ BorrowAndReturn() - static final MONEY_PER_DAY: double
+ output(): void + output(): void
+ borrow(category: String): void
+ add(): void + add(): void
+ return(category: String): void
+ edit(): void + edit(): void
+ findBill(studentID: int): Bill + Bill()
+ remove(): void + remove(): void
+ static main(args: String[]): void + findBill(low: Day, high: Day): Bill + Bill(book: Book[], student: Student, employee: Employee, borrowDay: Day, returnDay: Day)
+ findEmployee(id: int): Employee + findStudent(id: int): Student
+ statistic(): void + calculatePrice(): void
+ findEmployee(name: String): Employee + findStudent(name: String): Student
+ statistic(): void + statistic(): void + output(): void
Methods
+ BookManagement()
+ input(): void
+ ouput(): void
+ add(): void
+ edit(): void
+ remove(): void
+ findEducationBook(id: int): EducationBook
+ findEducationBook(name: String): EducationBook
+ findEducationBook(low: double, high: double): EducationBook[]
+ findReferenceBook(id: int): ReferenceBook
+ findReferenceBook(name: String): ReferenceBook
+ findReferenceBook(low: double, high: double): ReferenceBook[]
+ findDictionary(id: int): Dictionary
+ findDictionary(name: String): Dictionary
+ findDictionary(low: double, high: double): Dictionary[]
+ statistic(): void
Book
- id: int
- name: String
- remain: int
- price: double
- publishDay: Day
+ Book()
+ Book(id: int, name: String, remain: int, price: double, publishDay: Day)
+ input(): void
+ output(): void