/*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 );
}); |