Commit 5885027c authored by Jérome Perrin's avatar Jérome Perrin

Simplify GUI now that ManPy outputs "family"

parent 9ff82f06
......@@ -55,7 +55,8 @@
for (i = 0; i < elementList.length; i += 1) {
element = elementList[i];
if (element._class === 'Dream.Exit') {
if (element.family === 'Exit') {
result += '<table>';
result += header_template({name: element.name || element.id});
......
......@@ -54,12 +54,8 @@
function isVisibleStation(station) {
// we should be able to define in the backend which
// station is visible
return (input_data.nodes[station]._class !== "Dream.QueueManagedJob") &&
(input_data.nodes[station]._class !== "Dream.OperatorManagedJob") &&
(input_data.nodes[station]._class !== "Dream.ExitJobShop") &&
(input_data.nodes[station]._class !== "Dream.CapacityStationBuffer") &&
(input_data.nodes[station]._class !== "Dream.CapacityStationExit") &&
(input_data.nodes[station]._class !== "Dream.Queue");
return (input_data.nodes[station].family !== 'Buffer' &&
input_data.nodes[station].family !== 'Exit');
}
$.each(
......@@ -78,8 +74,7 @@
duration,
seen_parts = {};
if (obj._class === 'Dream.Job' ||
obj._class === 'Dream.CapacityProject') {
if (obj.family === 'Job') {
// find the corresponding input
// find the input order and order component for this job
for (node_key in input_data.nodes) {
......
......@@ -50,8 +50,7 @@
for (i = 0; i < output_data.elementList.length; i += 1) {
obj = output_data.elementList[i];
if (obj._class === 'Dream.Job' ||
obj._class === 'Dream.CapacityProject') {
if (obj.family === 'Job') {
input_job = null;
input_order = null;
......
......@@ -9,9 +9,9 @@
*/
var series = [];
$.each(output_data.elementList, function (idx, el) {
if (el._class === 'Dream.Queue') {
if (el.family === 'Buffer') {
series.push({label: el.name || el.id,
data: el.wip_stat_list});
data: el.results.wip_stat_list});
}
});
return series;
......
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