Code coverage report for Model/FlowsModel/Flow.js

Statements: 100% (16 / 16)      Branches: 75% (6 / 8)      Functions: 83.33% (5 / 6)      Lines: 100% (16 / 16)      Ignored: none     

All files » Model/FlowsModel/ » Flow.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56                                                1     1   356   356 350 25         255 10 10 10       255 61     1   255 356   255  
/*jshint node: true */
'use strict';
 
/*
* Name :  Flow.js
* Module : FrontEnd::Model::FlowsModel
* Location : /frontend/app/Model/FlowsModel
*
* History :
* Version       Date        Programmer                  Description
* =================================================================================================
* 1.0.0         2015-05-20  Maria Giovanna Chinellato	Tested
*
* 0.1.2         2015-05-17  Maria Giovanna Chinellato	Fix attributes
*
* 0.1.1         2015-05-16  Maria Giovanna Chinellato	Fix updateParameters
*
* 0.1.0         2015-05-16  Maria Giovanna Chinellato	Add all attributes and all methods
*
* 0.0.1         2015-05-15  Maria Giovanna Chinellato	Initial code
* =================================================================================================
*
*/
 
angular.module('norris-nrti')
.factory('FlowFactory', function(){
 
	function Flow(info){
		
		this._name = null;
 
		if (info !== undefined) {
			if (info.name !== undefined){
				this._name = info.name;
			}
		}
	}
 
	Flow.prototype.updateParameters = function(info) { //abstract
		Eif (info !== undefined) {
			Eif (info.name !== undefined){
				this._name = info.name;
			}
		}
	};
	Flow.prototype.getName = function() {
		return this._name;
	};
 
	function FlowFactory(){}
 
    FlowFactory.build = function(info) {
        return new Flow(info);
    };
	return( FlowFactory );
});