-
Notifications
You must be signed in to change notification settings - Fork 456
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
63 additions
and
20 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
...ribs/application/src/main/java/org/matsim/application/analysis/impact/ImpactAnalysis.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.matsim.application.analysis.impact; | ||
|
||
import org.matsim.application.MATSimAppCommand; | ||
|
||
public class ImpactAnalysis implements MATSimAppCommand { | ||
|
||
@Override | ||
public Integer call() throws Exception { | ||
return 0; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...ibs/simwrapper/src/main/java/org/matsim/simwrapper/dashboard/ImpactAnalysisDashboard.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package org.matsim.simwrapper.dashboard; | ||
|
||
import org.matsim.application.analysis.impact.ImpactAnalysis; | ||
import org.matsim.simwrapper.Dashboard; | ||
import org.matsim.simwrapper.Header; | ||
import org.matsim.simwrapper.Layout; | ||
import org.matsim.simwrapper.viz.Table; | ||
|
||
/** | ||
* Dashboard with general overview. | ||
*/ | ||
public class ImpactAnalysisDashboard implements Dashboard { | ||
@Override | ||
public void configure(Header header, Layout layout) { | ||
|
||
header.title = "Impact Analysis"; | ||
header.description = "Impact overview of the MATSim run."; | ||
|
||
layout.row("links") | ||
.el(Table.class, (viz, data) -> { | ||
viz.title = "Kenngrößen"; | ||
viz.dataset = data.compute(ImpactAnalysis.class, "data.csv"); | ||
viz.enableFilter = false; | ||
viz.showAllRows = true; | ||
viz.width = 1d; | ||
|
||
}); | ||
} | ||
|
||
} |