private void run() { FileSystem.setAssnId(MAIN_ASSN_ID); // load the necessary graphs loadGraphs(); statMax = new TreeMap<String, Pair<String, Double>>(); // test the policy graph against the ground truth File policyDir = new File(FileSystem.getAssnDir(), "policies"); for (File policyFile : FileSystem.listFiles(policyDir)) { String ext = FileSystem.getExtension(policyFile.getName()); if (!ext.equals("txt")) continue; String name = policyFile.getName(); Map<String, String> policy = FileSystem.getFileMapString(policyFile); generateStats(name, policy); } System.out.println(""); System.out.println("Best:"); for (String test : statMax.keySet()) { System.out.println(test + ": " + statMax.get(test).getFirst()); } }