private fun runRoutesDistance(runNr: String, sc: Scenario) { val ug: UserGroup = UserGroup.URBAN val lastIteration: Int = sc.getConfig().controler().getLastIteration() val eventsFile: String = sc.getConfig().controler() .getOutputDirectory() + "/ITERS/it." + lastIteration + "/" + lastIteration + ".events.xml.gz" val lmdfed = LegModeRouteDistanceDistributionAnalyzer() lmdfed.init(sc, eventsFile) lmdfed.preProcessData() lmdfed.postProcessData() File(RUN_DIR + "/analysis/legModeDistributions/").mkdirs() lmdfed.writeResults(RUN_DIR + "/analysis/legModeDistributions/" + runNr + "_it." + lastIteration + "_") }
It will write route distance distribution from events and take the beeline distance for teleported modes