PlotCurveParamObject.js
1.37 KB
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
/**
* 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;
}
});