function [paramNames, values] = getSaveToConfigValues(this)
% Get values to be saved in the config set properties.

%   Copyright 2016-2020 The MathWorks, Inc.

    if slavteng('feature','BusParameterTuning')
        % params is an array of structs
        % Each struct contains a 'name' and 'constraint' field
        params = this.getParamListForSave(); 
    else
        params = this.getStructForSave();
    end
    
    if isempty(params)
        names = [];
        constr = [];
         ticks = [];
    else
        names = {};
        constr = {};
        ticks = {};
        if slavteng('feature','BusParameterTuning')
            for idx = 1:length(params)
                names{end+1} = params(idx).name; %#ok<AGROW>
                constr{end+1} = params(idx).constraint; %#ok<AGROW>
                if this.isParamUsedInAnalysis(params(idx).name)
                    ticks{end+1}  = 'on'; %#ok<AGROW>
                else
                    ticks{end+1}  = 'off'; %#ok<AGROW>
                end
            end
        else
            fields = fieldnames(params);
            for i = 1:length(fields)
                names{end+1} = fields{i}; %#ok<AGROW>
                constr{end+1} = params.(fields{i}); %#ok<AGROW>
                if this.isParamUsedInAnalysis(fields{i})
                    ticks{end+1}  = 'on'; %#ok<AGROW>
                else
                    ticks{end+1}  = 'off'; %#ok<AGROW>
                end
            end
        end
    end
    paramNames = {'ParameterNames', 'ParameterConstraints', 'ParameterUseInAnalysis'};
    values = {names, constr, ticks};
end
