classdef CompareOptimizationHandler < fxptui.Web.CallbackService.ActionsHandler
    % Class to handle the work for Explore Callback in FPT.
    
    % Copyright 2019 The MathWorks, Inc.

    properties(Constant)
        ActionID = fxptui.internal.ActionFactory.ExploreOptimizationID;
    end
    
    methods
        
        function prepare(~, varargin)
            workflowSetting = varargin{2};
            clientData = varargin{3};
            
            exploreSetting = workflowSetting.getSettingValue('ExploreSetting');
            exploreSetting.SolutionIndex = clientData.SolutionIdx;
            exploreSetting.ScenarioIndex = clientData.ScenarioIdx;
            
        end
        
        function handleSuccess(~, varargin)
            %no op
            
        end
        
        function handleError(~, varargin)
            %no op
        end
        
        function cleanup(~, varargin)
            %no op
        end
        
    end
end
