Commit f9dbe74e authored by Jose Ignacio Monreal Bailey's avatar Jose Ignacio Monreal Bailey
Browse files

Adding summary

parent 6b5da450
......@@ -117,7 +117,10 @@ public class TraciSimulationController implements VehicleController, SimulationS
_connection.addOption("time-to-teleport", Integer.toString(-1));
_connection.addOption("tripinfo-output.write-unfinished", "t");
String outputTripFileName = getTripOutputFilename(_tripOutputFile);
String summaryFile = getSummaryFilename(_tripOutputFile);
_connection.addOption("tripinfo-output", outputTripFileName);
_connection.addOption("duration-log.statistics", "t");
_connection.addOption("summary", summaryFile);
_connection.printSumoError(true);
try {
......@@ -134,6 +137,11 @@ public class TraciSimulationController implements VehicleController, SimulationS
}
}
private String getSummaryFilename(String tripOutputFile) {
Path path = Paths.get(_configFile);
return path.getParent().toString() + "/summary/" + tripOutputFile;
}
private String getTripOutputFilename(String filename) {
Path path = Paths.get(_configFile);
return path.getParent().toString() + "/results/" + filename;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment