classdef StopOptimizeAction < fxptui.internal.action.Action
    %StopOptimizeAction Action of stopping the optimization process
    
    %   Copyright 2020 The MathWorks, Inc.
    
    methods(Access = {?fxptui.internal.action.Action, ?WorkflowTestCase})
        
        function executeLocal(~, ~, workflowSetting)
            
            % get the fxpOptimizationOptions from the WorkflowSetting
            options = workflowSetting.getSettingValue('OptimizationSetting');
            
            eventController = DataTypeOptimization.ProgressTracking.ExternalEventController.getEventController();
            eventController.toggleEvent(options.SessionID);
            
        end
        
    end
    
end


