classdef (Sealed) FPTWebHandler < handle
%% FPTWebHandler class used to handle dialogs in FPT Web UI
% responding to different events in fxptds.AbstractResult

%   Copyright 2016-2018 The MathWorks, Inc.

    methods (Static)
        function obj = getInstance
        % Returns the stored instance of the repository.
            persistent localObj
            if isempty(localObj) || ~isvalid(localObj)
                localObj = fxptds.FPTWebHandler;
            end
            obj = localObj;
        end
    end
    methods
        % NOTE: these methods donot need the object instance 
        % However, these methods are not made static function 
        % as FPTWebHandler is designed to be the interface which can be 
        % interchanged with the new GUI client 
        updateUI(~,result);
        handleInvalidProposedDT(~,proposedDT);
        appData = getApplicationData(~);
        allDatasets = getAllDatasets(~);
        model = getTopModel(~);
    end
    methods(Access = private)
        function  this = FPTWebHandler
        end
    end
    
end
