/** * Project  : AMDA-NG * Name : PlotCurveDef.js * @plugin amdaPlotObj.PlotCurveDef * @extends Ext.data.Model * @brief Data model for plot curves definition * @author Benjamin * @version $Id: PlotCurveDef.js $ ******************************************************************************** * FT Id : Date : Name - Description ******************************************************************************* * : */ Ext.define('amdaPlotObj.PlotCurveDef', { extend: 'Ext.data.Model', idProperty: 'id', requires: [ 'amdaPlotObj.PlotCurveDefParam' ], fields : [ {name: 'id', mapping: '@id', type:'string'}, {name: 'name', mapping: '@name', type: 'string'}, {name: 'functionName', mapping: '@functionName', type: 'string'} ], hasMany : { model : 'amdaPlotObj.PlotCurveDefParam', name : 'params' }, proxy: { type: 'ajax', url : 'generic_data/Functions/plotCurves.xml', reader: { type: 'xml', root: 'curves', record: 'curve' } } });