How syedalihamadgilani/courier-sorting-and-tracking-logistic-engine works
SwiftEx is a console-based parcel booking and logistics simulation with a separate live admin dashboard. Customers book, track, or cancel parcels; the engine routes and dispatches booked parcels, advances trips, and reports outcomes, while admins monitor activity and can block or clear routes. The README documents routing, load optimization, and the two-process file-based IPC; excerpts show the engine, tracking structures, dashboard reads, and block-file writes. Some detailed wiring is omitted because source excerpts are partial.
Main entry points: source.cpp Logistics engine · admin.cpp Admin dashboard
Components 17
Customer operations
- Customer panel
source.cpp
Simulation engine
- Logistics engine
source.cpp - Parcel booking
source.cpp - Parcel tracking
source.cpp - Booking cancellation
source.cpp - Shortest-path routing
source.cpp - Load dispatch
source.cpp - Trip and parcel updates
source.cpp - City graph
source.cpp
Tracking and IPC
- Parcel hash index
source.cpp - Linked-list storage
source.cpp - IPC state and logs
Admin monitoring
- Admin dashboard
admin.cpp - State and log reader
admin.cpp - Route controls
admin.cpp
Other components
- Customer
- Administrator
Connections 20
- Customer → Customer panel: uses
- Customer panel → Parcel booking: books
- Customer panel → Parcel tracking: tracks
- Customer panel → Booking cancellation: cancels
- Parcel booking → Logistics engine: adds parcel
- Parcel tracking → Parcel hash index: searches ID
- Booking cancellation → Parcel hash index: searches ID
- Logistics engine → Shortest-path routing: routes parcels
- Logistics engine → Load dispatch: dispatches loads
- Logistics engine → Trip and parcel updates: updates trips
- Shortest-path routing → City graph: queries roads
- Logistics engine → Parcel hash index: indexes parcels
- Logistics engine → Linked-list storage: stores records
- Logistics engine → IPC state and logs: writes state and logs
- IPC state and logs → State and log reader: provides files
- Administrator → Admin dashboard: uses
- Admin dashboard → State and log reader: displays monitoring
- Admin dashboard → Route controls: opens controls
- Route controls → IPC state and logs: writes blocks
- Logistics engine → IPC state and logs: reads blocks