classdef v_ERPDAT < handle
    properties
        ALLERP
        ERP
        CURRENTERP
        Count_ERP
        ERP_chan
        ERP_bin
        Count_currentERP
        Process_messg
        loadproper_count
        count_twopanels
        Reset_Waviewer_panel
        ERPset_Chan_bin_label
    end
    
    events
        ALLERP_change
        ERP_change
        CURRENTERP_change
        Count_ERP_change
        ERP_chan_change
        ERP_bin_change
        v_currentERP_change
        v_messg_change
        loadproper_change
        count_twopanels_change
        Reset_Waviewer_panel_change
        ERPset_Chan_bin_label_change
    end
    
    methods
        %%m1
        function set.ALLERP(obj,value)
            obj.ALLERP = value;
            notify(obj,'ALLERP_change');
        end
        %%m2
        function set.ERP(obj,value)
            obj.ERP = value;
            notify(obj,'ERP_change');
        end
        
        %%m3
        %%Modified CurrentERP
        function set.CURRENTERP(obj,value)
            obj.CURRENTERP = value;
            notify(obj,'CURRENTERP_change');
        end
        
        %%m4
        %%ERP Plotting panel
        function set.Count_ERP(obj,value)
            obj.Count_ERP = value;
            notify(obj,'Count_ERP_change');
        end
        
        %%m5
        %Modified channels of the selected ERP
        function set.ERP_chan(obj,value)
            obj.ERP_chan = value;
            notify(obj,'ERP_chan_change');
        end
        
        %%m6
        %Modified bins of the selected ERP
        function set.ERP_bin(obj,value)
            obj.ERP_bin = value;
            notify(obj,'ERP_bin_change');
        end
        
        
        
        %%m7
        %Modified bins of the selected ERP
        function set.Count_currentERP(obj,value)
            obj.Count_currentERP = value;
            notify(obj,'v_currentERP_change');
        end
        
        %%%m10
        %Modified bins of the selected ERP
        function set.Process_messg(obj,value)
            obj.Process_messg = value;
            notify(obj,'v_messg_change');
        end
        
        
        %%%m11
        %Modified bins of the selected ERP
        function set.loadproper_count(obj,value)
            obj.loadproper_count = value;
            notify(obj,'loadproper_change');
        end
        
        
        %%%m12
        %Modified bins of the selected ERP
        function set.count_twopanels(obj,value)
            obj.count_twopanels = value;
            notify(obj,'count_twopanels_change');
        end
        
        
        %%%m13
        %Modified bins of the selected ERP
        function set.Reset_Waviewer_panel(obj,value)
            obj.Reset_Waviewer_panel = value;
            notify(obj,'Reset_Waviewer_panel_change');
        end
        
        
        %%EXecute the changes of labels
        function set.ERPset_Chan_bin_label(obj,value)
            obj.ERPset_Chan_bin_label = value;
            notify(obj,'ERPset_Chan_bin_label_change');
        end
        
    end
    
end