function results = getResults(this, varargin)
    % GETRESULTS Get results for the top model
    
    % Copyright 2018 The MathWorks, Inc.
    
    runName = {};
    if ~isempty (varargin)
        runName = varargin{1};
    end
    
    DataLayer = fxptds.DataLayerInterface.getInstance();
    if ~isempty(runName)
        results = DataLayer.getAllResultsFromRunUsingModelSource(this.BlockDiagram.getFullName, runName);
    else
        results = DataLayer.getAllResultsUsingModelSource(this.BlockDiagram.getFullName);
    end
end