%

% Copyright 2017 The MathWorks, Inc.
function addBusSignalsToDataset(this, T, element, timeCol)
    import xls.internal.ReadTable;
    import xls.internal.Bus;
    bus = element.getBus;
    busStruct = Bus.createStruct(bus, this.Model);
    for signal = element.getBusSignals
        data = this.createTimeSeries(T, signal, timeCol, busStruct);
        [busStruct, busName] = Bus.setField(busStruct, signal.PathName, data);
    end

    this.addElement(busStruct, busName, bus.getElement);
end
