Commit b8f80c58 authored by Stefan Schuhbaeck's avatar Stefan Schuhbaeck
Browse files

add maxOverlap to SimResult dialog

parent 9b0377c2
Pipeline #68012 passed with stages
in 58 minutes and 52 seconds
......@@ -64,6 +64,7 @@ public class ProjectRunResultDialog implements ProjectFinishedListener {
private final String[] columnNames = {"Scenario_Name",
"Runtime",
"Overlaps",
"MaxOverlap",
"State"};
Button btnOk, btnCsv;
private JTable table;
......@@ -108,7 +109,7 @@ public class ProjectRunResultDialog implements ProjectFinishedListener {
public Object[][] getData(LinkedList<SimulationResult> data) {
Object[][] res = new Object[data.size()][4];
Object[][] res = new Object[data.size()][5];
int rowIdx = 0;
for (SimulationResult d : data) {
res[rowIdx] = d.getAsTableRow();
......
......@@ -74,7 +74,7 @@ public class SimulationResult {
ret[0] = scenarioName;
ret[1] = runTime.toString();
ret[2] = Integer.toString(totalOverlaps);
ret[3] = Double.toString(maxOverlap);
ret[3] = String.format("%.5f", maxOverlap);
ret[4] = state;
return ret;
}
......
Supports Markdown
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