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

publish static version

parent 5885027c
......@@ -20,7 +20,7 @@
var output_data = data.result, input_data = data.input, elementList = output_data.elementList, i, j, metric, metric_value, element, interval_value, interval_list, attainment_list, throughputTarget = input_data.general.throughputTarget, result = "";
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
......
......@@ -40,13 +40,13 @@
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(output_data.elementList.sort(function(a, b) {
return a.id < b.id ? -1 : 1;
}), function(idx, obj) {
var input_job = null, input_order = null, i, j, node, node_key, order, component, 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) {
......
......@@ -13,7 +13,7 @@
// versa.
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;
// find the input order and order component for this job
......@@ -53,10 +53,10 @@
// When duration is not returned by ManPy, it is calculated by
// difference of entranceTime of this step and entranceTime of the
// next step, or completionTime when this is the last step
if (i + 1 === obj.results.schedule.length) {
if (j + 1 === obj.results.schedule.length) {
duration = obj.results.completionTime - schedule.entranceTime;
} else {
duration = obj.results.schedule[i + 1].entranceTime - schedule.entranceTime;
duration = obj.results.schedule[j + 1].entranceTime - schedule.entranceTime;
}
}
name = "";
......
......@@ -8,10 +8,10 @@
*/
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
});
}
});
......
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