How kleitusoleny/bookstore_projectctdl works
Project Type and Purpose
• This is a desktop (Java Swing-based) application for managing a book sales system. It’s a mid-term project for a Data Structures course and is titled “Ứng Dụng Quản Lí Bán Sách.”
• Its purpose is to manage book inventories, customer records, and orders, providing a graphical user interface to perform these operations.
Analyzing the File Structure
• The top-level directories are structured as follows:
• src/data: Contains data files (such as acc.txt and listbook.txt) used for persistent storage.
• src/model: Contains domain models and business logic. Key classes include Book, Customer, Order, and their corresponding manager classes (e.g., BookManager, CustomerManager, OrderManager), as well as an interface (IModel) and central system classes (Model, MainSystem).
• src/util: Provides utility classes for file operations (FileLoader and FileWriter) to read and write external data.
• src/view: Contains GUI components (e.g., panels for book management, customer management, order management, and a MainFrame for launching the application).
• Notice the separation of concerns (data, model/business logic, utilities, and view), which is an important architectural principle.
Elements
• MainFrame (Entry point in src/view)
• BookManagerPanel, CustomerManagerPanel, OrderManagerPanel (GUI Components)
• BookManager, CustomerManager, OrderManager, MainSystem (Business Logic)
• FileLoader, FileWriter (Utility Layer)
• Data Files (acc.txt, listbook.txt in src/data)
• From MainFrame to various panels.
• From panels to their corresponding manager classes.
• From manager classes to utility classes and data files.
• UI elements (rectangles with rounded edges for views),
• Business logic components,
• Utility classes,