Skip to content

Commit

Permalink
add gartenfeld specific dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
rakow committed Aug 14, 2024
1 parent 70c8076 commit 8c18280
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
28 changes: 28 additions & 0 deletions input/gartenfeld/gartenfeld.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE config SYSTEM "http://www.matsim.org/files/dtd/config_v2.dtd">
<config>

<!-- TODO: these config modules must be replaced in the run config -->
<!-- There is currently no run script that can use this partial config -->

<module name="simwrapper" >
<parameterset type="params" >
<param name="context" value="" />
<param name="mapCenter" value="13.39,52.51" />
<param name="mapZoomLevel" value="9.1" />
<param name="sampleSize" value="0.1" />
<param name="shp" value="./area/area.shp" />
</parameterset>
<parameterset type="params" >
<param name="context" value="" />
<param name="mapCenter" value="13.24,52.55" />
<param name="mapZoomLevel" value="14.2" />
<param name="sampleSize" value="0.1" />
<!-- TODO make sure this shp file is present relative to the config path -->
<param name="shp" value="./area/gartenfeld.gpkg" />
</parameterset>
</module>



</config>
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,17 @@ public List<Dashboard> getDashboards(Config config, SimWrapper simWrapper) {
.withChoiceEvaluation(true)
.withGroupedRefData("mode_share_per_group_dist_ref.csv", "age", "income", "employment", "economic_status");

// TODO: The definition of this dashboard should probably be in a separate run class, but for now it is more convenient here

// Gartenfeld has a separate dashboard, without reference data
// This automatically filters by home location and configured shape file
TripDashboard gartenfeld = new TripDashboard();

return List.of(
trips,
Dashboard.customize(gartenfeld)
.context("gartenfeld")
.title("Gartenfeld"),
new TravelTimeComparisonDashboard(ApplicationUtils.resolve(config.getContext(), "berlin-v" + OpenBerlinScenario.VERSION + "-routes-ref.csv.gz")),
new TrafficCountsDashboard()
.withModes(TransportMode.car, Set.of(TransportMode.car))
Expand Down

0 comments on commit 8c18280

Please sign in to comment.