Commit a65d70e9 authored by Jérome Perrin's avatar Jérome Perrin

New GUI component: stats from Exits

parent 1ddf56fd
......@@ -71,6 +71,7 @@
<div>Stations Utilization</div>
<div id="graph"></div>
</div>
<div id="exit_stat"></div>
<div id="job_schedule_spreadsheet"></div>
<div id="job_gantt"></div>
......
......@@ -477,6 +477,19 @@
$.plot("#graph", series, options);
}
if (configuration['Dream-Configuration'].gui.exit_stat){
var exit_stat = $("#exit_stat").show().text("Exit Metrics");
$.each(result.elementList, function(idx, el){
if (el._class == 'Dream.Exit'){
var text = exit_stat.html() + "<br/><b>" + (el.name || el.id) + "</b><br/>";
$.each(el.results, function(metric, value){
text = text + "<em>" + metric + "</em>: " + value + "<br/>";
})
exit_stat.html(text);
}
})
}
if (spreadsheet_data.length > 1) {
var spreadsheet = $('#job_schedule_spreadsheet');
if (configuration['Dream-Configuration'].gui.job_schedule_spreadsheet){
......
......@@ -36,6 +36,7 @@ class Simulation(DefaultSimulation):
"property_list": [schema['start'], schema['stop'], schema['duration'],
schema['method'], schema['argumentDict']]
}
conf["Dream-Configuration"]["gui"]["exit_stat"] = 1
conf["Dream-Configuration"]["gui"]["debug_json"] = 1
conf["Dream-Configuration"]["gui"]["shift_spreadsheet"] = 1
return conf
......
......@@ -237,6 +237,7 @@ class Simulation(object):
'station_utilisation_graph': 1,
'job_schedule_spreadsheet': 0,
'job_gantt': 0,
'exit_stat': 0,
},
"_class": 'Dream.Configuration'
},
......
Markdown is supported
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