%

% Copyright 2017-2018 The MathWorks, Inc.
function readSignalData(this, range, sourceType, simIndex)
    % assumption: dataset will not be used when reading all sources and simulations
    simulations = range.getSimulations(simIndex);
    if isscalar(simulations)
        source = simulations.getSources(sourceType);
        if isscalar(source)
            timeValues = this.D{:, source.TimeColumns};
            xls.internal.validateTime(source.getID, timeValues);
            this.addToDataset(source);
        end
    end
end
