/** * Project  : AMDA-NG * Name : PlotCurveParamObject.js * @class amdaPlotObj.PlotCurveParamObject * @extends Ext.data.Model * @brief Plot Curve Param Business Object Definition * @author Benjamin Renard * @version $Id: PlotCurveParamObject.js benjamin $ ****************************************************************************** * FT Id : Date : Name - Description ****************************************************************************** * : :03/09/2015: BRE - file creation */ Ext.define('amdaPlotObj.PlotCurveParamObject', { extend: 'Ext.data.Model', requires: [ 'amdaPlotObj.PlotObjectConfig' ], fields : [ {name: 'curve-param-name', type: 'string'}, {name: 'curve-param-internal', type: 'boolean'}, {name: 'curve-param-value', type: 'float'} ], setDefaultValues: function() { this.set('curve-param-name', ''); this.set('curve-param-internal', false); this.set('curve-param-value', 0.); }, getJsonValues : function() { var paramValues = new Object(); paramValues['curve-param-name'] = this.get('curve-param-name'); paramValues['curve-param-internal'] = this.get('curve-param-internal'); paramValues['curve-param-value'] = this.get('curve-param-value'); return paramValues; } });