lib/common/graph-progress.js
function GraphProgress(graph, graphDescription) {
        assert.object(graph, 'graph');
        assert.string(graphDescription, 'graphDescription');

        this.graph = graph;
        this.data = {
            graphId: graph.instanceId,
            nodeId: graph.node,
            graphName: graph.name || 'Not available',
            status: graph._status,
            progress: {
                description: graphDescription || 'Not available',
            }
        };
        this._calculateGraphProgress();
    }
function GraphProgress(graph, graphDescription) {
        assert.object(graph, 'graph');
        assert.string(graphDescription, 'graphDescription');

        this.graph = graph;
        this.data = {
            graphId: graph.instanceId,
            nodeId: graph.node,
            graphName: graph.name || 'Not available',
            status: graph._status,
            progress: {
                description: graphDescription || 'Not available',
            }
        };
        this._calculateGraphProgress();
    }
function GraphProgress ( graph , graphDescription ) { assert . object ( graph , 'graph' ) ; assert . string ( graphDescription , 'graphDescription' ) ; this . graph = graph ; this . data = { graphId : graph . instanceId , nodeId : graph . node , graphName : graph . name || 'Not available' , status : graph . _status , progress : { description : graphDescription || 'Not available' , } } ; this . _calculateGraphProgress ( ) ; }
Creates a new GraphProgress and calculate the graph progress
@param graph {Object}
@param graphDescription {String}
@constructor
Creates a new GraphProgress and calculate the graph progress