classdef cClass1 < handle
    %CCLASS1 Summary of this class goes here
    %   Detailed explanation goes here
    
    properties
        state
    end
    events
       stateChanged 
    end
    
    methods
        function obj = cClass1()
            obj.state = 'not available';
            notify(obj, 'stateChanged');
        end
        function load(obj)
            obj.state = 'loaded';
            notify(obj, 'stateChanged')
        end
        function init(obj)
            obj.state = 'initialized';
            notify(obj, 'stateChanged')
        end
        function connect(obj)
            obj.state = 'connected';
            notify(obj, 'stateChanged')
        end
    end
end

