Table Of Contents
Table Of Contents 1
DESIGN 1
Summary 1
UML Diagram: 1
Application Setup 2
Test Cases 2
DESIGN
Summary
Project Structure:
Library (package):
Library: Class to represent a library.
Book: Class to represent a book.
Author: Class to represent an author.
Address: Class to represent an address.
Utils(Package):
File:Class used to read text database and add details to an ArrayList.
Main: Main class to display the search window.
Gui(Package):
Search:Gui for Search options
Display:Gui for display the details of a single book.
DisplayAll:Gui for displaying the details of multiple books.
U
Book
Author
int index
String name
String address
Author(string,sring,Address)
String toString()
int getIndex()
String getName()
ML Diagram: Contains
Library
Books:ArrayList
Authors:ArrayList
Library()
String toString()
ArrayList getAuthors()
ArrayList getBooks()
int index
String title
String genre
double price
int author
Book(string,string,string,string,string)
String toString()
int getAuthor()
String getGenre()
int getIndex()
double getPrice()
String getTitle()
Con
tains
contains
Address
String streetAddress;
String city;
String state;
String zip;
String phone;
Address(string,string,string,string,string)
String toString()
Application Setup
1:File library.txt need to be kept at C:/
Test Cases
1.Run the application
2.Try changing different options for searching and check if the other combo box values are changing. Make sure that the values in combo box are not repeating ie multiple books can have same genre but in combobox it should be populated only once.
3. Select the options to search and click search in all the cases.
The post Class to represent a library appeared first on My Assignment Online.