%

% Copyright 2017 The MathWorks, Inc.
function addToDataset(this, source)
    import xls.internal.SignalClassifications;
    for timeSection = source.getTimeSections
        timeCol = timeSection.TimeColumn;
        for element = timeSection.getElements
            if element.Classification ~= SignalClassifications.Bus
                this.addNonBusSignalsToDataset(this.D, element, timeCol);
            else
                this.addBusSignalsToDataset(this.D, element, timeCol);
            end
        end
    end
end
