This is a Java console program that simulates request handling at a Ghana service centre. It uses a normal circular queue, a correction deque, an urgent priority queue, and an action stack.
- Java JDK installed
javacandjavaavailable in your terminal
Check your Java installation:
javac -version
java -versionFrom the project root directory, compile all Java files:
javac src/*.javaOn Windows PowerShell, this also works:
javac src\*.javaRun the simulator with the sample CSV file:
java -cp src GhanaServiceSimulator data/requests_sample.csvOn Windows PowerShell:
java -cp src GhanaServiceSimulator data\requests.csvYou can also run it from inside the src folder:
cd src
javac *.java
java GhanaServiceSimulator ../data/requests_sample.csvThe simulator expects a CSV file with this header:
requestId,arrivalOrder,location,serviceType,urgencyLevel,estimatedMinutes,needsCorrection,notesAvailable example files are in the data folder:
data/requests_sample.csvdata/requests_template.csvdata/requests.csv
To use your own dataset, replace the path in the run command:
java -cp src GhanaServiceSimulator data.csvThe program prints each served request, then a final report showing total served requests, urgent/correction/normal counts, overflow count, remaining queue sizes, and average estimated minutes served.