From 8c18280e152d88f6af7c9e79c6df44af35ee3390 Mon Sep 17 00:00:00 2001 From: rakow Date: Wed, 14 Aug 2024 11:22:28 +0200 Subject: [PATCH] add gartenfeld specific dashboard --- input/gartenfeld/gartenfeld.xml | 28 +++++++++++++++++++ .../dashboard/BerlinDashboardProvider.java | 9 ++++++ 2 files changed, 37 insertions(+) create mode 100644 input/gartenfeld/gartenfeld.xml diff --git a/input/gartenfeld/gartenfeld.xml b/input/gartenfeld/gartenfeld.xml new file mode 100644 index 00000000..e8ebf986 --- /dev/null +++ b/input/gartenfeld/gartenfeld.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/java/org/matsim/dashboard/BerlinDashboardProvider.java b/src/main/java/org/matsim/dashboard/BerlinDashboardProvider.java index 3567536e..1ff1ea72 100644 --- a/src/main/java/org/matsim/dashboard/BerlinDashboardProvider.java +++ b/src/main/java/org/matsim/dashboard/BerlinDashboardProvider.java @@ -26,8 +26,17 @@ public List 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))