This is a project from the class Data Structures and Algorithms (CIIC4020) that is about arresting criminal organizations and deciphering their messages to find the leader.
To run the project, simply go to the ArrestOperation
Java file and run the "main" method. If you want to use another case folder, simply change the casePath
variable to the case folder you want, or have added.
Below is the main method:
/**
* Class whose main method will follow the steps needed for arresting
* members of criminal organizations. The step should be followed as established
* in the project's document.
*/
public class ArrestOperation {
public static void main(String[] args) throws IOException {
String casePath = "case1";
PoliceDepartment PD = new PoliceDepartment("Captain Morgan");
String caseFolder = "inputFiles/" + casePath;
File flyersFile = new File(caseFolder + "/Flyers");
PD.setUpOrganizations(caseFolder);
for (File f : flyersFile.listFiles()) {
String leader = PD.decipherMessage(f.getAbsolutePath());
PD.arrest(leader);
}
PD.policeReport("results/" + casePath + "Report");
}
}