This project simulates a package delivery service, implementing an efficient routing system for trucks to deliver packages across various locations. It includes features such as package tracking, status updates, and a user interface for querying package statuses.
- Package loading and routing for multiple trucks
- Distance calculation between delivery locations
- Real-time package status tracking
- User interface for checking package statuses
- Time-based status queries
- Total mileage calculation for trucks
main.py
: The main script that initializes and runs the simulationpackage.py
: Defines the Package classtruck.py
: Defines the Truck classuser_interface.py
: Implements the user interface for interacting with the systemdistance_matrix.py
: Contains the distance matrix and functions for distance calculationscleaned_package_file.csv
: CSV file containing package data
- Ensure you have Python 3.x installed on your system.
- Clone this repository to your local machine.
- Navigate to the project directory.
To run the simulation: run "python main.py"
This will start the simulation and load the user interface. From there, you can:
- Check the status of a specific package
- View the status of all packages
- Check the status of all packages at a specific time
- View truck status and total mileage
- HashMap: Used for efficient package lookup
- Lists: Used for storing packages and managing truck loads
- Nearest Neighbor: Used for determining the next package to deliver
- Implement more sophisticated routing algorithms
- Add support for dynamic package additions during runtime
- Enhance the user interface with graphical elements